MLIR  22.0.0git
Public Member Functions | Static Public Member Functions | List of all members
mlir::tblgen::ConstantProp Class Reference

#include "mlir/TableGen/Property.h"

+ Inheritance diagram for mlir::tblgen::ConstantProp:

Public Member Functions

 ConstantProp (const llvm::DefInit *def)
 
StringRef getValue () const
 
- Public Member Functions inherited from mlir::tblgen::Property
 Property (const llvm::Record *def)
 
 Property (const llvm::DefInit *init)
 
 Property (const llvm::Record *maybeDef, StringRef summary, StringRef description, StringRef storageType, StringRef interfaceType, StringRef convertFromStorageCall, StringRef assignToStorageCall, StringRef convertToAttributeCall, StringRef convertFromAttributeCall, StringRef parserCall, StringRef optionalParserCall, StringRef printerCall, StringRef readFromMlirBytecodeCall, StringRef writeToMlirBytecodeCall, StringRef hashPropertyCall, StringRef defaultValue, StringRef storageTypeValueOverride)
 
StringRef getSummary () const
 
StringRef getDescription () const
 
StringRef getStorageType () const
 
StringRef getInterfaceType () const
 
StringRef getConvertFromStorageCall () const
 
StringRef getAssignToStorageCall () const
 
StringRef getConvertToAttributeCall () const
 
StringRef getConvertFromAttributeCall () const
 
Pred getPredicate () const
 
StringRef getParserCall () const
 
bool hasOptionalParser () const
 
StringRef getOptionalParserCall () const
 
StringRef getPrinterCall () const
 
StringRef getReadFromMlirBytecodeCall () const
 
StringRef getWriteToMlirBytecodeCall () const
 
StringRef getHashPropertyCall () const
 
bool hasDefaultValue () const
 
StringRef getDefaultValue () const
 
bool hasStorageTypeValueOverride () const
 
StringRef getStorageTypeValueOverride () const
 
StringRef getPropertyDefName () const
 
Property getBaseProperty () const
 
bool isSubClassOf (StringRef className) const
 
- Public Member Functions inherited from mlir::tblgen::PropConstraint
StringRef getInterfaceType () const
 
 Constraint (const llvm::Record *record, Kind kind)
 
 Constraint (const llvm::Record *record)
 
- Public Member Functions inherited from mlir::tblgen::Constraint
 Constraint (const llvm::Record *record, Kind kind)
 
 Constraint (const llvm::Record *record)
 
bool operator== (const Constraint &that)
 Constraints are pointer-comparable. More...
 
bool operator!= (const Constraint &that)
 
Pred getPredicate () const
 
std::string getConditionTemplate () const
 
StringRef getSummary () const
 
StringRef getDescription () const
 
StringRef getDefName () const
 Returns the name of the TablGen def of this constraint. More...
 
std::string getUniqueDefName () const
 Returns a unique name for the TablGen def of this constraint. More...
 
std::optional< StringRef > getCppFunctionName () const
 Returns the name of the C++ function that should be generated for this constraint, or std::nullopt if no C++ function should be generated. More...
 
Kind getKind () const
 
const llvm::Record & getDef () const
 Return the underlying def. More...
 

Static Public Member Functions

static bool classof (Property *p)
 
- Static Public Member Functions inherited from mlir::tblgen::PropConstraint
static bool classof (const Constraint *c)
 

Additional Inherited Members

- Public Types inherited from mlir::tblgen::Constraint
enum  Kind {
  CK_Attr , CK_Prop , CK_Region , CK_Successor ,
  CK_Type , CK_Uncategorized
}
 
- Protected Attributes inherited from mlir::tblgen::Constraint
const llvm::Record * def
 

Detailed Description

Definition at line 179 of file Property.h.

Constructor & Destructor Documentation

◆ ConstantProp()

mlir::tblgen::ConstantProp::ConstantProp ( const llvm::DefInit *  def)
inlineexplicit

Definition at line 181 of file Property.h.

References mlir::tblgen::Property::isSubClassOf().

Member Function Documentation

◆ classof()

static bool mlir::tblgen::ConstantProp::classof ( Property p)
inlinestatic

Definition at line 185 of file Property.h.

References mlir::tblgen::Property::isSubClassOf().

◆ getValue()

StringRef ConstantProp::getValue ( ) const

Definition at line 119 of file Property.cpp.

References mlir::tblgen::Constraint::def.


The documentation for this class was generated from the following files: