search for: createpromotememorytoregister

Displaying 3 results from an estimated 3 matches for "createpromotememorytoregister".

2004 Nov 26
2
[LLVMdev] Running specific passes
...o I must use PassManager. Here's the code I ended up with: bool runOnFunction(llvm::Function& m) { visit(m); ExistingModuleProvider mp(m.getParent()); FunctionPassManager pm(&mp); ..... //m.add(createPromoteMemoryToRegister()); pm.run(m); There are several problems, though: 1. This looks inefficient -- the analyses necessary for Mem2Reg will be run again, even if they are already run by the global pass manager. But how to ask the global pass manager to run a pass immediately? 2. This does not work. Ex...
2003 Aug 13
1
[LLVMdev] Running a pass
Hi, I assume that since each pass is in its own anonymous namespace, we cannot directly create a new pass object; looking at the code for 'opt' utility, it seems we need a PassInfo object, using which we create a new pass object. I tried 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
2004 Nov 26
0
[LLVMdev] Running specific passes
...ere's the code I ended up with: > > bool runOnFunction(llvm::Function& m) > { > visit(m); > > ExistingModuleProvider mp(m.getParent()); > FunctionPassManager pm(&mp); > ..... > //m.add(createPromoteMemoryToRegister()); > pm.run(m); > > There are several problems, though: > > 1. This looks inefficient -- the analyses necessary for Mem2Reg will be run > again, even if they are already run by the global pass manager. But how to > ask the global pass manager to run a pass immediat...