|
My Project
|
#include <OpToFuncCallLowering.h>


Public Member Functions | |
| OpToFuncCallLowering (LLVMTypeConverter &lowering_, StringRef f32Func, StringRef f64Func) | |
| PatternMatchResult | matchAndRewrite (Operation *op, ArrayRef< Value > operands, ConversionPatternRewriter &rewriter) const override |
| Hook for derived classes to implement combined matching and rewriting. More... | |
Public Member Functions inherited from mlir::LLVMOpLowering | |
| LLVMOpLowering (StringRef rootOpName, MLIRContext *context, LLVMTypeConverter &lowering, PatternBenefit benefit=1) | |
Public Member Functions inherited from mlir::ConversionPattern | |
| ConversionPattern (StringRef rootName, PatternBenefit benefit, MLIRContext *ctx) | |
| virtual void | rewrite (Operation *op, ArrayRef< Value > operands, ConversionPatternRewriter &rewriter) const |
| virtual void | rewrite (Operation *op, ArrayRef< Value > properOperands, ArrayRef< Block *> destinations, ArrayRef< ArrayRef< Value >> operands, ConversionPatternRewriter &rewriter) const |
| virtual PatternMatchResult | matchAndRewrite (Operation *op, ArrayRef< Value > properOperands, ArrayRef< Block *> destinations, ArrayRef< ArrayRef< Value >> operands, ConversionPatternRewriter &rewriter) const |
| Hook for derived classes to implement combined matching and rewriting. More... | |
| PatternMatchResult | matchAndRewrite (Operation *op, PatternRewriter &rewriter) const final |
| Attempt to match and rewrite the IR root at the specified operation. More... | |
Public Member Functions inherited from mlir::RewritePattern | |
| virtual void | rewrite (Operation *op, std::unique_ptr< PatternState > state, PatternRewriter &rewriter) const |
| virtual void | rewrite (Operation *op, PatternRewriter &rewriter) const |
| PatternMatchResult | match (Operation *op) const override |
| ArrayRef< OperationName > | getGeneratedOps () const |
Public Member Functions inherited from mlir::Pattern | |
| PatternBenefit | getBenefit () const |
| OperationName | getRootKind () const |
| virtual | ~Pattern () |
| PatternMatchResult | matchSuccess (std::unique_ptr< PatternState > state={}) const |
| This method indicates that a match was found and has the specified cost. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from mlir::Pattern | |
| static PatternMatchResult | matchFailure () |
| This method indicates that no match was found. More... | |
Protected Member Functions inherited from mlir::RewritePattern | |
| RewritePattern (StringRef rootName, PatternBenefit benefit, MLIRContext *context) | |
| RewritePattern (StringRef rootName, ArrayRef< StringRef > generatedNames, PatternBenefit benefit, MLIRContext *context) | |
Protected Member Functions inherited from mlir::Pattern | |
| Pattern (StringRef rootName, PatternBenefit benefit, MLIRContext *context) | |
Protected Attributes inherited from mlir::LLVMOpLowering | |
| LLVMTypeConverter & | lowering |
Protected Attributes inherited from mlir::RewritePattern | |
| SmallVector< OperationName, 2 > | generatedOps |
Rewriting that replace SourceOp with a CallOp to f32Func or f64Func depending on the element type that Op operates upon. The function declaration is added in case it was not added before.
Example with NVVM: exp_f32 = std.exp arg_f32 : f32
will be transformed into llvm.call (arg_f32) : (!llvm.float) -> !llvm.float
|
inlineexplicit |
|
inlineoverridevirtual |
Hook for derived classes to implement combined matching and rewriting.
Reimplemented from mlir::ConversionPattern.
1.8.13