|
bool | llvm::IsConstantOffsetFromGlobal (Constant *C, GlobalValue *&GV, APInt &Offset, const DataLayout &DL) |
| If this constant is a constant offset from a global, return the global and the constant. More...
|
|
Constant * | llvm::ConstantFoldInstruction (Instruction *I, const DataLayout &DL, const TargetLibraryInfo *TLI=nullptr) |
| ConstantFoldInstruction - Try to constant fold the specified instruction. More...
|
|
Constant * | llvm::ConstantFoldConstant (const Constant *C, const DataLayout &DL, const TargetLibraryInfo *TLI=nullptr) |
| ConstantFoldConstant - Attempt to fold the constant using the specified DataLayout. More...
|
|
Constant * | llvm::ConstantFoldInstOperands (Instruction *I, ArrayRef< Constant *> Ops, const DataLayout &DL, const TargetLibraryInfo *TLI=nullptr) |
| ConstantFoldInstOperands - Attempt to constant fold an instruction with the specified operands. More...
|
|
Constant * | llvm::ConstantFoldCompareInstOperands (unsigned Predicate, Constant *LHS, Constant *RHS, const DataLayout &DL, const TargetLibraryInfo *TLI=nullptr) |
| ConstantFoldCompareInstOperands - Attempt to constant fold a compare instruction (icmp/fcmp) with the specified operands. More...
|
|
Constant * | llvm::ConstantFoldBinaryOpOperands (unsigned Opcode, Constant *LHS, Constant *RHS, const DataLayout &DL) |
| Attempt to constant fold a binary operation with the specified operands. More...
|
|
Constant * | llvm::ConstantFoldSelectInstruction (Constant *Cond, Constant *V1, Constant *V2) |
| Attempt to constant fold a select instruction with the specified operands. More...
|
|
Constant * | llvm::ConstantFoldCastOperand (unsigned Opcode, Constant *C, Type *DestTy, const DataLayout &DL) |
| Attempt to constant fold a cast with the specified operand. More...
|
|
Constant * | llvm::ConstantFoldInsertValueInstruction (Constant *Agg, Constant *Val, ArrayRef< unsigned > Idxs) |
| ConstantFoldInsertValueInstruction - Attempt to constant fold an insertvalue instruction with the specified operands and indices. More...
|
|
Constant * | llvm::ConstantFoldExtractValueInstruction (Constant *Agg, ArrayRef< unsigned > Idxs) |
| Attempt to constant fold an extractvalue instruction with the specified operands and indices. More...
|
|
Constant * | llvm::ConstantFoldInsertElementInstruction (Constant *Val, Constant *Elt, Constant *Idx) |
| Attempt to constant fold an insertelement instruction with the specified operands and indices. More...
|
|
Constant * | llvm::ConstantFoldExtractElementInstruction (Constant *Val, Constant *Idx) |
| Attempt to constant fold an extractelement instruction with the specified operands and indices. More...
|
|
Constant * | llvm::ConstantFoldShuffleVectorInstruction (Constant *V1, Constant *V2, Constant *Mask) |
| Attempt to constant fold a shufflevector instruction with the specified operands and indices. More...
|
|
Constant * | llvm::ConstantFoldLoadFromConstPtr (Constant *C, Type *Ty, const DataLayout &DL) |
| ConstantFoldLoadFromConstPtr - Return the value that a load from C would produce if it is constant and determinable. More...
|
|
Constant * | llvm::ConstantFoldLoadThroughGEPConstantExpr (Constant *C, ConstantExpr *CE) |
| ConstantFoldLoadThroughGEPConstantExpr - Given a constant and a getelementptr constantexpr, return the constant value being addressed by the constant expression, or null if something is funny and we can't decide. More...
|
|
Constant * | llvm::ConstantFoldLoadThroughGEPIndices (Constant *C, ArrayRef< Constant *> Indices) |
| ConstantFoldLoadThroughGEPIndices - Given a constant and getelementptr indices (with an implied zero pointer index that is not in the list), return the constant value being addressed by a virtual load, or null if something is funny and we can't decide. More...
|
|
bool | llvm::canConstantFoldCallTo (ImmutableCallSite CS, const Function *F) |
| canConstantFoldCallTo - Return true if its even possible to fold a call to the specified function. More...
|
|
Constant * | llvm::ConstantFoldCall (ImmutableCallSite CS, Function *F, ArrayRef< Constant *> Operands, const TargetLibraryInfo *TLI=nullptr) |
| ConstantFoldCall - Attempt to constant fold a call to the specified function with the specified arguments, returning null if unsuccessful. More...
|
|
Constant * | llvm::ConstantFoldLoadThroughBitcast (Constant *C, Type *DestTy, const DataLayout &DL) |
| ConstantFoldLoadThroughBitcast - try to cast constant to destination type returning null if unsuccessful. More...
|
|
bool | llvm::isMathLibCallNoop (CallSite CS, const TargetLibraryInfo *TLI) |
| Check whether the given call has no side-effects. More...
|
|