Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docker/Dockerfile.llvm-project
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,12 @@ RUN git clone -b v${PROTOBUF_VERSION} --recursive ${PROTOBUF_URL} ${PROTOBUF_DIR
&& cd ${PROTOBUF_DIR}/build \
# Must specify -Dprotobuf_BUILD_TESTS=OFF otherwise find_package(absl)
# in onnx will fail due to missing protobuf::gmock target
# Must specify -Dabsl_DIR to help protobuf find the installed Abseil
&& CC=clang CXX=clang++ \
cmake -DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=ON \
-Dprotobuf_BUILD_TESTS=OFF .. \
-Dprotobuf_BUILD_TESTS=OFF \
-Dabsl_DIR=/usr/local/lib/cmake/absl .. \
&& make -j${NPROC} install && ldconfig \
&& cd .. \
# New version of python protobuf can no longer be built with setup.py.
Expand Down
2 changes: 1 addition & 1 deletion docs/BuildOnLinuxOSX.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Firstly, install MLIR (as a part of LLVM-Project):
``` bash
git clone -n https://github.com/llvm/llvm-project.git
# Check out a specific branch that is known to work with ONNX-MLIR.
cd llvm-project && git checkout 42a8ff877d47131ecb1280a1cc7e5e3c3bca6952 && cd ..
cd llvm-project && git checkout 0c2701fe7fa002e1befc5f86c268a7964f96d286 && cd ..
```

[same-as-file]: <> ({"ref": "utils/build-mlir.sh", "skip-ref": 2})
Expand Down
2 changes: 1 addition & 1 deletion docs/BuildOnWindows.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Install MLIR (as a part of LLVM-Project):
```shell
git clone -n https://github.com/llvm/llvm-project.git
# Check out a specific branch that is known to work with ONNX-MLIR.
cd llvm-project && git checkout 42a8ff877d47131ecb1280a1cc7e5e3c3bca6952 && cd ..
cd llvm-project && git checkout 0c2701fe7fa002e1befc5f86c268a7964f96d286 && cd ..
```

[same-as-file]: <> ({"ref": "utils/build-mlir.cmd", "skip-ref": 2})
Expand Down
2 changes: 1 addition & 1 deletion src/Accelerators/NNPA/Dialect/ZHigh/ZHigh.td
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def ZHigh_Dialect : Dialect {
let summary = "A high-level dialect for the ONNX NNPA accelerator ISA.";
let cppNamespace = "::onnx_mlir::zhigh";
let useDefaultAttributePrinterParser = 1;
let usePropertiesForAttributes = 0;
//let usePropertiesForAttributes = 0;
}

//===----------------------------------------------------------------------===//
Expand Down
2 changes: 1 addition & 1 deletion src/Accelerators/NNPA/Dialect/ZLow/ZLow.td
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def ZLow_Dialect : Dialect {
let name = "zlow";
let summary = "A low-level dialect for the ONNX NNPA accelerator ISA.";
let cppNamespace = "::onnx_mlir::zlow";
let usePropertiesForAttributes = 0;
//let usePropertiesForAttributes = 0;
}

// Base class for ZLow dialect operations. This operation inherits from the
Expand Down
2 changes: 1 addition & 1 deletion src/Dialect/Krnl/Krnl.td
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ include "src/Interface/SpecializedKernelOpInterface.td"
def Krnl_Dialect : Dialect {
let name = "krnl";
let cppNamespace = "::mlir";
let usePropertiesForAttributes = 0;
//let usePropertiesForAttributes = 0;
let useDefaultTypePrinterParser = 1;
let dependentDialects = [
"affine::AffineDialect",
Expand Down
2 changes: 1 addition & 1 deletion src/Dialect/ONNX/ONNX.td
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def ONNX_Dialect : Dialect {
let cppNamespace = "::mlir";
let useDefaultTypePrinterParser = 1;
let useDefaultAttributePrinterParser = 0;
let usePropertiesForAttributes = 0;
//let usePropertiesForAttributes = 0;
let dependentDialects = ["func::FuncDialect"];
let hasConstantMaterializer = 1;
let extraClassDeclaration = [{
Expand Down
2 changes: 1 addition & 1 deletion third_party/stablehlo
Submodule stablehlo updated 33 files
+18 −0 BUILD.bazel
+2 −1 MODULE.bazel
+423 −1,433 MODULE.bazel.lock
+2 −2 WORKSPACE.bazel
+1 −1 build_tools/llvm_version.txt
+1 −1 docs/generated/FuncBuilder.md
+5 −5 docs/generated/StablehloBuilder.md
+4 −4 docs/spec.md
+9 −0 stablehlo/conversions/linalg/tests/miscellaneous.mlir
+6 −0 stablehlo/conversions/linalg/transforms/StablehloLegalizeToLinalg.cpp
+9 −0 stablehlo/conversions/tosa/tests/binary.mlir
+37 −0 stablehlo/conversions/tosa/transforms/StablehloLegalizeToTosa.cpp
+53 −3 stablehlo/dialect/StablehloOps.cpp
+13 −2 stablehlo/dialect/StablehloOps.h
+1 −1 stablehlo/dialect/Version.cpp
+1 −1 stablehlo/dialect/Version.h
+4 −1 stablehlo/integrations/cpp/builder/MlirBuilderTblgen.cpp
+24 −0 stablehlo/integrations/cpp/builder/StablehloBuilderTest.cpp
+1 −1 stablehlo/integrations/python/mlir/dialects/InterpreterOps.td
+2 −0 stablehlo/tests/BUILD.bazel
+1 −0 stablehlo/tests/CMakeLists.txt
+78 −34 stablehlo/tests/TestUtils.cpp
+5 −0 stablehlo/tests/TestUtils.td
+322 −0 stablehlo/tests/ops_broadcasting.mlir
+91 −9 stablehlo/tests/transforms/stablehlo_aggressive_folder.mlir
+47 −0 stablehlo/tests/transforms/stablehlo_aggressive_simplification.mlir
+26 −0 stablehlo/tests/transforms/stablehlo_target_independent_optimization.mlir
+9 −0 stablehlo/transforms/CMakeLists.txt
+297 −0 stablehlo/transforms/StablehloBroadcastLowering.cpp
+68 −0 stablehlo/transforms/StablehloBroadcastLowering.h
+135 −14 stablehlo/transforms/optimization/StablehloAggressiveFolder.cpp
+38 −0 stablehlo/transforms/optimization/StablehloAggressiveSimplification.cpp
+44 −26 stablehlo/transforms/optimization/StablehloAggressiveSimplificationPatterns.td
2 changes: 1 addition & 1 deletion utils/clone-mlir.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
git clone -n https://github.com/llvm/llvm-project.git
# Check out a specific branch that is known to work with ONNX-MLIR.
cd llvm-project && git checkout 42a8ff877d47131ecb1280a1cc7e5e3c3bca6952 && cd ..
cd llvm-project && git checkout 0c2701fe7fa002e1befc5f86c268a7964f96d286 && cd ..
Loading