13 lines · plain
1// RUN: mlir-translate -mlir-to-llvmir %s | FileCheck %s2 3module attributes {omp.is_target_device = true, omp.is_gpu = true, omp.target_triples = ["spirv64-intel"], llvm.target_triple = "spirv64-intel"} {4// CHECK: call spir_func i32 @__kmpc_target_init5// CHECK: call spir_func void @__kmpc_target_deinit6 llvm.func @target_if_variable(%x : i1) {7 omp.target if(%x) {8 omp.terminator9 }10 llvm.return11 }12 }13