search for: getregalloca

Displaying 1 result from an estimated 1 matches for "getregalloca".

Did you mean: getregallocas
2003 Aug 13
1
[LLVMdev] Running a pass
...without using the the LLVM opt utility. I wrote some code, which I am not sure is correct: TS_ASSERT(!verifyFunction(*function)); // find the dominance frontier of the CFG DominanceFrontier DF; DF.runOnFunction(*function); // try to promote stack allocated variables PromoteMemToReg(function->getRegAllocas(), DF, *tgt_data); function->print(std::cout); TS_ASSERT(!verifyFunction(*function)); Is this supposed to work? Or what is the preferred way passes are to be run on functions? With the above code, my program crashes even before main(), when doing some static initialization in Type.cpp. Than...