search for: currentend

Displaying 2 results from an estimated 2 matches for "currentend".

Did you mean: current_id
2003 Nov 20
0
[LLVMdev] Basic Block Chaining
...to implement in a generally useful way. Besides that, you can always do something like this to add a new basic block, assuming the last basic block in the function is unterminated: --- // Get the last basic block in the function, presumably you already have // this cached somewhere. BasicBlock *CurrentEnd = &F->back(); // Create the new basic block, adding the Function parameter causes it to // be automatically inserted at the end of the function. BasicBlock *New = new BasicBlock("label", F); // Create a new branch instruction, jumping to the 'New' block. Specify // where...
2003 Nov 20
3
[LLVMdev] Basic Block Chaining
Newbie Question .. (sorry if its redundant/silly) .. As I've started to develop Stacker, I had assumed that simply adding BasicBlocks to a function in sequence would imply that there is an implicit unconditional branch from the end of one basic block to the start of the next block. Based on the assertion checks that I get when I tried this, I assume that it is required to place a terminating