LLVM API Documentation
TargetFolder - Create constants with target dependent folding. More...
#include <TargetFolder.h>
TargetFolder - Create constants with target dependent folding.
Definition at line 32 of file TargetFolder.h.
llvm::TargetFolder::TargetFolder | ( | const DataLayout * | DL | ) | [inline, explicit] |
Definition at line 44 of file TargetFolder.h.
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] |
Definition at line 167 of file TargetFolder.h.
References llvm::ConstantExpr::getCast(), and llvm::Value::getType().
Referenced by CreateBitCast(), CreateIntToPtr(), and CreatePtrToInt().
Constant* llvm::TargetFolder::CreateExtractElement | ( | Constant * | Vec, |
Constant * | Idx | ||
) | const [inline] |
Definition at line 242 of file TargetFolder.h.
References llvm::ConstantExpr::getExtractElement().
Constant* llvm::TargetFolder::CreateExtractValue | ( | Constant * | Agg, |
ArrayRef< unsigned > | IdxList | ||
) | const [inline] |
Definition at line 256 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 229 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 225 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 246 of file TargetFolder.h.
References llvm::ConstantExpr::getInsertElement().
Constant* llvm::TargetFolder::CreateInsertValue | ( | Constant * | Agg, |
Constant * | Val, | ||
ArrayRef< unsigned > | IdxList | ||
) | const [inline] |
Definition at line 261 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(), and llvm::IntToPtr.
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::CreatePointerBitCastOrAddrSpaceCast | ( | Constant * | C, |
Type * | DestTy | ||
) | const [inline] |
Definition at line 214 of file TargetFolder.h.
References llvm::ConstantExpr::getPointerBitCastOrAddrSpaceCast(), and llvm::Value::getType().
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 238 of file TargetFolder.h.
References llvm::ConstantExpr::getSelect().
Constant* llvm::TargetFolder::CreateSExtOrBitCast | ( | Constant * | C, |
Type * | DestTy | ||
) | const [inline] |
Definition at line 203 of file TargetFolder.h.
References llvm::ConstantExpr::getSExtOrBitCast(), and llvm::Value::getType().
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 251 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] |
Definition at line 208 of file TargetFolder.h.
References llvm::ConstantExpr::getTruncOrBitCast(), and llvm::Value::getType().
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] |
Definition at line 198 of file TargetFolder.h.
References llvm::Value::getType(), and llvm::ConstantExpr::getZExtOrBitCast().