diff options
Diffstat (limited to 'mlir/lib/IR/Dialect.cpp')
-rw-r--r-- | mlir/lib/IR/Dialect.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mlir/lib/IR/Dialect.cpp b/mlir/lib/IR/Dialect.cpp index 4547452eb55..e38b95ff0f7 100644 --- a/mlir/lib/IR/Dialect.cpp +++ b/mlir/lib/IR/Dialect.cpp @@ -18,6 +18,7 @@ #include "mlir/IR/Dialect.h" #include "mlir/IR/Diagnostics.h" #include "mlir/IR/DialectHooks.h" +#include "mlir/IR/Function.h" #include "mlir/IR/MLIRContext.h" #include "llvm/ADT/Twine.h" #include "llvm/Support/ManagedStatic.h" @@ -68,6 +69,20 @@ Dialect::Dialect(StringRef name, MLIRContext *context) Dialect::~Dialect() {} +/// Verify an attribute from this dialect on the given function. Returns +/// failure if the verification failed, success otherwise. +LogicalResult Dialect::verifyFunctionAttribute(Function, NamedAttribute) { + return success(); +} + +/// Verify an attribute from this dialect on the argument at 'argIndex' for +/// the given function. Returns failure if the verification failed, success +/// otherwise. +LogicalResult Dialect::verifyFunctionArgAttribute(Function, unsigned argIndex, + NamedAttribute) { + return success(); +} + /// Parse an attribute registered to this dialect. Attribute Dialect::parseAttribute(StringRef attrData, Location loc) const { emitError(loc) << "dialect '" << getNamespace() |