#include "Passes/EnzymeBatchPass.h"
#include "Dialect/Ops.h"
#include "Interfaces/GradientUtilsReverse.h"
#include "PassDetails.h"
#include "Passes/Passes.h"
#include "mlir/Dialect/Func/IR/FuncOps.h"
#include "mlir/IR/Builders.h"
#include "mlir/Interfaces/FunctionInterfaces.h"
#include "Passes/Passes.h.inc"
Go to the source code of this file.
|
| mlir::TensorType | mlir::enzyme::batchutils::applyBatchSizes (mlir::Type Ty, llvm::ArrayRef< int64_t > batchSizes) |
| |
| LogicalResult | mlir::enzyme::batchutils::handleCallOp (func::CallOp callOp, OpBuilder &builder, IRMapping &mapper, llvm::ArrayRef< int64_t > batchSizes, std::map< BatchCacheKey, FunctionOpInterface > &batchedFunctionCache) |
| |
| void | mlir::enzyme::batchutils::batchCloneBlock (OpBuilder &builder, Block *blk, IRMapping &mapper, llvm::ArrayRef< int64_t > batchSizes, std::map< BatchCacheKey, FunctionOpInterface > &batchedFunctionCache, bool withoutTerminator) |
| |
| void | mlir::enzyme::batchutils::batchCloneRegion (OpBuilder &builder, Region *src, Region *dest, IRMapping &mapper, llvm::ArrayRef< int64_t > batchSizes, std::map< BatchCacheKey, FunctionOpInterface > &batchedFunctionCache) |
| |
| FunctionOpInterface | mlir::enzyme::batchutils::batchCloneFunction (OpBuilder &builder, FunctionOpInterface F, Twine name, llvm::ArrayRef< int64_t > batchSizes, std::map< BatchCacheKey, FunctionOpInterface > &batchedFunctionCache) |
| |
| template<typename T > |
| FunctionOpInterface | mlir::enzyme::batchutils::batchOperationWithoutInsertingCallOp (OpBuilder &builder, T CI, FunctionOpInterface fn, std::map< BatchCacheKey, FunctionOpInterface > &batchedFunctionCache) |
| |
◆ DEBUG_TYPE
| #define DEBUG_TYPE "enzyme-batch" |
◆ GEN_PASS_DEF_BATCHPASS
| #define GEN_PASS_DEF_BATCHPASS |