repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[mlir][py] Enable loading only specified dialects during creation. (#121421)
[llvm-project.git]
/
mlir
/
test
/
IR
/
test-take-body.mlir
blob
7edb3b8625376f7ae4ed22ea99e8f9ae2729c624
1
// RUN: mlir-opt -allow-unregistered-dialect %s --test-take-body -split-input-file
2
3
func.func @foo() {
4
%0 = "test.foo"() : () -> i32
5
cf.br ^header
6
7
^header:
8
cf.br ^body
9
10
^body:
11
"test.use"(%0) : (i32) -> ()
12
cf.br ^header
13
}
14
15
func.func private @bar() {
16
return
17
}
18
19
// CHECK-LABEL: func @foo
20
// CHECK-NEXT: return
21
22
// CHECK-LABEL: func private @bar()
23
// CHECK-NOT: {