Displaying 1 result from an estimated 1 matches for "curfunc1".
Did you mean:
curfunc2
2008 Aug 11
2
[LLVMdev] Applying different Optimizations for different Functions - Questions?
...)
{
Function *Main = M.getFunction("main");
if (Main == 0)
{
cerr << "!!! No Main Function" << std::endl;
return false;
}
//Determine each Function
LoopPass * UnrollLoops;
FunctionPass *DeadStoreElim;
LPPassManager *LPPM;
Function *CurFunc1 = M.getFunction("NewFunction1");
Function &Current1 = (*CurFunc1);
Function *CurFunc2 = M.getFunction("NewFunction2");
Function &Current2 = (*CurFunc2);
cerr << "Dead Store Eliminations" << std::endl;
DeadStoreElim = createDeadStoreElimin...