Displaying 2 results from an estimated 2 matches for "predmbb".
Did you mean:
predbb
2010 Apr 14
3
[LLVMdev] indirect jumps
Hi,
What kind of C/C++ high level code can generate a computed jump, such as:
jmpq *%r14
or
jmpq *(%r14,%rbx,8)
?
I imagine that any calls (including virtual) would use something like 'call *%r14',
and the above jumps are mostly from 'switch' statements.
Is this correct?
Anything else?
Thank you,
Dan
2010 Apr 15
1
[LLVMdev] Question About Cloning Machine Basic Block
...one all the instrs from I --> copy
Copy all the successor of ‘I’ to ‘copy’ as well
If ‘I’ has 2 predecessors, then update the succ list of the second pred to point to ‘copy’ and insert ‘copy’ after the second pred (‘I’ physically resides after the first pred):
MachineFunction::iterator It = (predMBB+1);
MF.insert(It,copy);
predMBB->addSuccessor(copy);
predMBB->removeSuccessor(I)
MF.RenumberBlocks();
Am I missing anything here?
Please note: I am doing this step as a pass just before the asm printer pass in the target machine layer after all the instructions has been generated, regis...