16 #ifndef MLIR_DIALECT_FUNC_UTILS_H
17 #define MLIR_DIALECT_FUNC_UTILS_H
20 #include "llvm/ADT/ArrayRef.h"
This class coordinates the application of a rewrite on a set of IR, providing a way for clients to tr...
CallOp replaceCallOpWithNewOrder(RewriterBase &rewriter, CallOp callOp, llvm::ArrayRef< unsigned > newArgsOrder, llvm::ArrayRef< unsigned > newResultsOrder)
Creates a new call operation with the values as the original call operation, but with the arguments r...
FailureOr< FuncOp > replaceFuncWithNewOrder(RewriterBase &rewriter, FuncOp funcOp, llvm::ArrayRef< unsigned > newArgsOrder, llvm::ArrayRef< unsigned > newResultsOrder)
Creates a new function operation with the same name as the original function operation,...
Include the generated interface declarations.