Updates LLVM usage to match
[f89f6d1e5d7d](https://github.com/llvm/llvm-project/commit/f89f6d1e5d7d)

PiperOrigin-RevId: 356265374
This commit is contained in:
A. Unique TensorFlower 2021-02-08 08:01:22 -08:00 committed by TensorFlow MLIR Team
parent d086b8a0ec
commit 80d753c1fe
3 changed files with 5 additions and 5 deletions

View File

@ -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)

View File

@ -1,2 +1,2 @@
a4fa667dee6012e350bd405ee7a759a53738b279
f89f6d1e5d7d9cefd9e1d4c7a17afb53245a1fa8

View File

@ -329,7 +329,7 @@ struct ConvToLinalgConverter : public OpConversionPattern<lmhlo::ConvOp> {
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<Attribute, 2> dilation;
if (auto rhs_dilation = op.rhs_dilation()) {
@ -339,7 +339,7 @@ struct ConvToLinalgConverter : public OpConversionPattern<lmhlo::ConvOp> {
// 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();