Function tvm::transform::CreateModulePass(std::function<IRModule(IRModule, PassContext)>, int, ffi::String)#
Defined in File transform.h
Function Documentation#
-
inline Pass tvm::transform::CreateModulePass(std::function<IRModule(IRModule, PassContext)> pass_func, int opt_level, ffi::String name)#
Create a module pass from a native C++ callback.
- Parameters:
pass_func – The callback that transforms the module.
opt_level – The optimization level of the module pass.
name – The name of the module pass.
- Returns:
The created module pass.