Skip to content

Commit 1c0face

Browse files
updating tblgen test
1 parent 0daee71 commit 1c0face

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mlir/test/mlir-tblgen/attrdefs.td

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ def B_CompoundAttrA : TestAttr<"CompoundA"> {
115115
// DEF: return new (allocator.allocate<CompoundAAttrStorage>())
116116
// DEF-SAME: CompoundAAttrStorage(std::move(widthOfSomething), std::move(exampleTdType), std::move(apFloat), std::move(dims), std::move(inner));
117117

118+
// DEF: CompoundAAttr CompoundAAttr::getChecked(
119+
// DEF-SAME: int widthOfSomething, ::test::SimpleTypeA exampleTdType, ::llvm::APFloat apFloat, ::llvm::ArrayRef<int> dims, ::mlir::Type inner
120+
// DEF-SAME: )
121+
// DEF-NEXT: return Base::getChecked(emitError, context, std::move(widthOfSomething), std::move(exampleTdType), std::move(apFloat), std::move(dims), std::move(inner));
122+
118123
// DEF: ::mlir::Type CompoundAAttr::getInner() const {
119124
// DEF-NEXT: return getImpl()->inner;
120125
}

0 commit comments

Comments
 (0)