LLVM API Documentation

llvm::TargetFolder Class Reference

TargetFolder - Create constants with target dependent folding. More...

#include <TargetFolder.h>

Collaboration diagram for llvm::TargetFolder:
[legend]

List of all members.

Public Member Functions

 TargetFolder (const TargetData &TheTD)
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

TargetFolder - Create constants with target dependent folding.

Definition at line 28 of file TargetFolder.h.


Constructor & Destructor Documentation

llvm::TargetFolder::TargetFolder ( const TargetData &  TheTD  )  [inline]

Definition at line 40 of file TargetFolder.h.


Member Function Documentation

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

Definition at line 46 of file TargetFolder.h.

References llvm::ConstantExpr::getAdd().

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

Definition at line 49 of file TargetFolder.h.

References llvm::ConstantExpr::getSub().

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

Definition at line 52 of file TargetFolder.h.

References llvm::ConstantExpr::getMul().

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

Definition at line 55 of file TargetFolder.h.

References llvm::ConstantExpr::getUDiv().

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

Definition at line 58 of file TargetFolder.h.

References llvm::ConstantExpr::getSDiv().

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

Definition at line 61 of file TargetFolder.h.

References llvm::ConstantExpr::getFDiv().

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

Definition at line 64 of file TargetFolder.h.

References llvm::ConstantExpr::getURem().

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

Definition at line 67 of file TargetFolder.h.

References llvm::ConstantExpr::getSRem().

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

Definition at line 70 of file TargetFolder.h.

References llvm::ConstantExpr::getFRem().

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

Definition at line 73 of file TargetFolder.h.

References llvm::ConstantExpr::getShl().

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

Definition at line 76 of file TargetFolder.h.

References llvm::ConstantExpr::getLShr().

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

Definition at line 79 of file TargetFolder.h.

References llvm::ConstantExpr::getAShr().

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

Definition at line 82 of file TargetFolder.h.

References llvm::ConstantExpr::getAnd().

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

Definition at line 85 of file TargetFolder.h.

References llvm::ConstantExpr::getOr().

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

Definition at line 88 of file TargetFolder.h.

References llvm::ConstantExpr::getXor().

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

Definition at line 92 of file TargetFolder.h.

References llvm::ConstantExpr::get().

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

Definition at line 101 of file TargetFolder.h.

References llvm::ConstantExpr::getNeg().

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

Definition at line 104 of file TargetFolder.h.

References llvm::ConstantExpr::getNot().

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

Definition at line 112 of file TargetFolder.h.

References llvm::ConstantExpr::getGetElementPtr().

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

Definition at line 116 of file TargetFolder.h.

References llvm::ConstantExpr::getGetElementPtr().

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

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

Definition at line 131 of file TargetFolder.h.

References llvm::ConstantExpr::getIntegerCast(), and llvm::Value::getType().

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

Definition at line 138 of file TargetFolder.h.

References BitCast, and CreateCast().

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

Definition at line 141 of file TargetFolder.h.

References CreateCast().

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

Definition at line 144 of file TargetFolder.h.

References CreateCast(), and PtrToInt.

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

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

Definition at line 157 of file TargetFolder.h.

References llvm::ConstantExpr::getCompare().

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

Definition at line 161 of file TargetFolder.h.

References llvm::ConstantExpr::getCompare().

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

Definition at line 165 of file TargetFolder.h.

References llvm::ConstantExpr::getCompare().

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

Definition at line 169 of file TargetFolder.h.

References llvm::ConstantExpr::getCompare().

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

Definition at line 178 of file TargetFolder.h.

References llvm::ConstantExpr::getSelect().

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

Definition at line 182 of file TargetFolder.h.

References llvm::ConstantExpr::getExtractElement().

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

Definition at line 186 of file TargetFolder.h.

References llvm::ConstantExpr::getInsertElement().

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

Definition at line 191 of file TargetFolder.h.

References llvm::ConstantExpr::getShuffleVector().

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

Definition at line 196 of file TargetFolder.h.

References llvm::ConstantExpr::getExtractValue().

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

Definition at line 201 of file TargetFolder.h.

References llvm::ConstantExpr::getInsertValue().


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