[Mlir-commits] [mlir] 71668a9 - [mlir][ods][nfc] fixing test cases

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Dec 1 10:50:14 PST 2021


Author: Mogball
Date: 2021-12-01T18:50:02Z
New Revision: 71668a9367813b6682f89267844e89a105b5f1bb

URL: https://github.com/llvm/llvm-project/commit/71668a9367813b6682f89267844e89a105b5f1bb
DIFF: https://github.com/llvm/llvm-project/commit/71668a9367813b6682f89267844e89a105b5f1bb.diff

LOG: [mlir][ods][nfc] fixing test cases

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 ee455f5359b7..ec2188beb8cc 100644
--- a/mlir/test/mlir-tblgen/attrdefs.td
+++ b/mlir/test/mlir-tblgen/attrdefs.td
@@ -64,7 +64,7 @@ def B_CompoundAttrA : TestAttr<"CompoundA"> {
 // DECL: static CompoundAAttr getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, int widthOfSomething, ::test::SimpleTypeA exampleTdType, ::llvm::APFloat apFloat, ::llvm::ArrayRef<int> dims, ::mlir::Type inner);
 // DECL: static ::mlir::LogicalResult verify(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, int widthOfSomething, ::test::SimpleTypeA exampleTdType, ::llvm::APFloat apFloat, ::llvm::ArrayRef<int> dims, ::mlir::Type inner);
 // DECL: static constexpr ::llvm::StringLiteral getMnemonic() {
-// DECL:   return "cmpnd_a";
+// DECL:   return {"cmpnd_a"};
 // DECL: }
 // DECL: static ::mlir::Attribute parse(
 // DECL-SAME: ::mlir::AsmParser &parser, ::mlir::Type type);
@@ -104,7 +104,7 @@ def C_IndexAttr : TestAttr<"Index"> {
 
 // DECL-LABEL: class IndexAttr : public ::mlir::Attribute
 // DECL: static constexpr ::llvm::StringLiteral getMnemonic() {
-// DECL:   return "index";
+// DECL:   return {"index"};
 // DECL: }
 // DECL: static ::mlir::Attribute parse(
 // DECL-SAME: ::mlir::AsmParser &parser, ::mlir::Type type);

diff  --git a/mlir/test/mlir-tblgen/typedefs.td b/mlir/test/mlir-tblgen/typedefs.td
index 66c51d6e719b..7bbbf5a53bdc 100644
--- a/mlir/test/mlir-tblgen/typedefs.td
+++ b/mlir/test/mlir-tblgen/typedefs.td
@@ -69,7 +69,7 @@ def B_CompoundTypeA : TestType<"CompoundA"> {
 // DECL: static CompoundAType getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, int widthOfSomething, ::test::SimpleTypeA exampleTdType, SomeCppStruct exampleCppType, ::llvm::ArrayRef<int> dims, ::mlir::Type inner);
 // DECL: static ::mlir::LogicalResult verify(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, int widthOfSomething, ::test::SimpleTypeA exampleTdType, SomeCppStruct exampleCppType, ::llvm::ArrayRef<int> dims, ::mlir::Type inner);
 // DECL: static constexpr ::llvm::StringLiteral getMnemonic() {
-// DECL:   return "cmpnd_a";
+// DECL:   return {"cmpnd_a"};
 // DECL: }
 // DECL: static ::mlir::Type parse(::mlir::AsmParser &parser);
 // DECL: void print(::mlir::AsmPrinter &printer) const;
@@ -88,7 +88,7 @@ def C_IndexType : TestType<"Index"> {
 
 // DECL-LABEL: class IndexType : public ::mlir::Type
 // DECL: static constexpr ::llvm::StringLiteral getMnemonic() {
-// DECL:   return "index";
+// DECL:   return {"index"};
 // DECL: }
 // DECL: static ::mlir::Type parse(::mlir::AsmParser &parser);
 // DECL: void print(::mlir::AsmPrinter &printer) const;


        


More information about the Mlir-commits mailing list