Skip to content

Commit 9e407a9

Browse files
authored
1 parent c6c1583 commit 9e407a9

21 files changed

+29
-29
lines changed

WORKSPACE.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ workspace(name = "stablehlo")
1717

1818
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
1919

20-
LLVM_COMMIT = "29b92d07746fac26cd64c914bc9c5c3833974f6d"
20+
LLVM_COMMIT = "ac2a2816e3fe934998e5f950c9426fca0796929d"
2121

22-
LLVM_SHA256 = "3e8e93e3749454af4b64f7f34b792a4748b62fc533bca1703d33b2b04e34eb70"
22+
LLVM_SHA256 = "bfcec3c9a582ab71c1e4a212e5a7cfe2c9a8164331a0b728da5c8a99d81c46de"
2323

2424
http_archive(
2525
name = "llvm-raw",

build_tools/llvm_version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
29b92d07746fac26cd64c914bc9c5c3833974f6d
1+
ac2a2816e3fe934998e5f950c9426fca0796929d

examples/c++/ExampleAdd.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ limitations under the License.
1818
#include "llvm/ADT/SmallVector.h"
1919
#include "llvm/Support/LogicalResult.h"
2020
#include "mlir/Dialect/Func/IR/FuncOps.h"
21-
#include "mlir/Dialect/Quant/QuantOps.h"
21+
#include "mlir/Dialect/Quant/IR/Quant.h"
2222
#include "mlir/IR/Attributes.h"
2323
#include "mlir/IR/Block.h"
2424
#include "mlir/IR/Builders.h"
@@ -43,7 +43,7 @@ int main() {
4343
mlir::ModuleOp::create(mlir::UnknownLoc::get(&context));
4444
module->getContext()->loadDialect<mlir::func::FuncDialect>();
4545
module->getContext()->loadDialect<mlir::stablehlo::StablehloDialect>();
46-
module->getContext()->loadDialect<mlir::quant::QuantizationDialect>();
46+
module->getContext()->loadDialect<mlir::quant::QuantDialect>();
4747
module->setName("test_module");
4848

4949
/** create function **/

stablehlo/conversions/tosa/transforms/StablehloQuantLegalizeToTosaRescale.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717
#include <utility>
1818

1919
#include "mlir/Dialect/Func/IR/FuncOps.h"
20-
#include "mlir/Dialect/Quant/QuantOps.h"
20+
#include "mlir/Dialect/Quant/IR/Quant.h"
2121
#include "mlir/Dialect/Tosa/IR/TosaOps.h"
2222
#include "mlir/Dialect/Tosa/Utils/ConversionUtils.h"
2323
#include "mlir/Dialect/Tosa/Utils/QuantUtils.h"

stablehlo/conversions/tosa/transforms/TosaRescaleLegalizeToStablehlo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ limitations under the License.
1818
#include <utility>
1919

2020
#include "mlir/Dialect/Func/IR/FuncOps.h"
21-
#include "mlir/Dialect/Quant/QuantOps.h"
21+
#include "mlir/Dialect/Quant/IR/Quant.h"
2222
#include "mlir/Dialect/Tosa/IR/TosaOps.h"
2323
#include "mlir/Dialect/Tosa/Utils/ConversionUtils.h"
2424
#include "mlir/Dialect/Tosa/Utils/QuantUtils.h"

stablehlo/dialect/Base.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ limitations under the License.
3131
#include "llvm/ADT/SmallVector.h"
3232
#include "llvm/Support/Debug.h"
3333
#include "llvm/Support/ErrorHandling.h"
34-
#include "mlir/Dialect/Quant/QuantTypes.h"
34+
#include "mlir/Dialect/Quant/IR/QuantTypes.h"
3535
#include "mlir/Dialect/Shape/IR/Shape.h"
3636
#include "mlir/IR/Builders.h"
3737
#include "mlir/IR/BuiltinAttributes.h"

stablehlo/dialect/ChloOps.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ limitations under the License.
2020
#include "llvm/ADT/APFloat.h"
2121
#include "llvm/ADT/StringRef.h"
2222
#include "mlir/Bytecode/BytecodeOpInterface.h"
23-
#include "mlir/Dialect/Quant/QuantTypes.h"
23+
#include "mlir/Dialect/Quant/IR/QuantTypes.h"
2424
#include "mlir/IR/Attributes.h"
2525
#include "mlir/IR/Builders.h"
2626
#include "mlir/IR/BuiltinTypes.h"

stablehlo/dialect/Register.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717
#include "stablehlo/dialect/Register.h"
1818

1919
#include "mlir/Dialect/Func/IR/FuncOps.h"
20-
#include "mlir/Dialect/Quant/QuantOps.h"
20+
#include "mlir/Dialect/Quant/IR/Quant.h"
2121
#include "mlir/Dialect/SparseTensor/IR/SparseTensor.h"
2222
#include "mlir/IR/DialectRegistry.h"
2323
#include "stablehlo/dialect/ChloOps.h"
@@ -30,7 +30,7 @@ namespace stablehlo {
3030
void registerAllDialects(mlir::DialectRegistry &registry) {
3131
// clang-format off
3232
registry.insert<mlir::func::FuncDialect,
33-
mlir::quant::QuantizationDialect,
33+
mlir::quant::QuantDialect,
3434
mlir::sparse_tensor::SparseTensorDialect>();
3535
registry.insert<mlir::chlo::ChloDialect,
3636
mlir::stablehlo::StablehloDialect,

stablehlo/dialect/StablehloOps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ limitations under the License.
5252
#include "llvm/Support/Regex.h"
5353
#include "mlir/Dialect/Arith/IR/Arith.h"
5454
#include "mlir/Dialect/Complex/IR/Complex.h"
55-
#include "mlir/Dialect/Quant/QuantTypes.h"
55+
#include "mlir/Dialect/Quant/IR/QuantTypes.h"
5656
#include "mlir/Dialect/Shape/IR/Shape.h"
5757
#include "mlir/Dialect/SparseTensor/IR/SparseTensor.h"
5858
#include "mlir/Dialect/Tensor/IR/Tensor.h"

stablehlo/dialect/StablehloOps.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ limitations under the License.
2121
#include <optional>
2222

2323
#include "llvm/ADT/StringRef.h"
24-
#include "mlir/Dialect/Quant/QuantTypes.h"
24+
#include "mlir/Dialect/Quant/IR/QuantTypes.h"
2525
#include "mlir/Dialect/Shape/IR/Shape.h"
2626
#include "mlir/IR/Attributes.h"
2727
#include "mlir/IR/Builders.h"

0 commit comments

Comments
 (0)