Function tvm::transform::CreateModulePass(ffi::TypedFunction, PassContext)>, int, ffi::String)

Function tvm::transform::CreateModulePass(ffi::TypedFunction<IRModule(ffi::RValueRef<IRModule>, PassContext)>, int, ffi::String)#

Function Documentation#

Pass tvm::transform::CreateModulePass(ffi::TypedFunction<IRModule(ffi::RValueRef<IRModule>, PassContext)> pass_func, int opt_level, ffi::String name)#

Create a module pass from an owning FFI 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.