16 #ifndef DIALECT_MSFT_TRANSFORMS_PASSDETAILS_H
17 #define DIALECT_MSFT_TRANSFORMS_PASSDETAILS_H
24 #include "mlir/Pass/Pass.h"
25 #include "mlir/Transforms/DialectConversion.h"
34 StringRef
getValueName(Value v,
const SymbolCache &syms, std::string &buff);
37 template <
typename OpTy>
44 ConversionPatternRewriter &rewriter)
const final {
StringRef getValueName(Value v, const SymbolCache &syms, std::string &buff)
Try to get a "good" name for the given Value.
SmallVector< unsigned > makeSequentialRange(unsigned size)
Utility for creating {0, 1, 2, ..., size}.
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
Generic pattern for removing an op during pattern conversion.
typename OpConversionPattern< OpTy >::OpAdaptor OpAdaptor
LogicalResult matchAndRewrite(OpTy op, OpAdaptor adaptor, ConversionPatternRewriter &rewriter) const final