MLIR  21.0.0git
Namespaces | Functions
Utils.h File Reference
#include "mlir/IR/PatternMatch.h"
#include "llvm/ADT/ArrayRef.h"

Go to the source code of this file.

Namespaces

 mlir
 Include the generated interface declarations.
 
 mlir::func
 

Functions

FailureOr< FuncOp > mlir::func::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, but with the arguments reordered according to the newArgsOrder and newResultsOrder. More...
 
CallOp mlir::func::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 reordered according to the newArgsOrder and newResultsOrder. More...