This adds -no-opaque-pointers to clang tests whose output will change when opaque pointers are enabled by default. This is intended to be part of the migration approach described in https://discourse.llvm.org/t/enabling-opaque-pointers-by-default/61322/9. The patch has been produced by replacing %clang_cc1 with %clang_cc1 -no-opaque-pointers for tests that fail with opaque pointers enabled. Worth noting that this doesn't cover all tests, there's a remaining ~40 tests not using %clang_cc1 that will need a followup change. Differential Revision: https://reviews.llvm.org/D123115
15 lines
455 B
Common Lisp
Executable File
15 lines
455 B
Common Lisp
Executable File
// REQUIRES: amdgpu-registered-target
|
|
// RUN: %clang_cc1 -no-opaque-pointers -triple amdgcn-unknown-unknown -S -emit-llvm -o - %s | FileCheck %s
|
|
// CHECK: define{{.*}} amdgpu_kernel void @test_call_kernel(i32 addrspace(1)* nocapture noundef writeonly align 4 %out)
|
|
// CHECK: store i32 4, i32 addrspace(1)* %out, align 4
|
|
|
|
kernel void test_kernel(global int *out)
|
|
{
|
|
out[0] = 4;
|
|
}
|
|
|
|
__kernel void test_call_kernel(__global int *out)
|
|
{
|
|
test_kernel(out);
|
|
}
|