|
LLVM
4.0.0
|
#include "llvm/CodeGen/UnreachableBlockElim.h"#include "llvm/ADT/DepthFirstIterator.h"#include "llvm/ADT/SmallPtrSet.h"#include "llvm/CodeGen/MachineDominators.h"#include "llvm/CodeGen/MachineFunctionPass.h"#include "llvm/CodeGen/MachineLoopInfo.h"#include "llvm/CodeGen/MachineModuleInfo.h"#include "llvm/CodeGen/MachineRegisterInfo.h"#include "llvm/CodeGen/Passes.h"#include "llvm/IR/CFG.h"#include "llvm/IR/Constant.h"#include "llvm/IR/Dominators.h"#include "llvm/IR/Function.h"#include "llvm/IR/Instructions.h"#include "llvm/IR/Type.h"#include "llvm/Pass.h"#include "llvm/Target/TargetInstrInfo.h"Go to the source code of this file.
Functions | |
| static bool | eliminateUnreachableBlock (Function &F) |
| INITIALIZE_PASS (UnreachableBlockElimLegacyPass,"unreachableblockelim","Remove unreachable blocks from the CFG", false, false) FunctionPass *llvm | |
Definition at line 42 of file UnreachableBlockElim.cpp.
References llvm::BasicBlock::begin(), llvm::Function::begin(), llvm::SmallPtrSetImpl< PtrType >::count(), llvm::depth_first_ext(), llvm::BasicBlock::dropAllReferences(), E, llvm::Function::end(), llvm::BasicBlock::getInstList(), llvm::Constant::getNullValue(), I, i, llvm::iplist_impl< IntrusiveListT, TraitsT >::pop_front(), SI, llvm::succ_begin(), and llvm::succ_end().
Referenced by llvm::UnreachableBlockElimPass::run().
| INITIALIZE_PASS | ( | UnreachableBlockElimLegacyPass | , |
| "unreachableblockelim" | , | ||
| "Remove unreachable blocks from the CFG" | , | ||
| false | , | ||
| false | |||
| ) |
Definition at line 92 of file UnreachableBlockElim.cpp.
1.8.6