Hoist all instructions from a block into a dominating insertion point.
Synopsis
Declared in <llvm/Transforms/Utils/Local.h>
void
hoistAllInstructionsInto(
BasicBlock* DomBlock,
Instruction* InsertPt,
BasicBlock* BB);
Description
Hoist all of the instructions in the IfBlock to the dominant block DomBlock, by moving its instructions to the insertion point InsertPt.
The moved instructions receive the insertion point debug location values (DILocations) and their debug intrinsic instructions are removed.
Parameters
Name |
Description |
DomBlock |
Dominating block that receives the hoisted instructions. |
InsertPt |
Insertion point within |
BB |
Block whose instructions are hoisted. |
Created with MrDocs