Lines Matching defs:Value

61 const char *SelectInst::areInvalidOperands(Value *Op0, Value *Op1, Value *Op2) {
113 Value *PHINode::removeIncomingValue(unsigned Idx, bool DeletePHIIfEmpty) {
114 Value *Removed = getIncomingValue(Idx);
160 Value *PHINode::hasConstantValue() const {
162 Value *ConstantValue = getIncomingValue(0);
179 LandingPadInst::LandingPadInst(Type *RetTy, Value *PersonalityFn,
186 LandingPadInst::LandingPadInst(Type *RetTy, Value *PersonalityFn,
208 LandingPadInst *LandingPadInst::Create(Type *RetTy, Value *PersonalityFn,
216 LandingPadInst *LandingPadInst::Create(Type *RetTy, Value *PersonalityFn,
224 void LandingPadInst::init(Value *PersFn, unsigned NumReservedValues,
250 void LandingPadInst::addClause(Value *Val) {
265 void CallInst::init(Value *Func, ArrayRef<Value *> Args, const Twine &NameStr) {
287 void CallInst::init(Value *Func, const Twine &NameStr) {
301 CallInst::CallInst(Value *Func, const Twine &Name,
311 CallInst::CallInst(Value *Func, const Twine &Name,
354 static bool IsConstantOne(Value *val) {
361 Type *AllocTy, Value *AllocSize,
362 Value *ArraySize, Function *MallocF,
406 Value *MallocFunc = MallocF;
446 Value *AllocSize, Value *ArraySize,
463 Value *AllocSize, Value *ArraySize,
469 static Instruction* createFree(Value* Source, Instruction *InsertBefore,
482 Value *FreeFunc = M->getOrInsertFunction("free", VoidTy, IntPtrTy, NULL);
484 Value *PtrCast = Source;
502 Instruction * CallInst::CreateFree(Value* Source, Instruction *InsertBefore) {
509 Instruction* CallInst::CreateFree(Value* Source, BasicBlock *InsertAtEnd) {
519 void InvokeInst::init(Value *Fn, BasicBlock *IfNormal, BasicBlock *IfException,
520 ArrayRef<Value *> Args, const Twine &NameStr) {
603 ReturnInst::ReturnInst(LLVMContext &C, Value *retVal, Instruction *InsertBefore)
610 ReturnInst::ReturnInst(LLVMContext &C, Value *retVal, BasicBlock *InsertAtEnd)
649 ResumeInst::ResumeInst(Value *Exn, Instruction *InsertBefore)
655 ResumeInst::ResumeInst(Value *Exn, BasicBlock *InsertAtEnd)
716 BranchInst::BranchInst(BasicBlock *IfTrue, BasicBlock *IfFalse, Value *Cond,
737 BranchInst::BranchInst(BasicBlock *IfTrue, BasicBlock *IfFalse, Value *Cond,
776 Value *Ops[] = {
800 static Value *getAISize(LLVMContext &Context, Value *Amt) {
812 AllocaInst::AllocaInst(Type *Ty, Value *ArraySize,
821 AllocaInst::AllocaInst(Type *Ty, Value *ArraySize,
848 AllocaInst::AllocaInst(Type *Ty, Value *ArraySize, unsigned Align,
857 AllocaInst::AllocaInst(Type *Ty, Value *ArraySize, unsigned Align,
911 LoadInst::LoadInst(Value *Ptr, const Twine &Name, Instruction *InsertBef)
921 LoadInst::LoadInst(Value *Ptr, const Twine &Name, BasicBlock *InsertAE)
931 LoadInst::LoadInst(Value *Ptr, const Twine &Name, bool isVolatile,
942 LoadInst::LoadInst(Value *Ptr, const Twine &Name, bool isVolatile,
953 LoadInst::LoadInst(Value *Ptr, const Twine &Name, bool isVolatile,
964 LoadInst::LoadInst(Value *Ptr, const Twine &Name, bool isVolatile,
975 LoadInst::LoadInst(Value *Ptr, const Twine &Name, bool isVolatile,
988 LoadInst::LoadInst(Value *Ptr, const Twine &Name, bool isVolatile,
1001 LoadInst::LoadInst(Value *Ptr, const char *Name, Instruction *InsertBef)
1011 LoadInst::LoadInst(Value *Ptr, const char *Name, BasicBlock *InsertAE)
1021 LoadInst::LoadInst(Value *Ptr, const char *Name, bool isVolatile,
1032 LoadInst::LoadInst(Value *Ptr, const char *Name, bool isVolatile,
1068 StoreInst::StoreInst(Value *val, Value *addr, Instruction *InsertBefore)
1081 StoreInst::StoreInst(Value *val, Value *addr, BasicBlock *InsertAtEnd)
1094 StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile,
1108 StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile,
1122 StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile,
1138 StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile,
1152 StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile,
1166 StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile,
1195 void AtomicCmpXchgInst::Init(Value *Ptr, Value *Cmp, Value *NewVal,
1218 AtomicCmpXchgInst::AtomicCmpXchgInst(Value *Ptr, Value *Cmp, Value *NewVal,
1229 AtomicCmpXchgInst::AtomicCmpXchgInst(Value *Ptr, Value *Cmp, Value *NewVal,
1244 void AtomicRMWInst::Init(BinOp Operation, Value *Ptr, Value *Val,
1264 AtomicRMWInst::AtomicRMWInst(BinOp Operation, Value *Ptr, Value *Val,
1275 AtomicRMWInst::AtomicRMWInst(BinOp Operation, Value *Ptr, Value *Val,
1310 void GetElementPtrInst::init(Value *Ptr, ArrayRef<Value *> IdxList,
1331 /// indices, either as Value* or uint64_t.
1371 Type *GetElementPtrInst::getIndexedType(Type *Ptr, ArrayRef<Value *> IdxList) {
1384 unsigned GetElementPtrInst::getAddressSpace(Value *Ptr) {
1433 ExtractElementInst::ExtractElementInst(Value *Val, Value *Index,
1447 ExtractElementInst::ExtractElementInst(Value *Val, Value *Index,
1463 bool ExtractElementInst::isValidOperands(const Value *Val, const Value *Index) {
1474 InsertElementInst::InsertElementInst(Value *Vec, Value *Elt, Value *Index,
1488 InsertElementInst::InsertElementInst(Value *Vec, Value *Elt, Value *Index,
1503 bool InsertElementInst::isValidOperands(const Value *Vec, const Value *Elt,
1504 const Value *Index) {
1521 ShuffleVectorInst::ShuffleVectorInst(Value *V1, Value *V2, Value *Mask,
1538 ShuffleVectorInst::ShuffleVectorInst(Value *V1, Value *V2, Value *Mask,
1556 bool ShuffleVectorInst::isValidOperands(const Value *V1, const Value *V2,
1557 const Value *Mask) {
1640 void InsertValueInst::init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs,
1725 BinaryOperator::BinaryOperator(BinaryOps iType, Value *S1, Value *S2,
1738 BinaryOperator::BinaryOperator(BinaryOps iType, Value *S1, Value *S2,
1753 Value *LHS = getOperand(0), *RHS = getOperand(1);
1827 BinaryOperator *BinaryOperator::Create(BinaryOps Op, Value *S1, Value *S2,
1835 BinaryOperator *BinaryOperator::Create(BinaryOps Op, Value *S1, Value *S2,
1843 BinaryOperator *BinaryOperator::CreateNeg(Value *Op, const Twine &Name,
1845 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
1851 BinaryOperator *BinaryOperator::CreateNeg(Value *Op, const Twine &Name,
1853 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
1859 BinaryOperator *BinaryOperator::CreateNSWNeg(Value *Op, const Twine &Name,
1861 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
1865 BinaryOperator *BinaryOperator::CreateNSWNeg(Value *Op, const Twine &Name,
1867 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
1871 BinaryOperator *BinaryOperator::CreateNUWNeg(Value *Op, const Twine &Name,
1873 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
1877 BinaryOperator *BinaryOperator::CreateNUWNeg(Value *Op, const Twine &Name,
1879 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
1883 BinaryOperator *BinaryOperator::CreateFNeg(Value *Op, const Twine &Name,
1885 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
1890 BinaryOperator *BinaryOperator::CreateFNeg(Value *Op, const Twine &Name,
1892 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
1897 BinaryOperator *BinaryOperator::CreateNot(Value *Op, const Twine &Name,
1904 BinaryOperator *BinaryOperator::CreateNot(Value *Op, const Twine &Name,
1913 static inline bool isConstantAllOnes(const Value *V) {
1919 bool BinaryOperator::isNeg(const Value *V) {
1927 bool BinaryOperator::isFNeg(const Value *V) {
1935 bool BinaryOperator::isNot(const Value *V) {
1943 Value *BinaryOperator::getNegArgument(Value *BinOp) {
1947 const Value *BinaryOperator::getNegArgument(const Value *BinOp) {
1948 return getNegArgument(const_cast<Value*>(BinOp));
1951 Value *BinaryOperator::getFNegArgument(Value *BinOp) {
1955 const Value *BinaryOperator::getFNegArgument(const Value *BinOp) {
1956 return getFNegArgument(const_cast<Value*>(BinOp));
1959 Value *BinaryOperator::getNotArgument(Value *BinOp) {
1962 Value *Op0 = BO->getOperand(0);
1963 Value *Op1 = BO->getOperand(1);
1970 const Value *BinaryOperator::getNotArgument(const Value *BinOp) {
1971 return getNotArgument(const_cast<Value*>(BinOp));
2277 CastInst *CastInst::Create(Instruction::CastOps op, Value *S, Type *Ty,
2298 CastInst *CastInst::Create(Instruction::CastOps op, Value *S, Type *Ty,
2319 CastInst *CastInst::CreateZExtOrBitCast(Value *S, Type *Ty,
2327 CastInst *CastInst::CreateZExtOrBitCast(Value *S, Type *Ty,
2335 CastInst *CastInst::CreateSExtOrBitCast(Value *S, Type *Ty,
2343 CastInst *CastInst::CreateSExtOrBitCast(Value *S, Type *Ty,
2351 CastInst *CastInst::CreateTruncOrBitCast(Value *S, Type *Ty,
2359 CastInst *CastInst::CreateTruncOrBitCast(Value *S, Type *Ty,
2367 CastInst *CastInst::CreatePointerCast(Value *S, Type *Ty,
2380 CastInst *CastInst::CreatePointerCast(Value *S, Type *Ty,
2392 CastInst *CastInst::CreateIntegerCast(Value *C, Type *Ty,
2406 CastInst *CastInst::CreateIntegerCast(Value *C, Type *Ty,
2420 CastInst *CastInst::CreateFPCast(Value *C, Type *Ty,
2433 CastInst *CastInst::CreateFPCast(Value *C, Type *Ty,
2518 const Value *Src, bool SrcIsSigned, Type *DestTy, bool DestIsSigned) {
2617 CastInst::castIsValid(Instruction::CastOps op, Value *S, Type *DstTy) {
2693 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2699 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd
2705 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2711 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd
2716 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2722 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd
2728 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2734 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd
2740 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2746 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd
2752 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2758 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd
2764 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2770 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd
2776 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2782 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd
2788 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2794 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd
2800 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2806 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd
2812 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2818 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd
2824 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2830 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd
2842 Value *LHS, Value *RHS, const Twine &Name,
2855 Value *LHS, Value *RHS, const Twine &Name,
2869 Value *S1, Value *S2,
2889 CmpInst::Create(OtherOps Op, unsigned short predicate, Value *S1, Value *S2,
3126 void SwitchInst::init(Value *Value, BasicBlock *Default, unsigned NumReserved) {
3127 assert(Value && Default && NumReserved);
3132 OperandList[0] = Value;
3140 SwitchInst::SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases,
3142 : TerminatorInst(Type::getVoidTy(Value->getContext()), Instruction::Switch,
3144 init(Value, Default, 2+NumCases*2);
3151 SwitchInst::SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases,
3153 : TerminatorInst(Type::getVoidTy(Value->getContext()), Instruction::Switch,
3155 init(Value, Default, 2+NumCases*2);
3268 void IndirectBrInst::init(Value *Address, unsigned NumDests) {
3295 IndirectBrInst::IndirectBrInst(Value *Address, unsigned NumCases,
3302 IndirectBrInst::IndirectBrInst(Value *Address, unsigned NumCases,
3394 (Value*)getOperand(0),