brintos

brintos / llvm-project-archived public Read only

0
0
Text · 588 B · 2bc0a95 Raw
18 lines · plain
1;; Check translation of intel_reqd_sub_group_size metadata to SubgroupSize2;; execution mode and back. The IR is producded from the following OpenCL C code:3;; kernel __attribute__((intel_reqd_sub_group_size(8)))4;; void foo() {}5 6; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV7 8; CHECK-SPIRV: OpCapability SubgroupDispatch9; CHECK-SPIRV: OpEntryPoint Kernel %[[#kernel:]] "foo"10; CHECK-SPIRV: OpExecutionMode %[[#kernel]] SubgroupSize 811 12define spir_kernel void @foo() !intel_reqd_sub_group_size !0 {13entry:14  ret void15}16 17!0 = !{i32 8}18