Changeset View
Changeset View
Standalone View
Standalone View
mlir/include/mlir/TableGen/OpInterfaces.h
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | public: | ||||
ArrayRef<OpInterfaceMethod> getMethods() const; | ArrayRef<OpInterfaceMethod> getMethods() const; | ||||
// Return the description of this method if it has one. | // Return the description of this method if it has one. | ||||
llvm::Optional<StringRef> getDescription() const; | llvm::Optional<StringRef> getDescription() const; | ||||
// Return the interfaces extra class declaration code. | // Return the interfaces extra class declaration code. | ||||
llvm::Optional<StringRef> getExtraClassDeclaration() const; | llvm::Optional<StringRef> getExtraClassDeclaration() const; | ||||
// Return the traits extra class declaration code. | |||||
llvm::Optional<StringRef> getExtraTraitClassDeclaration() const; | |||||
// Return the verify method body if it has one. | // Return the verify method body if it has one. | ||||
llvm::Optional<StringRef> getVerify() const; | llvm::Optional<StringRef> getVerify() const; | ||||
private: | private: | ||||
// The TableGen definition of this interface. | // The TableGen definition of this interface. | ||||
const llvm::Record *def; | const llvm::Record *def; | ||||
// The methods of this interface. | // The methods of this interface. | ||||
SmallVector<OpInterfaceMethod, 8> methods; | SmallVector<OpInterfaceMethod, 8> methods; | ||||
}; | }; | ||||
} // end namespace tblgen | } // end namespace tblgen | ||||
} // end namespace mlir | } // end namespace mlir | ||||
#endif // MLIR_TABLEGEN_OPINTERFACES_H_ | #endif // MLIR_TABLEGEN_OPINTERFACES_H_ |