File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ The first defines a function that counts the leading zeroes of a 32-bit integer
71
71
using the [ ` math ` dialect's] ( /docs/Dialects/MathOps/ ) ` ctlz ` operation.
72
72
73
73
``` mlir
74
+ // mlir/test/Examples/mlir-opt/ctlz.mlir
74
75
func.func @main(%arg0: i32) -> i32 {
75
76
%0 = math.ctlz %arg0 : i32
76
77
func.return %0 : i32
@@ -110,6 +111,7 @@ The second program is a sequence of loops
110
111
that exhibits poor cache locality.
111
112
112
113
``` mlir
114
+ // mlir/test/Examples/mlir-opt/loop_fusion.mlir
113
115
func.func @producer_consumer_fusion(%arg0: memref<10xf32>, %arg1: memref<10xf32>) {
114
116
%0 = memref.alloc() : memref<10xf32>
115
117
%1 = memref.alloc() : memref<10xf32>
@@ -175,7 +177,7 @@ to generate LLVM-IR.
175
177
Recall our ctlz program:
176
178
177
179
``` mlir
178
- # mlir/test/Examples/mlir-opt/ctlz.mlir
180
+ // mlir/test/Examples/mlir-opt/ctlz.mlir
179
181
func.func @main(%arg0: i32) -> i32 {
180
182
%0 = math.ctlz %arg0 : i32
181
183
func.return %0 : i32
You can’t perform that action at this time.
0 commit comments