|
LLVM
8.0.1
|
#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/MachineInstrBuilder.h"#include "llvm/CodeGen/MachineLoopInfo.h"#include "llvm/CodeGen/MachineModuleInfo.h"#include "llvm/CodeGen/MachineRegisterInfo.h"#include "llvm/CodeGen/Passes.h"#include "llvm/CodeGen/TargetInstrInfo.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"
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 43 of file UnreachableBlockElim.cpp.
References llvm::AnalysisUsage::addPreserved(), llvm::BasicBlock::begin(), llvm::Function::begin(), llvm::SmallPtrSetImpl< NodeRef >::count(), llvm::depth_first_ext(), llvm::BasicBlock::dropAllReferences(), E, llvm::Function::end(), F(), llvm::BasicBlock::getInstList(), llvm::Constant::getNullValue(), llvm::PassRegistry::getPassRegistry(), I, llvm::initializeUnreachableBlockElimLegacyPassPass(), llvm::iplist_impl< IntrusiveListT, TraitsT >::pop_front(), runOnFunction(), 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 93 of file UnreachableBlockElim.cpp.
Referenced by llvm::UnreachableBlockElimPass::run().
1.8.13