#include "mlir/IR/PatternMatch.h"
#include "llvm/ADT/ArrayRef.h"
#include <string>
Go to the source code of this file.
|
mlir::FailureOr< mlir::func::FuncOp > | mlir::func::replaceFuncWithNewMapping (mlir::RewriterBase &rewriter, mlir::func::FuncOp funcOp, ArrayRef< int > oldArgIdxToNewArgIdx, ArrayRef< int > oldResIdxToNewResIdx) |
| Creates a new function operation with the same name as the original function operation, but with the arguments mapped according to the oldArgToNewArg and oldResToNewRes . More...
|
|
mlir::func::CallOp | mlir::func::replaceCallOpWithNewMapping (mlir::RewriterBase &rewriter, mlir::func::CallOp callOp, ArrayRef< int > oldArgIdxToNewArgIdx, ArrayRef< int > oldResIdxToNewResIdx) |
| Creates a new call operation with the values as the original call operation, but with the arguments mapped according to the oldArgToNewArg and oldResToNewRes . More...
|
|
mlir::FailureOr< std::pair< mlir::func::FuncOp, mlir::func::CallOp > > | mlir::func::deduplicateArgsOfFuncOp (mlir::RewriterBase &rewriter, mlir::func::FuncOp funcOp, mlir::ModuleOp moduleOp) |
| This utility function examines all call operations within the given moduleOp that target the specified funcOp . More...
|
|