llvm-project/clang/test/CodeGen/clspv_libclc_builtin.c
Romaric Jodin 932ca85680
libclc: remove __attribute__((assume)) for clspv targets (#92126)
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
2024-05-17 06:13:32 -07:00

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() {}