ΒΆstd::pair<unsigned int, unsigned int>
removeAllNonTerminatorAndEHPadInstructions(
    llvm::BasicBlock* BB)

Description

Remove all instructions from a basic block other than its terminator and any present EH pad instructions. Returns a pair where the first element is the number of instructions (excluding debug info intrinsics) that have been removed, and the second element is the number of debug info intrinsics that have been removed.

Declared at: llvm/include/llvm/Transforms/Utils/Local.h:342

Parameters

llvm::BasicBlock* BB