diff --git a/WORKSPACE b/WORKSPACE index f35c710..c9b9a3a 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -15,9 +15,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -LLVM_COMMIT = "a4fa667dee6012e350bd405ee7a759a53738b279" +LLVM_COMMIT = "f89f6d1e5d7d9cefd9e1d4c7a17afb53245a1fa8" -LLVM_SHA256 = "11ef06ff3c01638d3bd11d9095259db92ab69ec85f101f4969c6c4ad9f154f8e" +LLVM_SHA256 = "dcc663ea8f53345c709ad36bd71fc67102bac7590357dc7a46260074317759cc" 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 e8c073a..a70894e 100644 --- a/build_tools/llvm_version.txt +++ b/build_tools/llvm_version.txt @@ -1,2 +1,2 @@ -a4fa667dee6012e350bd405ee7a759a53738b279 +f89f6d1e5d7d9cefd9e1d4c7a17afb53245a1fa8 diff --git a/lib/Dialect/mhlo/transforms/legalize_to_linalg.cc b/lib/Dialect/mhlo/transforms/legalize_to_linalg.cc index 3d72efc..c5c9edd 100644 --- a/lib/Dialect/mhlo/transforms/legalize_to_linalg.cc +++ b/lib/Dialect/mhlo/transforms/legalize_to_linalg.cc @@ -329,7 +329,7 @@ struct ConvToLinalgConverter : public OpConversionPattern { auto range = window_strides->getAttributeValues(); strides.assign(range.begin(), range.end()); } - auto strides_arg = ArrayAttr::get(strides, op.getContext()); + auto strides_arg = ArrayAttr::get(op.getContext(), strides); llvm::SmallVector dilation; if (auto rhs_dilation = op.rhs_dilation()) { @@ -339,7 +339,7 @@ struct ConvToLinalgConverter : public OpConversionPattern { // Default dilation of 1. dilation.resize(2, IntegerAttr::get(rewriter.getIntegerType(64), 1)); } - auto dilation_arg = ArrayAttr::get(dilation, op.getContext()); + auto dilation_arg = ArrayAttr::get(op.getContext(), dilation); // Set padding only if it is non-zero. DenseIntElementsAttr padding = op.paddingAttr();