Changeset View
Changeset View
Standalone View
Standalone View
mlir/include/mlir/TableGen/Type.h
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | public: | ||||
// variadic or optional. | // variadic or optional. | ||||
bool isVariableLength() const { return isOptional() || isVariadic(); } | bool isVariableLength() const { return isOptional() || isVariadic(); } | ||||
// Returns the builder call for this constraint if this is a buildable type, | // Returns the builder call for this constraint if this is a buildable type, | ||||
// returns None otherwise. | // returns None otherwise. | ||||
Optional<StringRef> getBuilderCall() const; | Optional<StringRef> getBuilderCall() const; | ||||
// Return the C++ class name for this type (which may just be ::mlir::Type). | // Return the C++ class name for this type (which may just be ::mlir::Type). | ||||
StringRef getCPPClassName() const; | std::string getCPPClassName() const; | ||||
}; | }; | ||||
// Wrapper class with helper methods for accessing Types defined in TableGen. | // Wrapper class with helper methods for accessing Types defined in TableGen. | ||||
class Type : public TypeConstraint { | class Type : public TypeConstraint { | ||||
public: | public: | ||||
explicit Type(const llvm::Record *record); | explicit Type(const llvm::Record *record); | ||||
// Returns the description of the type. | // Returns the description of the type. | ||||
Show All 10 Lines |