LLVM API Documentation

Namespaces | Functions
Local.h File Reference
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/GetElementPtrTypeIterator.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/Operator.h"
Include dependency graph for Local.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  llvm
 

List of target independent CodeGen pass IDs.


Functions

bool llvm::ConstantFoldTerminator (BasicBlock *BB, bool DeleteDeadConditions=false, const TargetLibraryInfo *TLI=nullptr)
bool llvm::isInstructionTriviallyDead (Instruction *I, const TargetLibraryInfo *TLI=nullptr)
bool llvm::RecursivelyDeleteTriviallyDeadInstructions (Value *V, const TargetLibraryInfo *TLI=nullptr)
bool llvm::RecursivelyDeleteDeadPHINode (PHINode *PN, const TargetLibraryInfo *TLI=nullptr)
bool llvm::SimplifyInstructionsInBlock (BasicBlock *BB, const DataLayout *TD=nullptr, const TargetLibraryInfo *TLI=nullptr)
void llvm::RemovePredecessorAndSimplify (BasicBlock *BB, BasicBlock *Pred, DataLayout *TD=nullptr)
void llvm::MergeBasicBlockIntoOnlyPred (BasicBlock *BB, Pass *P=nullptr)
bool llvm::TryToSimplifyUncondBranchFromEmptyBlock (BasicBlock *BB)
bool llvm::EliminateDuplicatePHINodes (BasicBlock *BB)
bool llvm::SimplifyCFG (BasicBlock *BB, const TargetTransformInfo &TTI, const DataLayout *TD=nullptr)
bool llvm::FlattenCFG (BasicBlock *BB, AliasAnalysis *AA=nullptr)
bool llvm::FoldBranchToCommonDest (BranchInst *BI)
AllocaInstllvm::DemoteRegToStack (Instruction &X, bool VolatileLoads=false, Instruction *AllocaPoint=nullptr)
AllocaInstllvm::DemotePHIToStack (PHINode *P, Instruction *AllocaPoint=nullptr)
unsigned llvm::getOrEnforceKnownAlignment (Value *V, unsigned PrefAlign, const DataLayout *TD=nullptr)
static unsigned llvm::getKnownAlignment (Value *V, const DataLayout *TD=nullptr)
 getKnownAlignment - Try to infer an alignment for the specified pointer.
template<typename IRBuilderTy >
Value * llvm::EmitGEPOffset (IRBuilderTy *Builder, const DataLayout &TD, User *GEP, bool NoAssumptions=false)
bool llvm::ConvertDebugDeclareToDebugValue (DbgDeclareInst *DDI, StoreInst *SI, DIBuilder &Builder)
bool llvm::ConvertDebugDeclareToDebugValue (DbgDeclareInst *DDI, LoadInst *LI, DIBuilder &Builder)
bool llvm::LowerDbgDeclare (Function &F)
DbgDeclareInstllvm::FindAllocaDbgDeclare (Value *V)
bool llvm::replaceDbgDeclareForAlloca (AllocaInst *AI, Value *NewAllocaAddress, DIBuilder &Builder)
bool llvm::removeUnreachableBlocks (Function &F)
 Remove all blocks that can not be reached from the function's entry.