MLIR
18.0.0git
|
This struct provides a simplified model for processing types that are based on another type, e.g. More...
#include "mlir/IR/PatternMatch.h"
Static Public Member Functions | |
static LogicalResult | verifyAsArg (function_ref< LogicalResult(const Twine &)> errorFn, PDLValue pdlValue, size_t argIdx) |
static T | processAsArg (PDLValue pdlValue) |
static LogicalResult | verifyAsArg (function_ref< LogicalResult(const Twine &)> errorFn, BaseT value, size_t argIdx) |
Explicitly add the expected parent API to ensure the parent class implements the necessary API (and doesn't implicitly inherit it from somewhere else). More... | |
static T | processAsArg (BaseT baseValue) |
This struct provides a simplified model for processing types that are based on another type, e.g.
APInt is based on the handling for IntegerAttr. This allows for building the necessary processing functions on top of the base value instead of a PDLValue. Derived users should implement the following (which subsume the ProcessPDLValue variants):
static LogicalResult verifyAsArg( function_ref<LogicalResult(const Twine &)> errorFn, const BaseT &baseValue, size_t argIdx);
T
.static T processAsArg(BaseT baseValue);
T
. Definition at line 1120 of file PatternMatch.h.
|
static |
|
inlinestatic |
Definition at line 1130 of file PatternMatch.h.
|
inlinestatic |
Explicitly add the expected parent API to ensure the parent class implements the necessary API (and doesn't implicitly inherit it from somewhere else).
Definition at line 1139 of file PatternMatch.h.
References mlir::success().
|
inlinestatic |
Definition at line 1122 of file PatternMatch.h.
References mlir::failed(), and mlir::failure().