Skip to content

Commit 909a9b0

Browse files
committed
test
Signed-off-by: chentong319 <[email protected]>
1 parent 4c65ba2 commit 909a9b0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)