LLVM API Documentation

ValueTracking.cpp File Reference

#include "llvm/Analysis/ValueTracking.h"
#include "llvm/Constants.h"
#include "llvm/Instructions.h"
#include "llvm/GlobalVariable.h"
#include "llvm/IntrinsicInst.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Support/GetElementPtrTypeIterator.h"
#include "llvm/Support/MathExtras.h"
#include <cstring>

Include dependency graph for ValueTracking.cpp:

Go to the source code of this file.

Functions

static unsigned getOpcode (const Value *V)
void llvm::ComputeMaskedBits (Value *V, const APInt &Mask, APInt &KnownZero, APInt &KnownOne, TargetData *TD=0, unsigned Depth=0)
bool llvm::MaskedValueIsZero (Value *V, const APInt &Mask, TargetData *TD=0, unsigned Depth=0)
unsigned llvm::ComputeNumSignBits (Value *Op, TargetData *TD=0, unsigned Depth=0)
bool llvm::CannotBeNegativeZero (const Value *V, unsigned Depth=0)
Value * BuildSubAggregate (Value *From, Value *To, const Type *IndexedType, SmallVector< unsigned, 10 > &Idxs, unsigned IdxSkip, Instruction *InsertBefore)
Value * BuildSubAggregate (Value *From, const unsigned *idx_begin, const unsigned *idx_end, Instruction *InsertBefore)
Value * llvm::FindInsertedValue (Value *V, const unsigned *idx_begin, const unsigned *idx_end, Instruction *InsertBefore=0)
bool llvm::GetConstantStringInfo (Value *V, std::string &Str, uint64_t Offset=0, bool StopAtNul=true)


Function Documentation

Value* BuildSubAggregate ( Value *  From,
const unsigned *  idx_begin,
const unsigned *  idx_end,
Instruction *  InsertBefore 
)

Value* BuildSubAggregate ( Value *  From,
Value *  To,
const Type *  IndexedType,
SmallVector< unsigned, 10 > &  Idxs,
unsigned  IdxSkip,
Instruction *  InsertBefore 
)

static unsigned getOpcode ( const Value *  V  )  [static]