Lines Matching refs:Value
61 explicit AllocaInst(Type *Ty, Value *ArraySize = 0,
63 AllocaInst(Type *Ty, Value *ArraySize,
69 AllocaInst(Type *Ty, Value *ArraySize, unsigned Align,
71 AllocaInst(Type *Ty, Value *ArraySize, unsigned Align,
85 const Value *getArraySize() const { return getOperand(0); } in getArraySize()
86 Value *getArraySize() { return getOperand(0); } in getArraySize()
117 static inline bool classof(const Value *V) { in classof()
141 LoadInst(Value *Ptr, const Twine &NameStr, Instruction *InsertBefore);
142 LoadInst(Value *Ptr, const Twine &NameStr, BasicBlock *InsertAtEnd);
143 LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile = false,
145 LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile,
147 LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile,
149 LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile,
151 LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile,
155 LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile,
160 LoadInst(Value *Ptr, const char *NameStr, Instruction *InsertBefore);
161 LoadInst(Value *Ptr, const char *NameStr, BasicBlock *InsertAtEnd);
162 explicit LoadInst(Value *Ptr, const char *NameStr = 0,
164 LoadInst(Value *Ptr, const char *NameStr, bool isVolatile,
223 Value *getPointerOperand() { return getOperand(0); } in getPointerOperand()
224 const Value *getPointerOperand() const { return getOperand(0); } in getPointerOperand()
237 static inline bool classof(const Value *V) { in classof()
265 StoreInst(Value *Val, Value *Ptr, Instruction *InsertBefore);
266 StoreInst(Value *Val, Value *Ptr, BasicBlock *InsertAtEnd);
267 StoreInst(Value *Val, Value *Ptr, bool isVolatile = false,
269 StoreInst(Value *Val, Value *Ptr, bool isVolatile, BasicBlock *InsertAtEnd);
270 StoreInst(Value *Val, Value *Ptr, bool isVolatile,
272 StoreInst(Value *Val, Value *Ptr, bool isVolatile,
274 StoreInst(Value *Val, Value *Ptr, bool isVolatile,
278 StoreInst(Value *Val, Value *Ptr, bool isVolatile,
297 DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);
343 Value *getValueOperand() { return getOperand(0); } in getValueOperand()
344 const Value *getValueOperand() const { return getOperand(0); } in getValueOperand()
346 Value *getPointerOperand() { return getOperand(1); } in getPointerOperand()
347 const Value *getPointerOperand() const { return getOperand(1); } in getPointerOperand()
359 static inline bool classof(const Value *V) { in classof()
374 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(StoreInst, Value)
431 static inline bool classof(const Value *V) {
452 void Init(Value *Ptr, Value *Cmp, Value *NewVal,
461 AtomicCmpXchgInst(Value *Ptr, Value *Cmp, Value *NewVal,
464 AtomicCmpXchgInst(Value *Ptr, Value *Cmp, Value *NewVal,
483 DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);
512 Value *getPointerOperand() { return getOperand(0); }
513 const Value *getPointerOperand() const { return getOperand(0); }
516 Value *getCompareOperand() { return getOperand(1); }
517 const Value *getCompareOperand() const { return getOperand(1); }
519 Value *getNewValOperand() { return getOperand(2); }
520 const Value *getNewValOperand() const { return getOperand(2); }
531 static inline bool classof(const Value *V) {
547 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(AtomicCmpXchgInst, Value)
599 AtomicRMWInst(BinOp Operation, Value *Ptr, Value *Val,
602 AtomicRMWInst(BinOp Operation, Value *Ptr, Value *Val,
630 DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);
659 Value *getPointerOperand() { return getOperand(0); }
660 const Value *getPointerOperand() const { return getOperand(0); }
663 Value *getValOperand() { return getOperand(1); }
664 const Value *getValOperand() const { return getOperand(1); }
675 static inline bool classof(const Value *V) {
679 void Init(BinOp Operation, Value *Ptr, Value *Val,
693 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(AtomicRMWInst, Value)
712 void init(Value *Ptr, ArrayRef<Value *> IdxList, const Twine &NameStr);
718 inline GetElementPtrInst(Value *Ptr, ArrayRef<Value *> IdxList,
721 inline GetElementPtrInst(Value *Ptr, ArrayRef<Value *> IdxList,
727 static GetElementPtrInst *Create(Value *Ptr, ArrayRef<Value *> IdxList,
734 static GetElementPtrInst *Create(Value *Ptr, ArrayRef<Value *> IdxList,
744 static GetElementPtrInst *CreateInBounds(Value *Ptr,
745 ArrayRef<Value *> IdxList,
752 static GetElementPtrInst *CreateInBounds(Value *Ptr,
753 ArrayRef<Value *> IdxList,
762 DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);
775 static Type *getIndexedType(Type *Ptr, ArrayRef<Value *> IdxList);
784 Value *getPointerOperand() {
787 const Value *getPointerOperand() const {
835 static inline bool classof(const Value *V) {
845 GetElementPtrInst::GetElementPtrInst(Value *Ptr,
846 ArrayRef<Value *> IdxList,
859 GetElementPtrInst::GetElementPtrInst(Value *Ptr,
860 ArrayRef<Value *> IdxList,
875 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(GetElementPtrInst, Value)
895 Value *LHS, ///< The left-hand-side of the expression
896 Value *RHS, ///< The right-hand-side of the expression
916 Value *LHS, ///< The left-hand-side of the expression
917 Value *RHS, ///< The right-hand-side of the expression
936 Value *LHS, ///< The left-hand-side of the expression
937 Value *RHS, ///< The right-hand-side of the expression
1023 static inline bool classof(const Value *V) {
1046 Value *LHS, ///< The left-hand-side of the expression
1047 Value *RHS, ///< The right-hand-side of the expression
1065 Value *LHS, ///< The left-hand-side of the expression
1066 Value *RHS, ///< The right-hand-side of the expression
1083 Value *LHS, ///< The left-hand-side of the expression
1084 Value *RHS, ///< The right-hand-side of the expression
1133 static inline bool classof(const Value *V) {
1147 void init(Value *Func, ArrayRef<Value *> Args, const Twine &NameStr);
1148 void init(Value *Func, const Twine &NameStr);
1152 inline CallInst(Value *Func, ArrayRef<Value *> Args,
1157 inline CallInst(Value *Func, ArrayRef<Value *> Args,
1160 CallInst(Value *F, Value *Actual, const Twine &NameStr,
1162 CallInst(Value *F, Value *Actual, const Twine &NameStr,
1164 explicit CallInst(Value *F, const Twine &NameStr,
1166 CallInst(Value *F, const Twine &NameStr, BasicBlock *InsertAtEnd);
1170 static CallInst *Create(Value *Func,
1171 ArrayRef<Value *> Args,
1177 static CallInst *Create(Value *Func,
1178 ArrayRef<Value *> Args,
1183 static CallInst *Create(Value *F, const Twine &NameStr = "",
1187 static CallInst *Create(Value *F, const Twine &NameStr,
1199 Value *AllocSize, Value *ArraySize = 0,
1204 Value *AllocSize, Value *ArraySize = 0,
1208 static Instruction* CreateFree(Value* Source, Instruction *InsertBefore);
1209 static Instruction* CreateFree(Value* Source, BasicBlock *InsertAtEnd);
1220 DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);
1228 Value *getArgOperand(unsigned i) const { return getOperand(i); }
1229 void setArgOperand(unsigned i, Value *v) { setOperand(i, v); }
1265 void setIsNoInline(bool Value = true) {
1266 if (Value) addAttribute(~0, Attribute::NoInline);
1274 void setCanReturnTwice(bool Value = true) {
1275 if (Value) addAttribute(~0, Attribute::ReturnsTwice);
1332 const Value *getCalledValue() const { return Op<-1>(); }
1333 Value *getCalledValue() { return Op<-1>(); }
1336 void setCalledFunction(Value* Fn) {
1350 static inline bool classof(const Value *V) {
1365 CallInst::CallInst(Value *Func, ArrayRef<Value *> Args,
1375 CallInst::CallInst(Value *Func, ArrayRef<Value *> Args,
1389 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(CallInst, Value)
1398 void init(Value *C, Value *S1, Value *S2) {
1405 SelectInst(Value *C, Value *S1, Value *S2, const Twine &NameStr,
1412 SelectInst(Value *C, Value *S1, Value *S2, const Twine &NameStr,
1422 static SelectInst *Create(Value *C, Value *S1, Value *S2,
1427 static SelectInst *Create(Value *C, Value *S1, Value *S2,
1433 const Value *getCondition() const { return Op<0>(); }
1434 const Value *getTrueValue() const { return Op<1>(); }
1435 const Value *getFalseValue() const { return Op<2>(); }
1436 Value *getCondition() { return Op<0>(); }
1437 Value *getTrueValue() { return Op<1>(); }
1438 Value *getFalseValue() { return Op<2>(); }
1442 static const char *areInvalidOperands(Value *Cond, Value *True, Value *False);
1445 DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);
1456 static inline bool classof(const Value *V) {
1465 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(SelectInst, Value)
1479 VAArgInst(Value *List, Type *Ty, const Twine &NameStr = "",
1484 VAArgInst(Value *List, Type *Ty, const Twine &NameStr,
1490 Value *getPointerOperand() { return getOperand(0); }
1491 const Value *getPointerOperand() const { return getOperand(0); }
1499 static inline bool classof(const Value *V) {
1512 ExtractElementInst(Value *Vec, Value *Idx, const Twine &NameStr = "",
1514 ExtractElementInst(Value *Vec, Value *Idx, const Twine &NameStr,
1520 static ExtractElementInst *Create(Value *Vec, Value *Idx,
1525 static ExtractElementInst *Create(Value *Vec, Value *Idx,
1533 static bool isValidOperands(const Value *Vec, const Value *Idx);
1535 Value *getVectorOperand() { return Op<0>(); }
1536 Value *getIndexOperand() { return Op<1>(); }
1537 const Value *getVectorOperand() const { return Op<0>(); }
1538 const Value *getIndexOperand() const { return Op<1>(); }
1546 DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);
1553 static inline bool classof(const Value *V) {
1563 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(ExtractElementInst, Value)
1573 InsertElementInst(Value *Vec, Value *NewElt, Value *Idx,
1576 InsertElementInst(Value *Vec, Value *NewElt, Value *Idx,
1582 static InsertElementInst *Create(Value *Vec, Value *NewElt, Value *Idx,
1587 static InsertElementInst *Create(Value *Vec, Value *NewElt, Value *Idx,
1595 static bool isValidOperands(const Value *Vec, const Value *NewElt,
1596 const Value *Idx);
1605 DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);
1612 static inline bool classof(const Value *V) {
1622 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(InsertElementInst, Value)
1640 ShuffleVectorInst(Value *V1, Value *V2, Value *Mask,
1643 ShuffleVectorInst(Value *V1, Value *V2, Value *Mask,
1648 static bool isValidOperands(const Value *V1, const Value *V2,
1649 const Value *Mask);
1658 DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);
1670 static inline bool classof(const Value *V) {
1680 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(ShuffleVectorInst, Value)
1699 inline ExtractValueInst(Value *Agg,
1703 inline ExtractValueInst(Value *Agg,
1715 static ExtractValueInst *Create(Value *Agg,
1722 static ExtractValueInst *Create(Value *Agg,
1739 Value *getAggregateOperand() {
1742 const Value *getAggregateOperand() const {
1766 static inline bool classof(const Value *V) {
1771 ExtractValueInst::ExtractValueInst(Value *Agg,
1779 ExtractValueInst::ExtractValueInst(Value *Agg,
1801 void init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs,
1808 inline InsertValueInst(Value *Agg, Value *Val,
1812 inline InsertValueInst(Value *Agg, Value *Val,
1818 InsertValueInst(Value *Agg, Value *Val,
1821 InsertValueInst(Value *Agg, Value *Val, unsigned Idx,
1831 static InsertValueInst *Create(Value *Agg, Value *Val,
1837 static InsertValueInst *Create(Value *Agg, Value *Val,
1845 DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);
1851 Value *getAggregateOperand() {
1854 const Value *getAggregateOperand() const {
1861 Value *getInsertedValueOperand() {
1864 const Value *getInsertedValueOperand() const {
1888 static inline bool classof(const Value *V) {
1898 InsertValueInst::InsertValueInst(Value *Agg,
1899 Value *Val,
1908 InsertValueInst::InsertValueInst(Value *Agg,
1909 Value *Val,
1919 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(InsertValueInst, Value)
1976 DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);
2010 Value *getIncomingValue(unsigned i) const {
2013 void setIncomingValue(unsigned i, Value *V) {
2051 void addIncoming(Value *V, BasicBlock *BB) {
2072 Value *removeIncomingValue(unsigned Idx, bool DeletePHIIfEmpty = true);
2074 Value *removeIncomingValue(const BasicBlock *BB, bool DeletePHIIfEmpty=true) {
2090 Value *getIncomingValueForBlock(const BasicBlock *BB) const {
2098 Value *hasConstantValue() const;
2105 static inline bool classof(const Value *V) {
2116 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(PHINode, Value)
2144 void init(Value *PersFn, unsigned NumReservedValues, const Twine &NameStr);
2146 explicit LandingPadInst(Type *RetTy, Value *PersonalityFn,
2149 explicit LandingPadInst(Type *RetTy, Value *PersonalityFn,
2157 static LandingPadInst *Create(Type *RetTy, Value *PersonalityFn,
2161 static LandingPadInst *Create(Type *RetTy, Value *PersonalityFn,
2167 DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);
2171 Value *getPersonalityFn() const { return getOperand(0); }
2185 void addClause(Value *ClauseVal);
2189 Value *getClause(unsigned Idx) const { return OperandList[Idx + 1]; }
2213 static inline bool classof(const Value *V) {
2222 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(LandingPadInst, Value)
2247 explicit ReturnInst(LLVMContext &C, Value *retVal = 0,
2249 ReturnInst(LLVMContext &C, Value *retVal, BasicBlock *InsertAtEnd);
2254 static ReturnInst* Create(LLVMContext &C, Value *retVal = 0,
2258 static ReturnInst* Create(LLVMContext &C, Value *retVal,
2268 DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);
2271 Value *getReturnValue() const {
2282 static inline bool classof(const Value *V) {
2295 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(ReturnInst, Value)
2319 BranchInst(BasicBlock *IfTrue, BasicBlock *IfFalse, Value *Cond,
2322 BranchInst(BasicBlock *IfTrue, BasicBlock *IfFalse, Value *Cond,
2331 Value *Cond, Instruction *InsertBefore = 0) {
2338 Value *Cond, BasicBlock *InsertAtEnd) {
2343 DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);
2348 Value *getCondition() const {
2353 void setCondition(Value *V) {
2367 *(&Op<-1>() - idx) = (Value*)NewSucc;
2382 static inline bool classof(const Value *V) {
2395 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(BranchInst, Value)
2412 void init(Value *Value, BasicBlock *Default, unsigned NumReserved);
2422 SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases,
2429 SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases,
2434 static SwitchInst *Create(Value *Value, BasicBlock *Default,
2436 return new SwitchInst(Value, Default, NumCases, InsertBefore);
2438 static SwitchInst *Create(Value *Value, BasicBlock *Default,
2440 return new SwitchInst(Value, Default, NumCases, InsertAtEnd);
2445 DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);
2448 Value *getCondition() const { return getOperand(0); }
2449 void setCondition(Value *V) { setOperand(0, V); }
2518 setOperand(idx*2+1, (Value*)NewSucc);
2532 setOperand(idx*2, reinterpret_cast<Value*>(SuccessorValue));
2540 static inline bool classof(const Value *V) {
2553 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(SwitchInst, Value)
2571 void init(Value *Address, unsigned NumDests);
2581 IndirectBrInst(Value *Address, unsigned NumDests, Instruction *InsertBefore);
2587 IndirectBrInst(Value *Address, unsigned NumDests, BasicBlock *InsertAtEnd);
2591 static IndirectBrInst *Create(Value *Address, unsigned NumDests,
2595 static IndirectBrInst *Create(Value *Address, unsigned NumDests,
2602 DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);
2605 Value *getAddress() { return getOperand(0); }
2606 const Value *getAddress() const { return getOperand(0); }
2607 void setAddress(Value *V) { setOperand(0, V); }
2631 setOperand(i+1, (Value*)NewSucc);
2639 static inline bool classof(const Value *V) {
2652 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(IndirectBrInst, Value)
2665 void init(Value *Func, BasicBlock *IfNormal, BasicBlock *IfException,
2666 ArrayRef<Value *> Args, const Twine &NameStr);
2671 inline InvokeInst(Value *Func, BasicBlock *IfNormal, BasicBlock *IfException,
2672 ArrayRef<Value *> Args, unsigned Values,
2678 inline InvokeInst(Value *Func, BasicBlock *IfNormal, BasicBlock *IfException,
2679 ArrayRef<Value *> Args, unsigned Values,
2684 static InvokeInst *Create(Value *Func,
2686 ArrayRef<Value *> Args, const Twine &NameStr = "",
2692 static InvokeInst *Create(Value *Func,
2694 ArrayRef<Value *> Args, const Twine &NameStr,
2702 DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);
2710 Value *getArgOperand(unsigned i) const { return getOperand(i); }
2711 void setArgOperand(unsigned i, Value *v) { setOperand(i, v); }
2746 void setIsNoInline(bool Value = true) {
2747 if (Value) addAttribute(~0, Attribute::NoInline);
2804 const Value *getCalledValue() const { return Op<-3>(); }
2805 Value *getCalledValue() { return Op<-3>(); }
2808 void setCalledFunction(Value* Fn) {
2820 Op<-2>() = reinterpret_cast<Value*>(B);
2823 Op<-1>() = reinterpret_cast<Value*>(B);
2837 *(&Op<-2>() + idx) = reinterpret_cast<Value*>(NewSucc);
2847 static inline bool classof(const Value *V) {
2867 InvokeInst::InvokeInst(Value *Func,
2869 ArrayRef<Value *> Args, unsigned Values,
2878 InvokeInst::InvokeInst(Value *Func,
2880 ArrayRef<Value *> Args, unsigned Values,
2890 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(InvokeInst, Value)
2919 static inline bool classof(const Value *V) {
2938 explicit ResumeInst(Value *Exn, Instruction *InsertBefore=0);
2939 ResumeInst(Value *Exn, BasicBlock *InsertAtEnd);
2943 static ResumeInst *Create(Value *Exn, Instruction *InsertBefore = 0) {
2946 static ResumeInst *Create(Value *Exn, BasicBlock *InsertAtEnd) {
2951 DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);
2954 Value *getValue() const { return Op<0>(); }
2963 static inline bool classof(const Value *V) {
2977 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(ResumeInst, Value)
3008 static inline bool classof(const Value *V) {
3030 Value *S, ///< The value to be truncated
3038 Value *S, ///< The value to be truncated
3049 static inline bool classof(const Value *V) {
3067 Value *S, ///< The value to be zero extended
3075 Value *S, ///< The value to be zero extended
3086 static inline bool classof(const Value *V) {
3104 Value *S, ///< The value to be sign extended
3112 Value *S, ///< The value to be sign extended
3123 static inline bool classof(const Value *V) {
3141 Value *S, ///< The value to be truncated
3149 Value *S, ///< The value to be truncated
3160 static inline bool classof(const Value *V) {
3178 Value *S, ///< The value to be extended
3186 Value *S, ///< The value to be extended
3197 static inline bool classof(const Value *V) {
3215 Value *S, ///< The value to be converted
3223 Value *S, ///< The value to be converted
3234 static inline bool classof(const Value *V) {
3252 Value *S, ///< The value to be converted
3260 Value *S, ///< The value to be converted
3271 static inline bool classof(const Value *V) {
3289 Value *S, ///< The value to be converted
3297 Value *S, ///< The value to be converted
3308 static inline bool classof(const Value *V) {
3326 Value *S, ///< The value to be converted
3334 Value *S, ///< The value to be converted
3345 static inline bool classof(const Value *V) {
3359 Value *S, ///< The value to be converted
3367 Value *S, ///< The value to be converted
3381 static inline bool classof(const Value *V) {
3399 Value *S, ///< The value to be converted
3407 Value *S, ///< The value to be converted
3418 static inline bool classof(const Value *V) {
3436 Value *S, ///< The value to be casted
3444 Value *S, ///< The value to be casted
3455 static inline bool classof(const Value *V) {