Lines Matching defs:Value

62 const char *SelectInst::areInvalidOperands(Value *Op0, Value *Op1, Value *Op2) {
114 Value *PHINode::removeIncomingValue(unsigned Idx, bool DeletePHIIfEmpty) {
115 Value *Removed = getIncomingValue(Idx);
161 Value *PHINode::hasConstantValue() const {
163 Value *ConstantValue = getIncomingValue(0);
180 LandingPadInst::LandingPadInst(Type *RetTy, Value *PersonalityFn,
187 LandingPadInst::LandingPadInst(Type *RetTy, Value *PersonalityFn,
209 LandingPadInst *LandingPadInst::Create(Type *RetTy, Value *PersonalityFn,
217 LandingPadInst *LandingPadInst::Create(Type *RetTy, Value *PersonalityFn,
225 void LandingPadInst::init(Value *PersFn, unsigned NumReservedValues,
266 void CallInst::init(Value *Func, ArrayRef<Value *> Args, const Twine &NameStr) {
288 void CallInst::init(Value *Func, const Twine &NameStr) {
302 CallInst::CallInst(Value *Func, const Twine &Name,
312 CallInst::CallInst(Value *Func, const Twine &Name,
366 static bool IsConstantOne(Value *val) {
373 Type *AllocTy, Value *AllocSize,
374 Value *ArraySize, Function *MallocF,
418 Value *MallocFunc = MallocF;
458 Value *AllocSize, Value *ArraySize,
475 Value *AllocSize, Value *ArraySize,
481 static Instruction* createFree(Value* Source, Instruction *InsertBefore,
494 Value *FreeFunc = M->getOrInsertFunction("free", VoidTy, IntPtrTy, NULL);
496 Value *PtrCast = Source;
514 Instruction * CallInst::CreateFree(Value* Source, Instruction *InsertBefore) {
521 Instruction* CallInst::CreateFree(Value* Source, BasicBlock *InsertAtEnd) {
531 void InvokeInst::init(Value *Fn, BasicBlock *IfNormal, BasicBlock *IfException,
532 ArrayRef<Value *> Args, const Twine &NameStr) {
625 ReturnInst::ReturnInst(LLVMContext &C, Value *retVal, Instruction *InsertBefore)
632 ReturnInst::ReturnInst(LLVMContext &C, Value *retVal, BasicBlock *InsertAtEnd)
671 ResumeInst::ResumeInst(Value *Exn, Instruction *InsertBefore)
677 ResumeInst::ResumeInst(Value *Exn, BasicBlock *InsertAtEnd)
738 BranchInst::BranchInst(BasicBlock *IfTrue, BasicBlock *IfFalse, Value *Cond,
759 BranchInst::BranchInst(BasicBlock *IfTrue, BasicBlock *IfFalse, Value *Cond,
798 Value *Ops[] = {
822 static Value *getAISize(LLVMContext &Context, Value *Amt) {
834 AllocaInst::AllocaInst(Type *Ty, Value *ArraySize,
843 AllocaInst::AllocaInst(Type *Ty, Value *ArraySize,
870 AllocaInst::AllocaInst(Type *Ty, Value *ArraySize, unsigned Align,
879 AllocaInst::AllocaInst(Type *Ty, Value *ArraySize, unsigned Align,
934 LoadInst::LoadInst(Value *Ptr, const Twine &Name, Instruction *InsertBef)
944 LoadInst::LoadInst(Value *Ptr, const Twine &Name, BasicBlock *InsertAE)
954 LoadInst::LoadInst(Value *Ptr, const Twine &Name, bool isVolatile,
965 LoadInst::LoadInst(Value *Ptr, const Twine &Name, bool isVolatile,
976 LoadInst::LoadInst(Value *Ptr, const Twine &Name, bool isVolatile,
987 LoadInst::LoadInst(Value *Ptr, const Twine &Name, bool isVolatile,
998 LoadInst::LoadInst(Value *Ptr, const Twine &Name, bool isVolatile,
1011 LoadInst::LoadInst(Value *Ptr, const Twine &Name, bool isVolatile,
1024 LoadInst::LoadInst(Value *Ptr, const char *Name, Instruction *InsertBef)
1034 LoadInst::LoadInst(Value *Ptr, const char *Name, BasicBlock *InsertAE)
1044 LoadInst::LoadInst(Value *Ptr, const char *Name, bool isVolatile,
1055 LoadInst::LoadInst(Value *Ptr, const char *Name, bool isVolatile,
1091 StoreInst::StoreInst(Value *val, Value *addr, Instruction *InsertBefore)
1104 StoreInst::StoreInst(Value *val, Value *addr, BasicBlock *InsertAtEnd)
1117 StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile,
1131 StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile,
1145 StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile,
1161 StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile,
1175 StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile,
1189 StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile,
1218 void AtomicCmpXchgInst::Init(Value *Ptr, Value *Cmp, Value *NewVal,
1249 AtomicCmpXchgInst::AtomicCmpXchgInst(Value *Ptr, Value *Cmp, Value *NewVal,
1262 AtomicCmpXchgInst::AtomicCmpXchgInst(Value *Ptr, Value *Cmp, Value *NewVal,
1279 void AtomicRMWInst::Init(BinOp Operation, Value *Ptr, Value *Val,
1299 AtomicRMWInst::AtomicRMWInst(BinOp Operation, Value *Ptr, Value *Val,
1310 AtomicRMWInst::AtomicRMWInst(BinOp Operation, Value *Ptr, Value *Val,
1345 void GetElementPtrInst::init(Value *Ptr, ArrayRef<Value *> IdxList,
1366 /// indices, either as Value* or uint64_t.
1397 Type *GetElementPtrInst::getIndexedType(Type *Ptr, ArrayRef<Value *> IdxList) {
1453 ExtractElementInst::ExtractElementInst(Value *Val, Value *Index,
1467 ExtractElementInst::ExtractElementInst(Value *Val, Value *Index,
1483 bool ExtractElementInst::isValidOperands(const Value *Val, const Value *Index) {
1494 InsertElementInst::InsertElementInst(Value *Vec, Value *Elt, Value *Index,
1508 InsertElementInst::InsertElementInst(Value *Vec, Value *Elt, Value *Index,
1523 bool InsertElementInst::isValidOperands(const Value *Vec, const Value *Elt,
1524 const Value *Index) {
1541 ShuffleVectorInst::ShuffleVectorInst(Value *V1, Value *V2, Value *Mask,
1558 ShuffleVectorInst::ShuffleVectorInst(Value *V1, Value *V2, Value *Mask,
1576 bool ShuffleVectorInst::isValidOperands(const Value *V1, const Value *V2,
1577 const Value *Mask) {
1593 for (Value *Op : MV->operands()) {
1660 void InsertValueInst::init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs,
1744 BinaryOperator::BinaryOperator(BinaryOps iType, Value *S1, Value *S2,
1757 BinaryOperator::BinaryOperator(BinaryOps iType, Value *S1, Value *S2,
1772 Value *LHS = getOperand(0), *RHS = getOperand(1);
1846 BinaryOperator *BinaryOperator::Create(BinaryOps Op, Value *S1, Value *S2,
1854 BinaryOperator *BinaryOperator::Create(BinaryOps Op, Value *S1, Value *S2,
1862 BinaryOperator *BinaryOperator::CreateNeg(Value *Op, const Twine &Name,
1864 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
1870 BinaryOperator *BinaryOperator::CreateNeg(Value *Op, const Twine &Name,
1872 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
1878 BinaryOperator *BinaryOperator::CreateNSWNeg(Value *Op, const Twine &Name,
1880 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
1884 BinaryOperator *BinaryOperator::CreateNSWNeg(Value *Op, const Twine &Name,
1886 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
1890 BinaryOperator *BinaryOperator::CreateNUWNeg(Value *Op, const Twine &Name,
1892 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
1896 BinaryOperator *BinaryOperator::CreateNUWNeg(Value *Op, const Twine &Name,
1898 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
1902 BinaryOperator *BinaryOperator::CreateFNeg(Value *Op, const Twine &Name,
1904 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
1909 BinaryOperator *BinaryOperator::CreateFNeg(Value *Op, const Twine &Name,
1911 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
1916 BinaryOperator *BinaryOperator::CreateNot(Value *Op, const Twine &Name,
1923 BinaryOperator *BinaryOperator::CreateNot(Value *Op, const Twine &Name,
1932 static inline bool isConstantAllOnes(const Value *V) {
1938 bool BinaryOperator::isNeg(const Value *V) {
1946 bool BinaryOperator::isFNeg(const Value *V, bool IgnoreZeroSign) {
1957 bool BinaryOperator::isNot(const Value *V) {
1965 Value *BinaryOperator::getNegArgument(Value *BinOp) {
1969 const Value *BinaryOperator::getNegArgument(const Value *BinOp) {
1970 return getNegArgument(const_cast<Value*>(BinOp));
1973 Value *BinaryOperator::getFNegArgument(Value *BinOp) {
1977 const Value *BinaryOperator::getFNegArgument(const Value *BinOp) {
1978 return getFNegArgument(const_cast<Value*>(BinOp));
1981 Value *BinaryOperator::getNotArgument(Value *BinOp) {
1984 Value *Op0 = BO->getOperand(0);
1985 Value *Op1 = BO->getOperand(1);
1992 const Value *BinaryOperator::getNotArgument(const Value *BinOp) {
1993 return getNotArgument(const_cast<Value*>(BinOp));
2375 CastInst *CastInst::Create(Instruction::CastOps op, Value *S, Type *Ty,
2397 CastInst *CastInst::Create(Instruction::CastOps op, Value *S, Type *Ty,
2419 CastInst *CastInst::CreateZExtOrBitCast(Value *S, Type *Ty,
2427 CastInst *CastInst::CreateZExtOrBitCast(Value *S, Type *Ty,
2435 CastInst *CastInst::CreateSExtOrBitCast(Value *S, Type *Ty,
2443 CastInst *CastInst::CreateSExtOrBitCast(Value *S, Type *Ty,
2451 CastInst *CastInst::CreateTruncOrBitCast(Value *S, Type *Ty,
2459 CastInst *CastInst::CreateTruncOrBitCast(Value *S, Type *Ty,
2467 CastInst *CastInst::CreatePointerCast(Value *S, Type *Ty,
2489 CastInst *CastInst::CreatePointerCast(Value *S, Type *Ty,
2510 CastInst *CastInst::CreateIntegerCast(Value *C, Type *Ty,
2524 CastInst *CastInst::CreateIntegerCast(Value *C, Type *Ty,
2538 CastInst *CastInst::CreateFPCast(Value *C, Type *Ty,
2551 CastInst *CastInst::CreateFPCast(Value *C, Type *Ty,
2676 const Value *Src, bool SrcIsSigned, Type *DestTy, bool DestIsSigned) {
2778 CastInst::castIsValid(Instruction::CastOps op, Value *S, Type *DstTy) {
2898 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2904 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd
2910 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2916 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd
2921 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2927 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd
2933 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2939 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd
2945 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2951 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd
2957 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2963 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd
2969 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2975 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd
2981 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2987 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd
2993 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2999 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd
3005 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
3011 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd
3017 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
3023 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd
3029 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
3035 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd
3041 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
3047 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd
3059 Value *LHS, Value *RHS, const Twine &Name,
3072 Value *LHS, Value *RHS, const Twine &Name,
3086 Value *S1, Value *S2,
3106 CmpInst::Create(OtherOps Op, unsigned short predicate, Value *S1, Value *S2,
3343 void SwitchInst::init(Value *Value, BasicBlock *Default, unsigned NumReserved) {
3344 assert(Value && Default && NumReserved);
3349 OperandList[0] = Value;
3357 SwitchInst::SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases,
3359 : TerminatorInst(Type::getVoidTy(Value->getContext()), Instruction::Switch,
3361 init(Value, Default, 2+NumCases*2);
3368 SwitchInst::SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases,
3370 : TerminatorInst(Type::getVoidTy(Value->getContext()), Instruction::Switch,
3372 init(Value, Default, 2+NumCases*2);
3461 void IndirectBrInst::init(Value *Address, unsigned NumDests) {
3488 IndirectBrInst::IndirectBrInst(Value *Address, unsigned NumCases,
3495 IndirectBrInst::IndirectBrInst(Value *Address, unsigned NumCases,
3587 (Value *)getOperand(0), getAlignment());