Displaying 1 result from an estimated 1 matches for "llvminitializefunctionpassmanag".
Did you mean:
llvminitializefunctionpassmanager
2020 Jun 16
2
Need help on JIT compilation speed
...mp_ctx->pass_mgr);
LLVMAddReassociatePass(comp_ctx->pass_mgr);
LLVMAddGVNPass(comp_ctx->pass_mgr);
LLVMAddCFGSimplificationPass(comp_ctx->pass_mgr);
This is how I apply passes to my single IR module (which actually includes
927 functions)
if (comp_ctx->optimize) {
LLVMInitializeFunctionPassManager(comp_ctx->pass_mgr);
for (i = 0; i < comp_ctx->func_ctx_count; i++)
LLVMRunFunctionPassManager(comp_ctx->pass_mgr,
comp_ctx->func_ctxes[i]->func);
}
BR,
Terry
-------------- next part --------------
An HTML attachment was s...