LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
llvm::TargetFolder Class Reference

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

#include <TargetFolder.h>

Public Member Functions

 TargetFolder (const DataLayout *TheTD)
 
ConstantCreateAdd (Constant *LHS, Constant *RHS, bool HasNUW=false, bool HasNSW=false) const
 
ConstantCreateFAdd (Constant *LHS, Constant *RHS) const
 
ConstantCreateSub (Constant *LHS, Constant *RHS, bool HasNUW=false, bool HasNSW=false) const
 
ConstantCreateFSub (Constant *LHS, Constant *RHS) const
 
ConstantCreateMul (Constant *LHS, Constant *RHS, bool HasNUW=false, bool HasNSW=false) const
 
ConstantCreateFMul (Constant *LHS, Constant *RHS) const
 
ConstantCreateUDiv (Constant *LHS, Constant *RHS, bool isExact=false) const
 
ConstantCreateSDiv (Constant *LHS, Constant *RHS, bool isExact=false) const
 
ConstantCreateFDiv (Constant *LHS, Constant *RHS) const
 
ConstantCreateURem (Constant *LHS, Constant *RHS) const
 
ConstantCreateSRem (Constant *LHS, Constant *RHS) const
 
ConstantCreateFRem (Constant *LHS, Constant *RHS) const
 
ConstantCreateShl (Constant *LHS, Constant *RHS, bool HasNUW=false, bool HasNSW=false) const
 
ConstantCreateLShr (Constant *LHS, Constant *RHS, bool isExact=false) const
 
ConstantCreateAShr (Constant *LHS, Constant *RHS, bool isExact=false) const
 
ConstantCreateAnd (Constant *LHS, Constant *RHS) const
 
ConstantCreateOr (Constant *LHS, Constant *RHS) const
 
ConstantCreateXor (Constant *LHS, Constant *RHS) const
 
ConstantCreateBinOp (Instruction::BinaryOps Opc, Constant *LHS, Constant *RHS) const
 
ConstantCreateNeg (Constant *C, bool HasNUW=false, bool HasNSW=false) const
 
ConstantCreateFNeg (Constant *C) const
 
ConstantCreateNot (Constant *C) const
 
ConstantCreateGetElementPtr (Constant *C, ArrayRef< Constant * > IdxList) const
 
ConstantCreateGetElementPtr (Constant *C, Constant *Idx) const
 
ConstantCreateGetElementPtr (Constant *C, ArrayRef< Value * > IdxList) const
 
ConstantCreateInBoundsGetElementPtr (Constant *C, ArrayRef< Constant * > IdxList) const
 
ConstantCreateInBoundsGetElementPtr (Constant *C, Constant *Idx) const
 
ConstantCreateInBoundsGetElementPtr (Constant *C, ArrayRef< Value * > IdxList) const
 
ConstantCreateCast (Instruction::CastOps Op, Constant *C, Type *DestTy) const
 
ConstantCreateIntCast (Constant *C, Type *DestTy, bool isSigned) const
 
ConstantCreatePointerCast (Constant *C, Type *DestTy) const
 
ConstantCreateFPCast (Constant *C, Type *DestTy) const
 
ConstantCreateBitCast (Constant *C, Type *DestTy) const
 
ConstantCreateIntToPtr (Constant *C, Type *DestTy) const
 
ConstantCreatePtrToInt (Constant *C, Type *DestTy) const
 
ConstantCreateZExtOrBitCast (Constant *C, Type *DestTy) const
 
ConstantCreateSExtOrBitCast (Constant *C, Type *DestTy) const
 
ConstantCreateTruncOrBitCast (Constant *C, Type *DestTy) const
 
ConstantCreateICmp (CmpInst::Predicate P, Constant *LHS, Constant *RHS) const
 
ConstantCreateFCmp (CmpInst::Predicate P, Constant *LHS, Constant *RHS) const
 
ConstantCreateSelect (Constant *C, Constant *True, Constant *False) const
 
ConstantCreateExtractElement (Constant *Vec, Constant *Idx) const
 
ConstantCreateInsertElement (Constant *Vec, Constant *NewElt, Constant *Idx) const
 
ConstantCreateShuffleVector (Constant *V1, Constant *V2, Constant *Mask) const
 
ConstantCreateExtractValue (Constant *Agg, ArrayRef< unsigned > IdxList) const
 
ConstantCreateInsertValue (Constant *Agg, Constant *Val, ArrayRef< unsigned > IdxList) const
 

Detailed Description

TargetFolder - Create constants with target dependent folding.

Definition at line 32 of file TargetFolder.h.

Constructor & Destructor Documentation

llvm::TargetFolder::TargetFolder ( const DataLayout TheTD)
inlineexplicit

Definition at line 44 of file TargetFolder.h.

Member Function Documentation

Constant* llvm::TargetFolder::CreateAdd ( Constant LHS,
Constant RHS,
bool  HasNUW = false,
bool  HasNSW = false 
) const
inline

Definition at line 50 of file TargetFolder.h.

References llvm::ConstantExpr::getAdd().

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

Definition at line 99 of file TargetFolder.h.

References llvm::ConstantExpr::getAnd().

Constant* llvm::TargetFolder::CreateAShr ( Constant LHS,
Constant RHS,
bool  isExact = false 
) const
inline

Definition at line 96 of file TargetFolder.h.

References llvm::ConstantExpr::getAShr().

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

Definition at line 109 of file TargetFolder.h.

References llvm::ConstantExpr::get().

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

Definition at line 189 of file TargetFolder.h.

References CreateCast().

Constant* llvm::TargetFolder::CreateCast ( Instruction::CastOps  Op,
Constant C,
Type DestTy 
) const
inline
Constant* llvm::TargetFolder::CreateExtractElement ( Constant Vec,
Constant Idx 
) const
inline

Definition at line 235 of file TargetFolder.h.

References llvm::ConstantExpr::getExtractElement().

Constant* llvm::TargetFolder::CreateExtractValue ( Constant Agg,
ArrayRef< unsigned IdxList 
) const
inline

Definition at line 249 of file TargetFolder.h.

References llvm::ConstantExpr::getExtractValue().

Constant* llvm::TargetFolder::CreateFAdd ( Constant LHS,
Constant RHS 
) const
inline

Definition at line 54 of file TargetFolder.h.

References llvm::ConstantExpr::getFAdd().

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

Definition at line 222 of file TargetFolder.h.

References llvm::ConstantExpr::getCompare().

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

Definition at line 77 of file TargetFolder.h.

References llvm::ConstantExpr::getFDiv().

Constant* llvm::TargetFolder::CreateFMul ( Constant LHS,
Constant RHS 
) const
inline

Definition at line 68 of file TargetFolder.h.

References llvm::ConstantExpr::getFMul().

Constant* llvm::TargetFolder::CreateFNeg ( Constant C) const
inline

Definition at line 122 of file TargetFolder.h.

References llvm::ConstantExpr::getFNeg().

Constant* llvm::TargetFolder::CreateFPCast ( Constant C,
Type DestTy 
) const
inline

Definition at line 184 of file TargetFolder.h.

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

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

Definition at line 86 of file TargetFolder.h.

References llvm::ConstantExpr::getFRem().

Constant* llvm::TargetFolder::CreateFSub ( Constant LHS,
Constant RHS 
) const
inline

Definition at line 61 of file TargetFolder.h.

References llvm::ConstantExpr::getFSub().

Constant* llvm::TargetFolder::CreateGetElementPtr ( Constant C,
ArrayRef< Constant * >  IdxList 
) const
inline

Definition at line 133 of file TargetFolder.h.

References llvm::ConstantExpr::getGetElementPtr().

Constant* llvm::TargetFolder::CreateGetElementPtr ( Constant C,
Constant Idx 
) const
inline

Definition at line 137 of file TargetFolder.h.

References llvm::ConstantExpr::getGetElementPtr().

Constant* llvm::TargetFolder::CreateGetElementPtr ( Constant C,
ArrayRef< Value * >  IdxList 
) const
inline

Definition at line 143 of file TargetFolder.h.

References llvm::ConstantExpr::getGetElementPtr().

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

Definition at line 218 of file TargetFolder.h.

References llvm::ConstantExpr::getCompare().

Constant* llvm::TargetFolder::CreateInBoundsGetElementPtr ( Constant C,
ArrayRef< Constant * >  IdxList 
) const
inline

Definition at line 148 of file TargetFolder.h.

References llvm::ConstantExpr::getInBoundsGetElementPtr().

Constant* llvm::TargetFolder::CreateInBoundsGetElementPtr ( Constant C,
Constant Idx 
) const
inline

Definition at line 152 of file TargetFolder.h.

References llvm::ConstantExpr::getInBoundsGetElementPtr().

Constant* llvm::TargetFolder::CreateInBoundsGetElementPtr ( Constant C,
ArrayRef< Value * >  IdxList 
) const
inline

Definition at line 158 of file TargetFolder.h.

References llvm::ConstantExpr::getInBoundsGetElementPtr().

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

Definition at line 239 of file TargetFolder.h.

References llvm::ConstantExpr::getInsertElement().

Constant* llvm::TargetFolder::CreateInsertValue ( Constant Agg,
Constant Val,
ArrayRef< unsigned IdxList 
) const
inline

Definition at line 254 of file TargetFolder.h.

References llvm::ConstantExpr::getInsertValue().

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

Definition at line 173 of file TargetFolder.h.

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

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

Definition at line 192 of file TargetFolder.h.

References CreateCast().

Constant* llvm::TargetFolder::CreateLShr ( Constant LHS,
Constant RHS,
bool  isExact = false 
) const
inline

Definition at line 93 of file TargetFolder.h.

References llvm::ConstantExpr::getLShr().

Constant* llvm::TargetFolder::CreateMul ( Constant LHS,
Constant RHS,
bool  HasNUW = false,
bool  HasNSW = false 
) const
inline

Definition at line 64 of file TargetFolder.h.

References llvm::ConstantExpr::getMul().

Constant* llvm::TargetFolder::CreateNeg ( Constant C,
bool  HasNUW = false,
bool  HasNSW = false 
) const
inline

Definition at line 118 of file TargetFolder.h.

References llvm::ConstantExpr::getNeg().

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

Definition at line 125 of file TargetFolder.h.

References llvm::ConstantExpr::getNot().

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

Definition at line 102 of file TargetFolder.h.

References llvm::ConstantExpr::getOr().

Constant* llvm::TargetFolder::CreatePointerCast ( Constant C,
Type DestTy 
) const
inline

Definition at line 179 of file TargetFolder.h.

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

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

Definition at line 195 of file TargetFolder.h.

References CreateCast().

Constant* llvm::TargetFolder::CreateSDiv ( Constant LHS,
Constant RHS,
bool  isExact = false 
) const
inline

Definition at line 74 of file TargetFolder.h.

References llvm::ConstantExpr::getSDiv().

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

Definition at line 231 of file TargetFolder.h.

References llvm::ConstantExpr::getSelect().

Constant* llvm::TargetFolder::CreateSExtOrBitCast ( Constant C,
Type DestTy 
) const
inline
Constant* llvm::TargetFolder::CreateShl ( Constant LHS,
Constant RHS,
bool  HasNUW = false,
bool  HasNSW = false 
) const
inline

Definition at line 89 of file TargetFolder.h.

References llvm::ConstantExpr::getShl().

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

Definition at line 244 of file TargetFolder.h.

References llvm::ConstantExpr::getShuffleVector().

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

Definition at line 83 of file TargetFolder.h.

References llvm::ConstantExpr::getSRem().

Constant* llvm::TargetFolder::CreateSub ( Constant LHS,
Constant RHS,
bool  HasNUW = false,
bool  HasNSW = false 
) const
inline

Definition at line 57 of file TargetFolder.h.

References llvm::ConstantExpr::getSub().

Constant* llvm::TargetFolder::CreateTruncOrBitCast ( Constant C,
Type DestTy 
) const
inline
Constant* llvm::TargetFolder::CreateUDiv ( Constant LHS,
Constant RHS,
bool  isExact = false 
) const
inline

Definition at line 71 of file TargetFolder.h.

References llvm::ConstantExpr::getUDiv().

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

Definition at line 80 of file TargetFolder.h.

References llvm::ConstantExpr::getURem().

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

Definition at line 105 of file TargetFolder.h.

References llvm::ConstantExpr::getXor().

Constant* llvm::TargetFolder::CreateZExtOrBitCast ( Constant C,
Type DestTy 
) const
inline

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