mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 06:16:07 +00:00

Instead add a proper attribute in clang, and add convert it to function metadata to keep the information in the IR. The goal is to remove the dependency on __attribute__((assume)) that should have not be there in the first place. Ref https://github.com/llvm/llvm-project/pull/84934
7 lines
174 B
C
7 lines
174 B
C
// RUN: %clang_cc1 -triple spir -emit-llvm %s -o - | FileCheck %s
|
|
|
|
// CHECK: @foo()
|
|
// CHECK-SAME: !clspv_libclc_builtin
|
|
|
|
void __attribute__((clspv_libclc_builtin)) foo() {}
|