Skip to content
Snippets Groups Projects
Commit 0a912422 authored by zhanghb97's avatar zhanghb97
Browse files

Sync to latest llvm/mlir. (std to func)

parent a7f82fa7
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ add_buddy_model_benchmark(inception-v3-benchmark
-memref-expand -arith-expand
--convert-memref-to-llvm
--convert-math-to-llvm
--convert-std-to-llvm='emit-c-wrappers=1'
--convert-func-to-llvm='emit-c-wrappers=1'
--reconcile-unrealized-casts
SOURCE Main.cpp InceptionBenchmark.cpp
)
......@@ -18,7 +18,7 @@ add_buddy_model_benchmark(mobilenet-benchmark
-memref-expand -arith-expand
--convert-memref-to-llvm
--convert-math-to-llvm
--convert-std-to-llvm='emit-c-wrappers=1'
--convert-func-to-llvm='emit-c-wrappers=1'
--reconcile-unrealized-casts
SOURCE Main.cpp MobileNetBenchmark.cpp
)
......@@ -18,7 +18,7 @@ add_buddy_model_benchmark(mobilenet-v3-benchmark
-memref-expand -arith-expand
--convert-memref-to-llvm
--convert-math-to-llvm
--convert-std-to-llvm='emit-c-wrappers=1'
--convert-func-to-llvm='emit-c-wrappers=1'
--reconcile-unrealized-casts
SOURCE Main.cpp MobileNetBenchmark.cpp
)
......@@ -18,7 +18,7 @@ add_buddy_model_benchmark(resnet_v2_50-benchmark
-memref-expand -arith-expand
--convert-memref-to-llvm
--convert-math-to-llvm
--convert-std-to-llvm='emit-c-wrappers=1'
--convert-func-to-llvm='emit-c-wrappers=1'
--reconcile-unrealized-casts
SOURCE Main.cpp ResNetBenchmark.cpp
)
......@@ -8,7 +8,7 @@ add_buddy_ops_benchmark(conv-2d-nchw-fchw-benchmark
-convert-linalg-to-llvm
-lower-affine
--convert-memref-to-llvm
-convert-std-to-llvm='emit-c-wrappers=1'
-convert-func-to-llvm='emit-c-wrappers=1'
-reconcile-unrealized-casts
SOURCE Main.cpp MLIROptBenchmark.cpp
)
......@@ -8,7 +8,7 @@ add_buddy_ops_benchmark(conv-2d-nhwc-hwcf-benchmark
-convert-linalg-to-llvm
-lower-affine
--convert-memref-to-llvm
-convert-std-to-llvm='emit-c-wrappers=1'
-convert-func-to-llvm='emit-c-wrappers=1'
-reconcile-unrealized-casts
SOURCE Main.cpp MLIROptBenchmark.cpp
)
......@@ -8,7 +8,7 @@ add_buddy_ops_benchmark(depthwise-conv-2d-nhwc-hwc-benchmark
-convert-linalg-to-llvm
-lower-affine
--convert-memref-to-llvm
-convert-std-to-llvm='emit-c-wrappers=1'
-convert-func-to-llvm='emit-c-wrappers=1'
-reconcile-unrealized-casts
SOURCE Main.cpp MLIROptBenchmark.cpp
)
......@@ -8,7 +8,7 @@ add_buddy_ops_benchmark(pooling-nhwc-sum-benchmark
-convert-linalg-to-llvm
-lower-affine
--convert-memref-to-llvm
-convert-std-to-llvm='emit-c-wrappers=1'
-convert-func-to-llvm='emit-c-wrappers=1'
-reconcile-unrealized-casts
SOURCE Main.cpp MLIROptBenchmark.cpp
)
......@@ -28,7 +28,7 @@ add_custom_command(OUTPUT mlir-conv2d.o
-convert-linalg-to-loops
-convert-scf-to-cf -convert-linalg-to-llvm
-lower-affine -convert-scf-to-cf --convert-memref-to-llvm
-convert-std-to-llvm='emit-c-wrappers=1'
-convert-func-to-llvm='emit-c-wrappers=1'
-reconcile-unrealized-casts |
${LLVM_MLIR_BINARY_DIR}/mlir-translate --mlir-to-llvmir |
${LLVM_MLIR_BINARY_DIR}/llc -mtriple=${BUDDY_OPT_TRIPLE}
......@@ -48,7 +48,7 @@ add_custom_command(OUTPUT buddy-conv2d.o
-conv-vectorization="strip-mining=${SPLITING_SIZE}"
-convert-vector-to-scf
-lower-affine -convert-scf-to-cf -convert-vector-to-llvm
-convert-memref-to-llvm -convert-std-to-llvm='emit-c-wrappers=1'
-convert-memref-to-llvm -convert-func-to-llvm='emit-c-wrappers=1'
-reconcile-unrealized-casts |
${LLVM_MLIR_BINARY_DIR}/mlir-translate --mlir-to-llvmir |
${LLVM_MLIR_BINARY_DIR}/llc -mtriple=${BUDDY_OPT_TRIPLE}
......@@ -65,7 +65,7 @@ set_target_properties(BuddyConv2D PROPERTIES LINKER_LANGUAGE CXX)
# -conv-vectorization="tile-sizes=${MLIR_LINALG_TILE},${MLIR_LINALG_TILE}"
# -convert-vector-to-scf
# -lower-affine -convert-scf-to-cf -convert-vector-to-llvm
# -convert-memref-to-llvm -convert-std-to-llvm='emit-c-wrappers=1'
# -convert-memref-to-llvm -convert-func-to-llvm='emit-c-wrappers=1'
# -reconcile-unrealized-casts |
# ${LLVM_MLIR_BINARY_DIR}/mlir-translate --mlir-to-llvmir |
# ${LLVM_MLIR_BINARY_DIR}/llc -mtriple=${BUDDY_OPT_TRIPLE}
......@@ -84,7 +84,7 @@ add_custom_command(OUTPUT buddy-corr2d.o
${BUDDY_SOURCE_DIR}/benchmarks/ImageProcessing/BuddyCorr2D.mlir
-lower-dip="DIP-strip-mining=${SPLITING_SIZE}"
-lower-affine -convert-scf-to-cf -convert-vector-to-llvm
-convert-memref-to-llvm -convert-std-to-llvm='emit-c-wrappers=1'
-convert-memref-to-llvm -convert-func-to-llvm='emit-c-wrappers=1'
-reconcile-unrealized-casts |
${LLVM_MLIR_BINARY_DIR}/mlir-translate --mlir-to-llvmir |
${LLVM_MLIR_BINARY_DIR}/llc -mtriple=${BUDDY_OPT_TRIPLE}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment