13 #ifndef CIRCT_SUPPORT_CUSTOMDIRECTIVEIMPL_H
14 #define CIRCT_SUPPORT_CUSTOMDIRECTIVEIMPL_H
17 #include "mlir/IR/Builders.h"
18 #include "mlir/IR/OpImplementation.h"
54 ArrayRef<StringRef> extraElides = {});
62 SmallVectorImpl<StringRef> &elides);
80 StringRef trueKeyword, StringRef falseKeyword);
87 StringRef trueKeyword, StringRef falseKeyword);
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
ParseResult parseKeywordBool(OpAsmParser &parser, BoolAttr &attr, StringRef trueKeyword, StringRef falseKeyword)
Parse a boolean as one of two keywords.
void printOptionalBinaryOpTypes(OpAsmPrinter &p, Operation *op, Type lhs, Type rhs)
Print/parse binary operands type only when types are different.
void elideImplicitSSAName(OpAsmPrinter &printer, Operation *op, DictionaryAttr attrs, SmallVectorImpl< StringRef > &elides)
Check if the name attribute in attrs matches the SSA name of the operation's first result.
ParseResult parseImplicitSSAName(OpAsmParser &parser, StringAttr &attr)
Parse an implicit SSA name string attribute.
void printKeywordBool(OpAsmPrinter &printer, Operation *op, BoolAttr attr, StringRef trueKeyword, StringRef falseKeyword)
Print a boolean as one of two keywords.
bool inferImplicitSSAName(OpAsmParser &parser, NamedAttrList &attrs)
Ensure that attrs contains a name attribute by inferring its value from the SSA name of the operation...
void printImplicitSSAName(OpAsmPrinter &p, Operation *op, StringAttr attr)
Print an implicit SSA name string attribute.
ParseResult parseOptionalBinaryOpTypes(OpAsmParser &parser, Type &lhs, Type &rhs)