Lines Matching refs:Constant
33 class Constant; variable
47 bool IsConstantOffsetFromGlobal(Constant *C, GlobalValue *&GV, APInt &Offset,
56 Constant *ConstantFoldInstruction(Instruction *I, const DataLayout &DL,
62 Constant *ConstantFoldConstant(const Constant *C, const DataLayout &DL,
77 Constant *ConstantFoldInstOperands(Instruction *I, ArrayRef<Constant *> Ops,
86 Constant *ConstantFoldCompareInstOperands(
87 unsigned Predicate, Constant *LHS, Constant *RHS, const DataLayout &DL,
92 Constant *ConstantFoldUnaryOpOperand(unsigned Opcode, Constant *Op,
97 Constant *ConstantFoldBinaryOpOperands(unsigned Opcode, Constant *LHS,
98 Constant *RHS, const DataLayout &DL);
103 Constant *ConstantFoldFPInstOperands(unsigned Opcode, Constant *LHS,
104 Constant *RHS, const DataLayout &DL,
116 Constant *FlushFPConstant(Constant *Operand, const Instruction *I,
122 Constant *ConstantFoldSelectInstruction(Constant *Cond, Constant *V1,
123 Constant *V2);
127 Constant *ConstantFoldCastOperand(unsigned Opcode, Constant *C, Type *DestTy,
132 Constant *ConstantFoldIntegerCast(Constant *C, Type *DestTy, bool IsSigned,
138 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
144 Constant *ConstantFoldExtractValueInstruction(Constant *Agg,
150 Constant *ConstantFoldInsertElementInstruction(Constant *Val,
151 Constant *Elt,
152 Constant *Idx);
157 Constant *ConstantFoldExtractElementInstruction(Constant *Val, Constant *Idx);
163 Constant *ConstantFoldShuffleVectorInstruction(Constant *V1, Constant *V2,
168 Constant *ConstantFoldLoadFromConst(Constant *C, Type *Ty, const APInt &Offset,
173 Constant *ConstantFoldLoadFromConst(Constant *C, Type *Ty,
178 Constant *ConstantFoldLoadFromConstPtr(Constant *C, Type *Ty, APInt Offset,
183 Constant *ConstantFoldLoadFromConstPtr(Constant *C, Type *Ty,
190 Constant *ConstantFoldLoadFromUniformValue(Constant *C, Type *Ty,
199 Constant *ConstantFoldCall(const CallBase *Call, Function *F,
200 ArrayRef<Constant *> Operands,
204 Constant *ConstantFoldBinaryIntrinsic(Intrinsic::ID ID, Constant *LHS,
205 Constant *RHS, Type *Ty,
211 Constant *ConstantFoldLoadThroughBitcast(Constant *C, Type *DestTy,
218 Constant *ReadByteArrayFromGlobal(const GlobalVariable *GV, uint64_t Offset);