• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/llvmCore-3425.0.34/include/llvm/Support/

Lines Matching refs:Constant

1 //===-- llvm/Support/ConstantFolder.h - Constant folding helper -*- C++ -*-===//
34 Constant *CreateAdd(Constant *LHS, Constant *RHS,
38 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const {
41 Constant *CreateSub(Constant *LHS, Constant *RHS,
45 Constant *CreateFSub(Constant *LHS, Constant *RHS) const {
48 Constant *CreateMul(Constant *LHS, Constant *RHS,
52 Constant *CreateFMul(Constant *LHS, Constant *RHS) const {
55 Constant *CreateUDiv(Constant *LHS, Constant *RHS,
59 Constant *CreateSDiv(Constant *LHS, Constant *RHS,
63 Constant *CreateFDiv(Constant *LHS, Constant *RHS) const {
66 Constant *CreateURem(Constant *LHS, Constant *RHS) const {
69 Constant *CreateSRem(Constant *LHS, Constant *RHS) const {
72 Constant *CreateFRem(Constant *LHS, Constant *RHS) const {
75 Constant *CreateShl(Constant *LHS, Constant *RHS,
79 Constant *CreateLShr(Constant *LHS, Constant *RHS,
83 Constant *CreateAShr(Constant *LHS, Constant *RHS,
87 Constant *CreateAnd(Constant *LHS, Constant *RHS) const {
90 Constant *CreateOr(Constant *LHS, Constant *RHS) const {
93 Constant *CreateXor(Constant *LHS, Constant *RHS) const {
97 Constant *CreateBinOp(Instruction::BinaryOps Opc,
98 Constant *LHS, Constant *RHS) const {
106 Constant *CreateNeg(Constant *C,
110 Constant *CreateFNeg(Constant *C) const {
113 Constant *CreateNot(Constant *C) const {
121 Constant *CreateGetElementPtr(Constant *C,
122 ArrayRef<Constant *> IdxList) const {
125 Constant *CreateGetElementPtr(Constant *C, Constant *Idx) const {
127 // warnings about whether to convert Idx to ArrayRef<Constant *> or
131 Constant *CreateGetElementPtr(Constant *C,
136 Constant *CreateInBoundsGetElementPtr(Constant *C,
137 ArrayRef<Constant *> IdxList) const {
140 Constant *CreateInBoundsGetElementPtr(Constant *C, Constant *Idx) const {
142 // warnings about whether to convert Idx to ArrayRef<Constant *> or
146 Constant *CreateInBoundsGetElementPtr(Constant *C,
155 Constant *CreateCast(Instruction::CastOps Op, Constant *C,
159 Constant *CreatePointerCast(Constant *C, Type *DestTy) const {
162 Constant *CreateIntCast(Constant *C, Type *DestTy,
166 Constant *CreateFPCast(Constant *C, Type *DestTy) const {
170 Constant *CreateBitCast(Constant *C, Type *DestTy) const {
173 Constant *CreateIntToPtr(Constant *C, Type *DestTy) const {
176 Constant *CreatePtrToInt(Constant *C, Type *DestTy) const {
179 Constant *CreateZExtOrBitCast(Constant *C, Type *DestTy) const {
182 Constant *CreateSExtOrBitCast(Constant *C, Type *DestTy) const {
186 Constant *CreateTruncOrBitCast(Constant *C, Type *DestTy) const {
194 Constant *CreateICmp(CmpInst::Predicate P, Constant *LHS,
195 Constant *RHS) const {
198 Constant *CreateFCmp(CmpInst::Predicate P, Constant *LHS,
199 Constant *RHS) const {
207 Constant *CreateSelect(Constant *C, Constant *True, Constant *False) const {
211 Constant *CreateExtractElement(Constant *Vec, Constant *Idx) const {
215 Constant *CreateInsertElement(Constant *Vec, Constant *NewElt,
216 Constant *Idx) const {
220 Constant *CreateShuffleVector(Constant *V1, Constant *V2,
221 Constant *Mask) const {
225 Constant *CreateExtractValue(Constant *Agg,
230 Constant *CreateInsertValue(Constant *Agg, Constant *Val,