mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-02 11:56:06 +00:00

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
19 lines
634 B
Common Lisp
19 lines
634 B
Common Lisp
// RUN: %clang_cc1 -no-opaque-pointers %s -triple "spir-unknown-unknown" -emit-llvm -o - | FileCheck %s
|
|
|
|
int get_dummy_id(int D);
|
|
|
|
kernel void bar(global int *A);
|
|
|
|
kernel void foo(global int *A)
|
|
// CHECK: define{{.*}} spir_kernel void @foo(i32 addrspace(1)* noundef align 4 %A)
|
|
{
|
|
int id = get_dummy_id(0);
|
|
// CHECK: %{{[a-z0-9_]+}} = tail call spir_func i32 @get_dummy_id(i32 noundef 0)
|
|
A[id] = id;
|
|
bar(A);
|
|
// CHECK: tail call spir_kernel void @bar(i32 addrspace(1)* noundef align 4 %A)
|
|
}
|
|
|
|
// CHECK: declare spir_func i32 @get_dummy_id(i32 noundef)
|
|
// CHECK: declare spir_kernel void @bar(i32 addrspace(1)* noundef align 4)
|