[Mlir-commits] [mlir] 75f3f77 - Fix MLIR test post 890afad954d

Mehdi Amini llvmlistbot at llvm.org
Tue Mar 9 15:34:26 PST 2021


Author: Mehdi Amini
Date: 2021-03-09T23:30:51Z
New Revision: 75f3f778052cdcd89e79f7a42a50915ee5ce2281

URL: https://github.com/llvm/llvm-project/commit/75f3f778052cdcd89e79f7a42a50915ee5ce2281
DIFF: https://github.com/llvm/llvm-project/commit/75f3f778052cdcd89e79f7a42a50915ee5ce2281.diff

LOG: Fix MLIR test post 890afad954d

Added: 
    

Modified: 
    mlir/test/mlir-tblgen/attrdefs.td
    mlir/test/mlir-tblgen/typedefs.td

Removed: 
    


################################################################################
diff  --git a/mlir/test/mlir-tblgen/attrdefs.td b/mlir/test/mlir-tblgen/attrdefs.td
index 38815fcd3434..34cdcab7246e 100644
--- a/mlir/test/mlir-tblgen/attrdefs.td
+++ b/mlir/test/mlir-tblgen/attrdefs.td
@@ -18,17 +18,17 @@ include "mlir/IR/OpBase.td"
 // DEF: ::mlir::test::IndexAttr,
 // DEF: ::mlir::test::SingleParameterAttr
 
-// DEF-LABEL: OptionalParseResult generatedAttributeParser(::mlir::MLIRContext *context,
+// DEF-LABEL: ::mlir::OptionalParseResult generatedAttributeParser(::mlir::MLIRContext *context,
 // DEF-NEXT: ::mlir::DialectAsmParser &parser,
 // DEF-NEXT: ::llvm::StringRef mnemonic, ::mlir::Type type,
 // DEF-NEXT: ::mlir::Attribute &value) {
 // DEF: if (mnemonic == ::mlir::test::CompoundAAttr::getMnemonic()) {
 // DEF-NEXT: value = ::mlir::test::CompoundAAttr::parse(context, parser, type);
-// DEF-NEXT: return success(!!value);
+// DEF-NEXT: return ::mlir::success(!!value);
 // DEF-NEXT: }
 // DEF-NEXT: if (mnemonic == ::mlir::test::IndexAttr::getMnemonic()) {
 // DEF-NEXT:   value = ::mlir::test::IndexAttr::parse(context, parser, type);
-// DEF-NEXT:   return success(!!value);
+// DEF-NEXT:   return ::mlir::success(!!value);
 // DEF: return {};
 
 def Test_Dialect: Dialect {

diff  --git a/mlir/test/mlir-tblgen/typedefs.td b/mlir/test/mlir-tblgen/typedefs.td
index c94241eda518..69848116fbd3 100644
--- a/mlir/test/mlir-tblgen/typedefs.td
+++ b/mlir/test/mlir-tblgen/typedefs.td
@@ -19,17 +19,17 @@ include "mlir/IR/OpBase.td"
 // DEF: ::mlir::test::SingleParameterType,
 // DEF: ::mlir::test::IntegerType
 
-// DEF-LABEL: OptionalParseResult generatedTypeParser(::mlir::MLIRContext *context,
+// DEF-LABEL: ::mlir::OptionalParseResult generatedTypeParser(::mlir::MLIRContext *context,
 // DEF-NEXT: ::mlir::DialectAsmParser &parser,
 // DEF-NEXT: ::llvm::StringRef mnemonic,
 // DEF-NEXT: ::mlir::Type &value) {
 // DEF: if (mnemonic == ::mlir::test::CompoundAType::getMnemonic()) {
 // DEF-NEXT:   value = ::mlir::test::CompoundAType::parse(context, parser);
-// DEF-NEXT:   return success(!!value);
+// DEF-NEXT:   return ::mlir::success(!!value);
 // DEF-NEXT: }
 // DEF-NEXT: if (mnemonic == ::mlir::test::IndexType::getMnemonic()) {
 // DEF-NEXT:   value = ::mlir::test::IndexType::parse(context, parser);
-// DEF-NEXT:   return success(!!value);
+// DEF-NEXT:   return ::mlir::success(!!value);
 // DEF: return {};
 
 def Test_Dialect: Dialect {


        


More information about the Mlir-commits mailing list