diff --git a/WORKSPACE b/WORKSPACE index 64c316a..424bc54 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -15,9 +15,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -LLVM_COMMIT = "511cfe9441955f20a8b93573fb9b62433b053550" +LLVM_COMMIT = "1b97cdf885d6455841280b8da858835e641ee941" -LLVM_SHA256 = "57626cf2eb850c717b712e43774cad308f19cd9161db9ed286844ba8f42abd70" +LLVM_SHA256 = "80d5036ba734fcb700a5699e2f99e5a0de5808dde01a1df3c4fae04510bc8e23" LLVM_BAZEL_TAG = "llvm-project-{commit}".format(commit = LLVM_COMMIT) diff --git a/build_tools/llvm_version.txt b/build_tools/llvm_version.txt index 8db4d21..42543b5 100644 --- a/build_tools/llvm_version.txt +++ b/build_tools/llvm_version.txt @@ -1,2 +1,2 @@ -511cfe9441955f20a8b93573fb9b62433b053550 +1b97cdf885d6455841280b8da858835e641ee941 diff --git a/lib/Dialect/mhlo/IR/chlo_ops.cc b/lib/Dialect/mhlo/IR/chlo_ops.cc index 60c9448..9761e6a 100644 --- a/lib/Dialect/mhlo/IR/chlo_ops.cc +++ b/lib/Dialect/mhlo/IR/chlo_ops.cc @@ -202,7 +202,7 @@ LogicalResult BroadcastCompareOp::inferReturnTypeComponents( MLIRContext* context, Optional location, ValueRange operands, DictionaryAttr attributes, RegionRange regions, SmallVectorImpl& inferedReturnShapes) { - Type element_type = IntegerType::get(1, context); + Type element_type = IntegerType::get(context, 1); return InferBroadcastBinaryOpReturnTypeComponents(context, location, operands, attributes, element_type, inferedReturnShapes); diff --git a/lib/Dialect/mhlo/IR/hlo_ops.cc b/lib/Dialect/mhlo/IR/hlo_ops.cc index a03bfa1..cec1ad7 100644 --- a/lib/Dialect/mhlo/IR/hlo_ops.cc +++ b/lib/Dialect/mhlo/IR/hlo_ops.cc @@ -621,7 +621,7 @@ OpFoldResult GetTupleElementOp::fold(ArrayRef operands) { static LogicalResult Verify(TupleOp op) { SmallVector operandTypes = {op.operand_type_begin(), op.operand_type_end()}; - auto expectedType = TupleType::get(operandTypes, op.getContext()); + auto expectedType = TupleType::get(op.getContext(), operandTypes); if (op.getType() != expectedType) { return op.emitOpError(llvm::formatv("has return type {0}, but expected {1}", op.getType(), expectedType)); @@ -1967,7 +1967,7 @@ LogicalResult ReplicaIdOp::inferReturnTypes( MLIRContext* context, Optional, ValueRange operands, DictionaryAttr, RegionRange, SmallVectorImpl& inferredReturnTypes) { inferredReturnTypes.push_back(RankedTensorType::get( - /*shape=*/{}, IntegerType::get(32, IntegerType::Unsigned, context))); + /*shape=*/{}, IntegerType::get(context, 32, IntegerType::Unsigned))); return success(); } diff --git a/lib/Dialect/mhlo/transforms/legalize_to_standard.cc b/lib/Dialect/mhlo/transforms/legalize_to_standard.cc index 63bbd44..454ec18 100644 --- a/lib/Dialect/mhlo/transforms/legalize_to_standard.cc +++ b/lib/Dialect/mhlo/transforms/legalize_to_standard.cc @@ -145,7 +145,7 @@ class ConvertIotaOp : public OpRewritePattern { auto int_shape_type = RankedTensorType::get( output_type.getShape(), - IntegerType::get(bitwidth, rewriter.getContext())); + IntegerType::get(rewriter.getContext(), bitwidth)); auto loc = op.getLoc(); auto integer_const = rewriter.create( loc, DenseIntElementsAttr::get(int_shape_type, values));