We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c65ba2 commit 909a9b0Copy full SHA for 909a9b0
test/mlir/conversion/krnl_to_llvm/call_with_return.mlir
@@ -0,0 +1,10 @@
1
+// RUN: onnx-mlir-opt --convert-krnl-to-llvm %s -split-input-file | FileCheck %s
2
+
3
+func.func private @test_krnl_call_with_return(%arg0: memref<2x3xi32>) -> i32 {
4
+ %1 = "krnl.call"() {funcName = "get_omp_num_thread", numOfOutput = 0 : si64} : () -> (i32)
5
+ func.return %1: i32
6
+// CHECK: llvm.func @get_omp_num_thread() -> i32
7
+// CHECK: llvm.func @test_krnl_call_with_return
8
+// CHECK: [[VAR_0_:%.+]] = llvm.call @get_omp_num_thread() : () -> i32
9
+// CHECK: llvm.return [[VAR_0_]] : i32
10
+}
0 commit comments