16 #ifndef MLIR_DIALECT_FUNC_UTILS_H 
   17 #define MLIR_DIALECT_FUNC_UTILS_H 
   20 #include "llvm/ADT/ArrayRef.h" 
   59 mlir::FailureOr<std::pair<mlir::func::FuncOp, mlir::func::CallOp>>
 
   61                         mlir::ModuleOp moduleOp);
 
This class coordinates the application of a rewrite on a set of IR, providing a way for clients to tr...
mlir::func::CallOp 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 m...
mlir::FailureOr< mlir::func::FuncOp > 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,...
mlir::FailureOr< std::pair< mlir::func::FuncOp, mlir::func::CallOp > > 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 specifie...
Include the generated interface declarations.