LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Transforms/Utils/Local.cpp File Reference

#include "llvm/Support/MathExtras.h"
#include "llvm/Transforms/Utils/Local.h"
#include "llvm/Constants.h"
#include "llvm/Instructions.h"
#include "llvm/Intrinsics.h"
#include <cerrno>
#include <cmath>

Include dependency graph for Transforms/Utils/Local.cpp:

Go to the source code of this file.

Functions

bool llvm::doConstantPropagation (BasicBlock::iterator &II)
Constant * llvm::ConstantFoldInstruction (Instruction *I)
bool llvm::ConstantFoldTerminator (BasicBlock *BB)
bool llvm::canConstantFoldCallTo (Function *F)
static Constant * ConstantFoldFP (double(*NativeFP)(double), double V, const Type *Ty)
Constant * llvm::ConstantFoldCall (Function *F, const std::vector< Constant * > &Operands)
bool llvm::isInstructionTriviallyDead (Instruction *I)
bool llvm::dceInstruction (BasicBlock::iterator &BBI)
Value * llvm::hasConstantValue (PHINode *PN)


Function Documentation

static Constant* ConstantFoldFP (  double(*)(double)  NativeFP,
double  V,
const Type *  Ty
)  [static]
 

Definition at line 250 of file Transforms/Utils/Local.cpp.

References llvm::ConstantFP::get().

Referenced by llvm::ConstantFoldCall().