search for: tgt_data

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

Did you mean: pgt_data
2003 Aug 13
1
[LLVMdev] Running a pass
...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. Thanks, Rahul