Displaying 1 result from an estimated 1 matches for "complnewbbfuncs".
2008 Aug 11
2
[LLVMdev] Applying different Optimizations for different Functions - Questions?
...am trying to develop an LLVM tool which can apply different optimizations
for selected functions. For example, I want to apply an optimization onto one
function but not for another one.
I am using the standard optimizations available in LLVM.
That is the runOnModule function I have written:
bool ComplNewBBFuncs::runOnModule(Module &M)
{
Function *Main = M.getFunction("main");
if (Main == 0)
{
cerr << "!!! No Main Function" << std::endl;
return false;
}
//Determine each Function
LoopPass * UnrollLoops;
FunctionPass *DeadStoreElim;
LPPassM...