Displaying 1 result from an estimated 1 matches for "mem2reg_pass".
2003 Aug 13
1
[LLVMdev] Running a pass
...ried the following code (which I wrote after looking at
the code for bugpoint), but the list of passes seems to be
empty:
// Create a list of all the registered passses
static cl::list<const PassInfo*, bool, PassNameParser>
PassList(cl::desc("Passes available:"), cl::ZeroOrMore);
mem2reg_pass = NULL;
for(It i = PassList.begin(); i != PassList.end(); i++) {
std::cout << (*i)->getPassName() << endl;
if(string("mem2reg") == (*i)->getPassName()) {
mem2reg_pass = *i;
break;
}
}
assert(mem2reg_pass);
assert(mem2reg_pass->getNormalCtor());...