Displaying 1 result from an estimated 1 matches for "registercpi".
Did you mean:
registerapi
2018 Apr 04
0
Fault while using AAResultsWrapperPass in LLVM 5.0.1
...imer.so -Timer < test_clang.bc > test_clang1.bc
opt -load ${LLVM_LIB}/LLVMTimer.so -Timer < fun_lib.bc > test_clang1.bc
llc test_clang.bc -o test_clang.s
llc fun_lib.bc -o fun_lib.s
gcc test_clang.s fun_lib.s -o test.native
When the Pass is registered by the following code:
static void registerCPI(const PassManagerBuilder &, legacy::PassManagerBase &PM){
PM.add(new CPI());
}
static RegisterStandardPasses
RegisterMyPass(PassManagerBuilder::EP_ModuleOptimizerEarly, registerCPI);
static RegisterStandardPasses
RegisterMyPass0(PassManagerBuilder::EP_EnabledOnOptLevel0, regist...