LLVM API Documentation

llvm::ConstantFolder Class Reference

ConstantFolder - Create constants with minimum, target independent, folding. More...

#include <ConstantFolder.h>

List of all members.

Public Member Functions

Constant * CreateAdd (Constant *LHS, Constant *RHS) const
Constant * CreateSub (Constant *LHS, Constant *RHS) const
Constant * CreateMul (Constant *LHS, Constant *RHS) const
Constant * CreateUDiv (Constant *LHS, Constant *RHS) const
Constant * CreateSDiv (Constant *LHS, Constant *RHS) const
Constant * CreateFDiv (Constant *LHS, Constant *RHS) const
Constant * CreateURem (Constant *LHS, Constant *RHS) const
Constant * CreateSRem (Constant *LHS, Constant *RHS) const
Constant * CreateFRem (Constant *LHS, Constant *RHS) const
Constant * CreateShl (Constant *LHS, Constant *RHS) const
Constant * CreateLShr (Constant *LHS, Constant *RHS) const
Constant * CreateAShr (Constant *LHS, Constant *RHS) const
Constant * CreateAnd (Constant *LHS, Constant *RHS) const
Constant * CreateOr (Constant *LHS, Constant *RHS) const
Constant * CreateXor (Constant *LHS, Constant *RHS) const
Constant * CreateBinOp (Instruction::BinaryOps Opc, Constant *LHS, Constant *RHS) const
Constant * CreateNeg (Constant *C) const
Constant * CreateNot (Constant *C) const
Constant * CreateGetElementPtr (Constant *C, Constant *const *IdxList, unsigned NumIdx) const
Constant * CreateGetElementPtr (Constant *C, Value *const *IdxList, unsigned NumIdx) const
Constant * CreateCast (Instruction::CastOps Op, Constant *C, const Type *DestTy) const
Constant * CreateIntCast (Constant *C, const Type *DestTy, bool isSigned) const
Constant * CreateBitCast (Constant *C, const Type *DestTy) const
Constant * CreateIntToPtr (Constant *C, const Type *DestTy) const
Constant * CreatePtrToInt (Constant *C, const Type *DestTy) const
Constant * CreateTruncOrBitCast (Constant *C, const Type *DestTy) const
Constant * CreateICmp (CmpInst::Predicate P, Constant *LHS, Constant *RHS) const
Constant * CreateFCmp (CmpInst::Predicate P, Constant *LHS, Constant *RHS) const
Constant * CreateVICmp (CmpInst::Predicate P, Constant *LHS, Constant *RHS) const
Constant * CreateVFCmp (CmpInst::Predicate P, Constant *LHS, Constant *RHS) const
Constant * CreateSelect (Constant *C, Constant *True, Constant *False) const
Constant * CreateExtractElement (Constant *Vec, Constant *Idx) const
Constant * CreateInsertElement (Constant *Vec, Constant *NewElt, Constant *Idx) const
Constant * CreateShuffleVector (Constant *V1, Constant *V2, Constant *Mask) const
Constant * CreateExtractValue (Constant *Agg, const unsigned *IdxList, unsigned NumIdx) const
Constant * CreateInsertValue (Constant *Agg, Constant *Val, const unsigned *IdxList, unsigned NumIdx) const


Detailed Description

ConstantFolder - Create constants with minimum, target independent, folding.

Definition at line 25 of file ConstantFolder.h.


Member Function Documentation

Constant* llvm::ConstantFolder::CreateAdd ( Constant *  LHS,
Constant *  RHS 
) const [inline]

Definition at line 32 of file ConstantFolder.h.

References llvm::ConstantExpr::getAdd().

Constant* llvm::ConstantFolder::CreateSub ( Constant *  LHS,
Constant *  RHS 
) const [inline]

Definition at line 35 of file ConstantFolder.h.

References llvm::ConstantExpr::getSub().

Constant* llvm::ConstantFolder::CreateMul ( Constant *  LHS,
Constant *  RHS 
) const [inline]

Definition at line 38 of file ConstantFolder.h.

References llvm::ConstantExpr::getMul().

Constant* llvm::ConstantFolder::CreateUDiv ( Constant *  LHS,
Constant *  RHS 
) const [inline]

Definition at line 41 of file ConstantFolder.h.

References llvm::ConstantExpr::getUDiv().

Constant* llvm::ConstantFolder::CreateSDiv ( Constant *  LHS,
Constant *  RHS 
) const [inline]

Definition at line 44 of file ConstantFolder.h.

References llvm::ConstantExpr::getSDiv().

Constant* llvm::ConstantFolder::CreateFDiv ( Constant *  LHS,
Constant *  RHS 
) const [inline]

Definition at line 47 of file ConstantFolder.h.

References llvm::ConstantExpr::getFDiv().

Constant* llvm::ConstantFolder::CreateURem ( Constant *  LHS,
Constant *  RHS 
) const [inline]

Definition at line 50 of file ConstantFolder.h.

References llvm::ConstantExpr::getURem().

Constant* llvm::ConstantFolder::CreateSRem ( Constant *  LHS,
Constant *  RHS 
) const [inline]

Definition at line 53 of file ConstantFolder.h.

References llvm::ConstantExpr::getSRem().

Constant* llvm::ConstantFolder::CreateFRem ( Constant *  LHS,
Constant *  RHS 
) const [inline]

Definition at line 56 of file ConstantFolder.h.

References llvm::ConstantExpr::getFRem().

Constant* llvm::ConstantFolder::CreateShl ( Constant *  LHS,
Constant *  RHS 
) const [inline]

Definition at line 59 of file ConstantFolder.h.

References llvm::ConstantExpr::getShl().

Constant* llvm::ConstantFolder::CreateLShr ( Constant *  LHS,
Constant *  RHS 
) const [inline]

Definition at line 62 of file ConstantFolder.h.

References llvm::ConstantExpr::getLShr().

Constant* llvm::ConstantFolder::CreateAShr ( Constant *  LHS,
Constant *  RHS 
) const [inline]

Definition at line 65 of file ConstantFolder.h.

References llvm::ConstantExpr::getAShr().

Constant* llvm::ConstantFolder::CreateAnd ( Constant *  LHS,
Constant *  RHS 
) const [inline]

Definition at line 68 of file ConstantFolder.h.

References llvm::ConstantExpr::getAnd().

Constant* llvm::ConstantFolder::CreateOr ( Constant *  LHS,
Constant *  RHS 
) const [inline]

Definition at line 71 of file ConstantFolder.h.

References llvm::ConstantExpr::getOr().

Constant* llvm::ConstantFolder::CreateXor ( Constant *  LHS,
Constant *  RHS 
) const [inline]

Definition at line 74 of file ConstantFolder.h.

References llvm::ConstantExpr::getXor().

Constant* llvm::ConstantFolder::CreateBinOp ( Instruction::BinaryOps  Opc,
Constant *  LHS,
Constant *  RHS 
) const [inline]

Definition at line 78 of file ConstantFolder.h.

References llvm::ConstantExpr::get().

Constant* llvm::ConstantFolder::CreateNeg ( Constant *  C  )  const [inline]

Definition at line 87 of file ConstantFolder.h.

References llvm::ConstantExpr::getNeg().

Constant* llvm::ConstantFolder::CreateNot ( Constant *  C  )  const [inline]

Definition at line 90 of file ConstantFolder.h.

References llvm::ConstantExpr::getNot().

Constant* llvm::ConstantFolder::CreateGetElementPtr ( Constant *  C,
Constant *const *  IdxList,
unsigned  NumIdx 
) const [inline]

Definition at line 98 of file ConstantFolder.h.

References llvm::ConstantExpr::getGetElementPtr().

Constant* llvm::ConstantFolder::CreateGetElementPtr ( Constant *  C,
Value *const *  IdxList,
unsigned  NumIdx 
) const [inline]

Definition at line 102 of file ConstantFolder.h.

References llvm::ConstantExpr::getGetElementPtr().

Constant* llvm::ConstantFolder::CreateCast ( Instruction::CastOps  Op,
Constant *  C,
const Type *  DestTy 
) const [inline]

Definition at line 111 of file ConstantFolder.h.

References llvm::ConstantExpr::getCast().

Referenced by CreateBitCast(), CreateIntToPtr(), and CreatePtrToInt().

Constant* llvm::ConstantFolder::CreateIntCast ( Constant *  C,
const Type *  DestTy,
bool  isSigned 
) const [inline]

Definition at line 115 of file ConstantFolder.h.

References llvm::ConstantExpr::getIntegerCast().

Constant* llvm::ConstantFolder::CreateBitCast ( Constant *  C,
const Type *  DestTy 
) const [inline]

Definition at line 120 of file ConstantFolder.h.

References BitCast, and CreateCast().

Constant* llvm::ConstantFolder::CreateIntToPtr ( Constant *  C,
const Type *  DestTy 
) const [inline]

Definition at line 123 of file ConstantFolder.h.

References CreateCast().

Constant* llvm::ConstantFolder::CreatePtrToInt ( Constant *  C,
const Type *  DestTy 
) const [inline]

Definition at line 126 of file ConstantFolder.h.

References CreateCast(), and PtrToInt.

Constant* llvm::ConstantFolder::CreateTruncOrBitCast ( Constant *  C,
const Type *  DestTy 
) const [inline]

Definition at line 129 of file ConstantFolder.h.

References llvm::ConstantExpr::getTruncOrBitCast().

Constant* llvm::ConstantFolder::CreateICmp ( CmpInst::Predicate  P,
Constant *  LHS,
Constant *  RHS 
) const [inline]

Definition at line 137 of file ConstantFolder.h.

References llvm::ConstantExpr::getCompare().

Constant* llvm::ConstantFolder::CreateFCmp ( CmpInst::Predicate  P,
Constant *  LHS,
Constant *  RHS 
) const [inline]

Definition at line 141 of file ConstantFolder.h.

References llvm::ConstantExpr::getCompare().

Constant* llvm::ConstantFolder::CreateVICmp ( CmpInst::Predicate  P,
Constant *  LHS,
Constant *  RHS 
) const [inline]

Definition at line 145 of file ConstantFolder.h.

References llvm::ConstantExpr::getCompare().

Constant* llvm::ConstantFolder::CreateVFCmp ( CmpInst::Predicate  P,
Constant *  LHS,
Constant *  RHS 
) const [inline]

Definition at line 149 of file ConstantFolder.h.

References llvm::ConstantExpr::getCompare().

Constant* llvm::ConstantFolder::CreateSelect ( Constant *  C,
Constant *  True,
Constant *  False 
) const [inline]

Definition at line 158 of file ConstantFolder.h.

References llvm::ConstantExpr::getSelect().

Constant* llvm::ConstantFolder::CreateExtractElement ( Constant *  Vec,
Constant *  Idx 
) const [inline]

Definition at line 162 of file ConstantFolder.h.

References llvm::ConstantExpr::getExtractElement().

Constant* llvm::ConstantFolder::CreateInsertElement ( Constant *  Vec,
Constant *  NewElt,
Constant *  Idx 
) const [inline]

Definition at line 166 of file ConstantFolder.h.

References llvm::ConstantExpr::getInsertElement().

Constant* llvm::ConstantFolder::CreateShuffleVector ( Constant *  V1,
Constant *  V2,
Constant *  Mask 
) const [inline]

Definition at line 171 of file ConstantFolder.h.

References llvm::ConstantExpr::getShuffleVector().

Constant* llvm::ConstantFolder::CreateExtractValue ( Constant *  Agg,
const unsigned *  IdxList,
unsigned  NumIdx 
) const [inline]

Definition at line 176 of file ConstantFolder.h.

References llvm::ConstantExpr::getExtractValue().

Constant* llvm::ConstantFolder::CreateInsertValue ( Constant *  Agg,
Constant *  Val,
const unsigned *  IdxList,
unsigned  NumIdx 
) const [inline]

Definition at line 181 of file ConstantFolder.h.

References llvm::ConstantExpr::getInsertValue().


The documentation for this class was generated from the following file: