• Home
  • Raw
  • Download

Lines Matching refs:ConstantExpr

106     C = ConstantExpr::getIntToPtr(C, PTy);  in getIntegerValue()
167 const ConstantExpr *CE = dyn_cast<ConstantExpr>(this); in canTrap()
236 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(this)) in getRelocationInfo()
238 ConstantExpr *LHS = dyn_cast<ConstantExpr>(CE->getOperand(0)); in getRelocationInfo()
239 ConstantExpr *RHS = dyn_cast<ConstantExpr>(CE->getOperand(1)); in getRelocationInfo()
741 bool ConstantExpr::isCast() const { in isCast()
745 bool ConstantExpr::isCompare() const { in isCompare()
749 bool ConstantExpr::isGEPWithNoNotionalOverIndexing() const { in isGEPWithNoNotionalOverIndexing()
774 bool ConstantExpr::hasIndices() const { in hasIndices()
779 ArrayRef<unsigned> ConstantExpr::getIndices() const { in getIndices()
787 unsigned ConstantExpr::getPredicate() const { in getPredicate()
795 ConstantExpr::getWithOperandReplaced(unsigned OpNo, Constant *Op) const { in getWithOperandReplaced()
800 return const_cast<ConstantExpr*>(this); in getWithOperandReplaced()
816 return ConstantExpr::getCast(getOpcode(), Op, getType()); in getWithOperandReplaced()
821 return ConstantExpr::getSelect(Op0, Op1, Op2); in getWithOperandReplaced()
826 return ConstantExpr::getInsertElement(Op0, Op1, Op2); in getWithOperandReplaced()
830 return ConstantExpr::getExtractElement(Op0, Op1); in getWithOperandReplaced()
835 return ConstantExpr::getShuffleVector(Op0, Op1, Op2); in getWithOperandReplaced()
843 ConstantExpr::getInBoundsGetElementPtr(Op, &Ops[0], Ops.size()) : in getWithOperandReplaced()
844 ConstantExpr::getGetElementPtr(Op, &Ops[0], Ops.size()); in getWithOperandReplaced()
847 ConstantExpr::getInBoundsGetElementPtr(getOperand(0), &Ops[0],Ops.size()): in getWithOperandReplaced()
848 ConstantExpr::getGetElementPtr(getOperand(0), &Ops[0], Ops.size()); in getWithOperandReplaced()
854 return ConstantExpr::get(getOpcode(), Op0, Op1, SubclassOptionalData); in getWithOperandReplaced()
861 Constant *ConstantExpr::
869 return const_cast<ConstantExpr*>(this); in getWithOperands()
884 return ConstantExpr::getCast(getOpcode(), Ops[0], Ty); in getWithOperands()
886 return ConstantExpr::getSelect(Ops[0], Ops[1], Ops[2]); in getWithOperands()
888 return ConstantExpr::getInsertElement(Ops[0], Ops[1], Ops[2]); in getWithOperands()
890 return ConstantExpr::getExtractElement(Ops[0], Ops[1]); in getWithOperands()
892 return ConstantExpr::getShuffleVector(Ops[0], Ops[1], Ops[2]); in getWithOperands()
895 ConstantExpr::getInBoundsGetElementPtr(Ops[0], &Ops[1], Ops.size()-1) : in getWithOperands()
896 ConstantExpr::getGetElementPtr(Ops[0], &Ops[1], Ops.size()-1); in getWithOperands()
899 return ConstantExpr::getCompare(getPredicate(), Ops[0], Ops[1]); in getWithOperands()
902 return ConstantExpr::get(getOpcode(), Ops[0], Ops[1], SubclassOptionalData); in getWithOperands()
1227 Constant *ConstantExpr::getCast(unsigned oc, Constant *C, Type *Ty) { in getCast()
1253 Constant *ConstantExpr::getZExtOrBitCast(Constant *C, Type *Ty) { in getZExtOrBitCast()
1259 Constant *ConstantExpr::getSExtOrBitCast(Constant *C, Type *Ty) { in getSExtOrBitCast()
1265 Constant *ConstantExpr::getTruncOrBitCast(Constant *C, Type *Ty) { in getTruncOrBitCast()
1271 Constant *ConstantExpr::getPointerCast(Constant *S, Type *Ty) { in getPointerCast()
1280 Constant *ConstantExpr::getIntegerCast(Constant *C, Type *Ty, in getIntegerCast()
1293 Constant *ConstantExpr::getFPCast(Constant *C, Type *Ty) { in getFPCast()
1305 Constant *ConstantExpr::getTrunc(Constant *C, Type *Ty) { in getTrunc()
1319 Constant *ConstantExpr::getSExt(Constant *C, Type *Ty) { in getSExt()
1333 Constant *ConstantExpr::getZExt(Constant *C, Type *Ty) { in getZExt()
1347 Constant *ConstantExpr::getFPTrunc(Constant *C, Type *Ty) { in getFPTrunc()
1359 Constant *ConstantExpr::getFPExtend(Constant *C, Type *Ty) { in getFPExtend()
1371 Constant *ConstantExpr::getUIToFP(Constant *C, Type *Ty) { in getUIToFP()
1382 Constant *ConstantExpr::getSIToFP(Constant *C, Type *Ty) { in getSIToFP()
1393 Constant *ConstantExpr::getFPToUI(Constant *C, Type *Ty) { in getFPToUI()
1404 Constant *ConstantExpr::getFPToSI(Constant *C, Type *Ty) { in getFPToSI()
1415 Constant *ConstantExpr::getPtrToInt(Constant *C, Type *DstTy) { in getPtrToInt()
1421 Constant *ConstantExpr::getIntToPtr(Constant *C, Type *DstTy) { in getIntToPtr()
1427 Constant *ConstantExpr::getBitCast(Constant *C, Type *DstTy) { in getBitCast()
1438 Constant *ConstantExpr::get(unsigned Opcode, Constant *C1, Constant *C2, in get()
1516 Constant *ConstantExpr::getSizeOf(Type* Ty) { in getSizeOf()
1526 Constant *ConstantExpr::getAlignOf(Type* Ty) { in getAlignOf()
1540 Constant *ConstantExpr::getOffsetOf(StructType* STy, unsigned FieldNo) { in getOffsetOf()
1545 Constant *ConstantExpr::getOffsetOf(Type* Ty, Constant *FieldNo) { in getOffsetOf()
1558 Constant *ConstantExpr::getCompare(unsigned short Predicate, in getCompare()
1580 Constant *ConstantExpr::getSelect(Constant *C, Constant *V1, Constant *V2) { in getSelect()
1595 Constant *ConstantExpr::getGetElementPtr(Constant *C, Value* const *Idxs, in getGetElementPtr()
1624 ConstantExpr::getICmp(unsigned short pred, Constant *LHS, Constant *RHS) { in getICmp()
1648 ConstantExpr::getFCmp(unsigned short pred, Constant *LHS, Constant *RHS) { in getFCmp()
1670 Constant *ConstantExpr::getExtractElement(Constant *Val, Constant *Idx) { in getExtractElement()
1689 Constant *ConstantExpr::getInsertElement(Constant *Val, Constant *Elt, in getInsertElement()
1710 Constant *ConstantExpr::getShuffleVector(Constant *V1, Constant *V2, in getShuffleVector()
1732 Constant *ConstantExpr::getInsertValue(Constant *Agg, Constant *Val, in getInsertValue()
1744 Constant *ConstantExpr::getExtractValue(Constant *Agg, in getExtractValue()
1760 Constant *ConstantExpr::getNeg(Constant *C, bool HasNUW, bool HasNSW) { in getNeg()
1767 Constant *ConstantExpr::getFNeg(Constant *C) { in getFNeg()
1773 Constant *ConstantExpr::getNot(Constant *C) { in getNot()
1779 Constant *ConstantExpr::getAdd(Constant *C1, Constant *C2, in getAdd()
1786 Constant *ConstantExpr::getFAdd(Constant *C1, Constant *C2) { in getFAdd()
1790 Constant *ConstantExpr::getSub(Constant *C1, Constant *C2, in getSub()
1797 Constant *ConstantExpr::getFSub(Constant *C1, Constant *C2) { in getFSub()
1801 Constant *ConstantExpr::getMul(Constant *C1, Constant *C2, in getMul()
1808 Constant *ConstantExpr::getFMul(Constant *C1, Constant *C2) { in getFMul()
1812 Constant *ConstantExpr::getUDiv(Constant *C1, Constant *C2, bool isExact) { in getUDiv()
1817 Constant *ConstantExpr::getSDiv(Constant *C1, Constant *C2, bool isExact) { in getSDiv()
1822 Constant *ConstantExpr::getFDiv(Constant *C1, Constant *C2) { in getFDiv()
1826 Constant *ConstantExpr::getURem(Constant *C1, Constant *C2) { in getURem()
1830 Constant *ConstantExpr::getSRem(Constant *C1, Constant *C2) { in getSRem()
1834 Constant *ConstantExpr::getFRem(Constant *C1, Constant *C2) { in getFRem()
1838 Constant *ConstantExpr::getAnd(Constant *C1, Constant *C2) { in getAnd()
1842 Constant *ConstantExpr::getOr(Constant *C1, Constant *C2) { in getOr()
1846 Constant *ConstantExpr::getXor(Constant *C1, Constant *C2) { in getXor()
1850 Constant *ConstantExpr::getShl(Constant *C1, Constant *C2, in getShl()
1857 Constant *ConstantExpr::getLShr(Constant *C1, Constant *C2, bool isExact) { in getLShr()
1862 Constant *ConstantExpr::getAShr(Constant *C1, Constant *C2, bool isExact) { in getAShr()
1869 void ConstantExpr::destroyConstant() { in destroyConstant()
1874 const char *ConstantExpr::getOpcodeName() const { in getOpcodeName()
1883 : ConstantExpr(DestTy, Instruction::GetElementPtr, in GetElementPtrConstantExpr()
2078 void ConstantExpr::replaceUsesOfWithOnConstant(Value *From, Value *ToV, in replaceUsesOfWithOnConstant()
2095 Replacement = ConstantExpr::getGetElementPtr(Pointer, in replaceUsesOfWithOnConstant()
2103 Replacement = ConstantExpr::getExtractValue(Agg, Indices); in replaceUsesOfWithOnConstant()
2111 Replacement = ConstantExpr::getInsertValue(Agg, Val, Indices); in replaceUsesOfWithOnConstant()
2114 Replacement = ConstantExpr::getCast(getOpcode(), To, getType()); in replaceUsesOfWithOnConstant()
2122 Replacement = ConstantExpr::getSelect(C1, C2, C3); in replaceUsesOfWithOnConstant()
2128 Replacement = ConstantExpr::getExtractElement(C1, C2); in replaceUsesOfWithOnConstant()
2136 Replacement = ConstantExpr::getInsertElement(C1, C2, C3); in replaceUsesOfWithOnConstant()
2144 Replacement = ConstantExpr::getShuffleVector(C1, C2, C3); in replaceUsesOfWithOnConstant()
2151 Replacement = ConstantExpr::getICmp(getPredicate(), C1, C2); in replaceUsesOfWithOnConstant()
2154 Replacement = ConstantExpr::getFCmp(getPredicate(), C1, C2); in replaceUsesOfWithOnConstant()
2161 Replacement = ConstantExpr::get(getOpcode(), C1, C2, SubclassOptionalData); in replaceUsesOfWithOnConstant()