Mercurial > hg > CbC > CbC_llvm
view clang/test/CodeGenSYCL/convergent.cpp @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 79ff65ed7e25 |
children |
line wrap: on
line source
// RUN: %clang_cc1 -fsycl-is-device -emit-llvm -disable-llvm-passes \ // RUN: -triple spir64 -emit-llvm %s -o - | FileCheck %s // CHECK-DAG: Function Attrs: // CHECK-DAG-SAME: convergent // CHECK-DAG-NEXT: define void @_Z3foov void foo() { int a = 1; } template <typename Name, typename Func> __attribute__((sycl_kernel)) void kernel_single_task(const Func &kernelFunc) { kernelFunc(); } int main() { kernel_single_task<class fake_kernel>([] { foo(); }); return 0; }