Skip to content

Commit 262f4ad

Browse files
d0ktensorflower-gardener
authored andcommitted
Updates LLVM usage to match [f7a6c341cb93](llvm/llvm-project@f7a6c341cb93) PiperOrigin-RevId: 426099105 Change-Id: I4af3e831a605b58c899b2efd06950fd96caceeaa
1 parent d0c8334 commit 262f4ad

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

‎tensorflow/compiler/mlir/lite/converter_gen.cc‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,9 +562,9 @@ static bool RuntimeVerifierWriterMain(raw_ostream &os, RecordKeeper &records) {
562562
" // in the pass manager can be multi-threaded.\n"
563563
" return success(current_thread_id == llvm::get_threadid());\n"
564564
" });\n";
565-
os << " return top.verify();\n";
565+
os << " return top.verifyInvariants();\n";
566566
os << " } else {\n";
567-
os << " return top.verify();\n}\n";
567+
os << " return top.verifyInvariants();\n}\n";
568568
os << "}\n";
569569
}
570570

‎tensorflow/compiler/mlir/lite/tf_to_tfl_flatbuffer.cc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ Status ConvertTFExecutorToTFLOrFlatbuffer(
300300
*result = translated_result;
301301
}
302302

303-
if (mlir::failed(module.verify())) {
303+
if (mlir::failed(module.verifyInvariants())) {
304304
return tensorflow::errors::Unknown("Final module is invalid");
305305
}
306306
return Status::OK();

‎tensorflow/compiler/mlir/xla/experimental/conv_emitter/conv_emitter_test.cc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ std::string CompileHloConvAndGetMlir(absl::string_view hlo_text) {
6161
EmitConvolutionForwardAsMlir(conv, "Conv", &context).ValueOrDie();
6262

6363
mlir_module->push_back(function);
64-
(void)mlir_module->verify();
64+
(void)mlir_module->verifyInvariants();
6565

6666
std::string mlir_text;
6767
{

‎tensorflow/compiler/xla/pjrt/mlir_to_hlo.cc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ StatusOr<mlir::OwningOpRef<mlir::ModuleOp>> ParseMlirModuleString(
8181
if (!module) {
8282
return diagnostic_handler.ConsumeStatus();
8383
}
84-
if (failed(module->verify())) {
84+
if (failed(module->verifyInvariants())) {
8585
VLOG(1) << "MLIR verification failed.";
8686
module->dump();
8787
return diagnostic_handler.ConsumeStatus();

‎tensorflow/compiler/xla/python/mlir.cc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ StatusOr<XlaComputation> PyMlirModuleToXlaComputation(std::string mlir_module,
6767
if (!module) {
6868
return diagnostic_handler.ConsumeStatus();
6969
}
70-
if (failed(module->verify())) {
70+
if (failed(module->verifyInvariants())) {
7171
VLOG(1) << "MLIR verification failed.";
7272
module->dump();
7373
return diagnostic_handler.ConsumeStatus();

‎tensorflow/core/ir/ops.cc‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ LogicalResult CastOp::fold(ArrayRef<Attribute> operands,
870870
template <typename IfLikeOp>
871871
static LogicalResult VerifyIfLikeOp(IfLikeOp op,
872872
SymbolTableCollection &symbol_table) {
873-
if (failed(op.verify())) return failure();
873+
if (failed(op.verifyInvariants())) return failure();
874874
FailureOr<TypeRange> ins = VerifyOperands(op);
875875
if (failed(ins)) return failure();
876876
FailureOr<TypeRange> outs = VerifyResults(op);
@@ -902,7 +902,7 @@ static LogicalResult VerifyIfLikeOp(IfLikeOp op,
902902
template <typename CaseLikeOp>
903903
static LogicalResult VerifyCaseLikeOp(CaseLikeOp op,
904904
SymbolTableCollection &symbol_table) {
905-
if (failed(op.verify())) return failure();
905+
if (failed(op.verifyInvariants())) return failure();
906906
FailureOr<TypeRange> ins = VerifyOperands(op);
907907
if (failed(ins)) return failure();
908908
FailureOr<TypeRange> outs = VerifyResults(op);
@@ -928,7 +928,7 @@ static LogicalResult VerifyCaseLikeOp(CaseLikeOp op,
928928
template <typename WhileLikeOp>
929929
static LogicalResult VerifyWhileLikeOp(WhileLikeOp op,
930930
SymbolTableCollection &symbol_table) {
931-
if (failed(op.verify())) return failure();
931+
if (failed(op.verifyInvariants())) return failure();
932932
FailureOr<TypeRange> ins = VerifyOperands(op);
933933
if (failed(ins)) return failure();
934934
FailureOr<TypeRange> outs = VerifyResults(op);
@@ -955,7 +955,7 @@ static LogicalResult VerifyWhileLikeOp(WhileLikeOp op,
955955
// ForOp
956956

957957
LogicalResult ForOp::verifySymbolUses(SymbolTableCollection &symbol_table) {
958-
if (failed(verify())) return failure();
958+
if (failed(verifyInvariants())) return failure();
959959
FailureOr<TypeRange> ins = VerifyOperands(*this);
960960
if (failed(ins)) return failure();
961961
FailureOr<TypeRange> outs = VerifyResults(*this);

‎third_party/llvm/workspace.bzl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ load("//third_party:repo.bzl", "tf_http_archive")
44

55
def repo(name):
66
"""Imports LLVM."""
7-
LLVM_COMMIT = "7e9d19016eae3b169dea1148978d339f4d2433e2"
8-
LLVM_SHA256 = "1297a286b82ff0085b1706adff0c4965398cf3414351efb4f07ac87409303945"
7+
LLVM_COMMIT = "f7a6c341cb936991eb3ccac3be25b02fecf7a4b8"
8+
LLVM_SHA256 = "80d6b3afbe7365983c6b44efb8b4f57f57a4b1a3a1951ac8cc72b70b62cce566"
99

1010
tf_http_archive(
1111
name = name,

0 commit comments

Comments
 (0)