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)
ValueBuildSubAggregate (Value *From, Value *To, const Type *IndexedType, SmallVector< unsigned, 10 > &Idxs, unsigned IdxSkip, Instruction *InsertBefore)
ValueBuildSubAggregate (Value *From, const unsigned *idx_begin, const unsigned *idx_end, Instruction *InsertBefore)
Valuellvm::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]

getOpcode - If this is an Instruction or a ConstantExpr, return the opcode value. Otherwise return UserOp1.

Definition at line 28 of file ValueTracking.cpp.

References I, and UserOp1.

Referenced by llvm::ComputeMaskedBits(), llvm::ComputeNumSignBits(), EnforceKnownAlignment(), llvm::SelectInst::getOpcode(), isGEP(), IsPossiblyOverwrittenArgumentOfTailCall(), isReassociableOp(), IsUserOfGlobalSafeForSRA(), LowerVECTOR_SHUFFLE_4wide(), SpeculativelyExecuteBB(), and SRAGlobal().




This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.