Insert unreachable before an instruction and make the rest of the block dead.
Synopsis
Declared in <llvm/Transforms/Utils/Local.h>
unsigned int
changeToUnreachable(
Instruction* I,
bool PreserveLCSSA = false,
DomTreeUpdater* DTU = nullptr,
MemorySSAUpdater* MSSAU = nullptr);
Return Value
Number of instructions made unreachable or removed.
Parameters
Name |
Description |
I |
Instruction before which unreachable is inserted. |
PreserveLCSSA |
Whether to preserve LCSSA form while rewriting. |
DTU |
Optional dominator‐tree updater for CFG changes. |
MSSAU |
Optional MemorySSA updater for deleted instructions. |
Created with MrDocs