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

PiperOrigin-RevId: 370736351
This commit is contained in:
Benjamin Kramer 2021-04-27 12:17:46 -07:00 committed by TensorFlow MLIR Team
parent a5de7719d7
commit b2a23bf269
3 changed files with 10 additions and 11 deletions

View File

@ -15,9 +15,9 @@
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
LLVM_COMMIT = "f8de9aaef2f472ad7572748582444083d31d5a95" LLVM_COMMIT = "4b13b7581db59adbc0ee4bbf269f3eda96fc9bd7"
LLVM_SHA256 = "577e77afb764eff514ba5c8fdf8ad86fd9b2e073d06df055d9c6bb42fcfd6b20" LLVM_SHA256 = "7ed9f26d79ddb7fa269b99174e8d9a1ae1e28a46a175e7e019372011a57fb7b1"
LLVM_BAZEL_TAG = "llvm-project-{commit}".format(commit = LLVM_COMMIT) LLVM_BAZEL_TAG = "llvm-project-{commit}".format(commit = LLVM_COMMIT)

View File

@ -1,2 +1,2 @@
f8de9aaef2f472ad7572748582444083d31d5a95 4b13b7581db59adbc0ee4bbf269f3eda96fc9bd7

View File

@ -102,8 +102,8 @@ func @select_and_scatter(%arg: memref<112x112xf32>,
// INBOUNDS-THEN-BODY, i.e. if INBOUNDS == true // INBOUNDS-THEN-BODY, i.e. if INBOUNDS == true
// CHECK: [[ARG_ELEM:%.*]] = memref.load [[ARG_BUF]]{{\[}}[[ARG_I]], [[ARG_J]]] // CHECK: [[ARG_ELEM:%.*]] = memref.load [[ARG_BUF]]{{\[}}[[ARG_I]], [[ARG_J]]]
// CHECK: [[IF_INIT_RES:%.*]]:4 // CHECK: [[IF_INIT_RES:%.*]]:3
// CHECK-SAME: = scf.if [[SEL_INIT]] -> (index, index, f32, i1) { // CHECK-SAME: = scf.if [[SEL_INIT]] -> (index, index, f32) {
// INIT-THEN-BODY, i.e. INBOUNDS == true and INIT = true // INIT-THEN-BODY, i.e. INBOUNDS == true and INIT = true
@ -130,21 +130,20 @@ func @select_and_scatter(%arg: memref<112x112xf32>,
// CHECK: [[IF_PRED_RES0:%.*]] = select [[PRED]], [[ARG_I]], [[SEL_I]] // CHECK: [[IF_PRED_RES0:%.*]] = select [[PRED]], [[ARG_I]], [[SEL_I]]
// CHECK: [[IF_PRED_RES1:%.*]] = select [[PRED]], [[ARG_J]], [[SEL_J]] // CHECK: [[IF_PRED_RES1:%.*]] = select [[PRED]], [[ARG_J]], [[SEL_J]]
// CHECK: [[IF_PRED_RES2:%.*]] = select [[PRED]], [[ARG_ELEM]], [[SEL_VAL]] // CHECK: [[IF_PRED_RES2:%.*]] = select [[PRED]], [[ARG_ELEM]], [[SEL_VAL]]
// CHECK: [[IF_PRED_RES3:%.*]] = select [[PRED]], [[CTRUE]], [[SEL_INIT]]
// INIT-THEN-BODY yield. // INIT-THEN-BODY yield.
// CHECK: scf.yield [[IF_PRED_RES0]], [[IF_PRED_RES1]], // CHECK: scf.yield [[IF_PRED_RES0]], [[IF_PRED_RES1]],
// CHECK-SAME: [[IF_PRED_RES2]], [[IF_PRED_RES3]] // CHECK-SAME: [[IF_PRED_RES2]]
// INIT-ELSE-BODY, i.e. if INBOUNDS == TRUE and INIT == FALSE, returns ARG // INIT-ELSE-BODY, i.e. if INBOUNDS == TRUE and INIT == FALSE, returns ARG
// ivs and element without computing Select function. // ivs and element without computing Select function.
// CHECK: scf.yield [[ARG_I]], [[ARG_J]], [[ARG_ELEM]], // CHECK: scf.yield [[ARG_I]], [[ARG_J]], [[ARG_ELEM]]
// CHECK-SAME: [[CTRUE]] : index, index, f32, i1 // CHECK-SAME: : index, index, f32
// CHECK: } // CHECK: }
// INBOUNDS-THEN-BODY yield. // INBOUNDS-THEN-BODY yield.
// CHECK: scf.yield [[IF_INIT_RES]]#0, [[IF_INIT_RES]]#1, [[IF_INIT_RES]]#2, // CHECK: scf.yield [[IF_INIT_RES]]#0, [[IF_INIT_RES]]#1, [[IF_INIT_RES]]#2
// CHECK-SAME: [[IF_INIT_RES]]#3 : index, index, f32, i1 // CHECK-SAME: : index, index, f32
// CHECK: } // CHECK: }
// INBOUNDS-ELSE-REGION, i.e. if INBOUNDS == FALSE // INBOUNDS-ELSE-REGION, i.e. if INBOUNDS == FALSE