diff --git a/mlir/test/mlir-tblgen/attrdefs.td b/mlir/test/mlir-tblgen/attrdefs.td index 38815fcd343484..34cdcab7246e6d 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 c94241eda51842..69848116fbd369 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 {