• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/llvmCore-3425.0.34/lib/Transforms/Scalar/

Lines Matching refs:Value

173 static bool IsPotentialUse(const Value *Op) {
280 static InstructionClass GetInstructionClass(const Value *V) {
372 static InstructionClass GetBasicInstructionClass(const Value *V) {
450 Value *OldArg = cast<CallInst>(CI)->getArgOperand(0);
470 static const Value *GetUnderlyingObjCPtr(const Value *V) {
482 /// Value::stripPointerCasts which also knows how to look through objc_retain
484 static const Value *StripPointerCastsAndObjCCalls(const Value *V) {
495 /// Value::stripPointerCasts which also knows how to look through objc_retain
497 static Value *StripPointerCastsAndObjCCalls(Value *V) {
510 static Value *GetObjCArg(Value *Inst) {
517 static bool IsObjCIdentifiedObject(const Value *V) {
527 const Value *Pointer =
552 static const Value *FindSingleUseIdentifiedObject(const Value *Arg) {
570 for (Value::const_use_iterator UI = Arg->use_begin(), UE = Arg->use_end();
610 static bool DoesObjCBlockEscape(const Value *BlockPtr) {
612 SmallVector<const Value *, 4> Worklist;
615 const Value *V = Worklist.pop_back_val();
616 for (Value::const_use_iterator UI = V->use_begin(), UE = V->use_end();
731 const Value *SA = StripPointerCastsAndObjCCalls(LocA.Ptr);
732 const Value *SB = StripPointerCastsAndObjCCalls(LocB.Ptr);
741 const Value *UA = GetUnderlyingObjCPtr(SA);
742 const Value *UB = GetUnderlyingObjCPtr(SB);
764 const Value *S = StripPointerCastsAndObjCCalls(Loc.Ptr);
771 const Value *U = GetUnderlyingObjCPtr(S);
1033 Value *Op = *OI;
1116 typedef std::pair<const Value *, const Value *> ValuePairTy;
1120 bool relatedCheck(const Value *A, const Value *B);
1121 bool relatedSelect(const SelectInst *A, const Value *B);
1122 bool relatedPHI(const PHINode *A, const Value *B);
1134 bool related(const Value *A, const Value *B);
1142 bool ProvenanceAnalysis::relatedSelect(const SelectInst *A, const Value *B) {
1155 bool ProvenanceAnalysis::relatedPHI(const PHINode *A, const Value *B) {
1169 SmallPtrSet<const Value *, 4> UniqueSrc;
1171 const Value *PV1 = A->getIncomingValue(i);
1182 static bool isStoredObjCPointer(const Value *P) {
1183 SmallPtrSet<const Value *, 8> Visited;
1184 SmallVector<const Value *, 8> Worklist;
1189 for (Value::const_use_iterator UI = P->use_begin(), UE = P->use_end();
1214 bool ProvenanceAnalysis::relatedCheck(const Value *A, const Value *B) {
1269 bool ProvenanceAnalysis::related(const Value *A, const Value *B) {
1492 typedef MapVector<const Value *, PtrState> MapTy;
1539 PtrState &getPtrTopDownState(const Value *Arg) {
1543 PtrState &getPtrBottomUpState(const Value *Arg) {
1705 MapVector<Value *, RRInfo> &Retains,
1709 MapVector<Value *, RRInfo> &Retains);
1711 DenseMap<Value *, RRInfo> &Releases,
1715 DenseMap<Value *, RRInfo> &Releases);
1718 MapVector<Value *, RRInfo> &Retains,
1719 DenseMap<Value *, RRInfo> &Releases);
1721 void MoveCalls(Value *Arg, RRInfo &RetainsToMove, RRInfo &ReleasesToMove,
1722 MapVector<Value *, RRInfo> &Retains,
1723 DenseMap<Value *, RRInfo> &Releases,
1728 MapVector<Value *, RRInfo> &Retains,
1729 DenseMap<Value *, RRInfo> &Releases,
1872 static bool IsPotentialUse(const Value *Op, AliasAnalysis &AA) {
1894 CanAlterRefCount(const Instruction *Inst, const Value *Ptr,
1905 ImmutableCallSite CS = static_cast<const Value *>(Inst);
1915 const Value *Op = *I;
1929 CanUse(const Instruction *Inst, const Value *Ptr, ProvenanceAnalysis &PA,
1943 } else if (ImmutableCallSite CS = static_cast<const Value *>(Inst)) {
1947 const Value *Op = *OI;
1955 const Value *Op = GetUnderlyingObjCPtr(SI->getPointerOperand());
1964 const Value *Op = *OI;
2005 Depends(DependenceKind Flavor, Instruction *Inst, const Value *Arg,
2093 const Value *Arg,
2151 static bool isNullOrUndef(const Value *V) {
2189 const Value *Arg = GetObjCArg(RetainRV);
2236 const Value *Ptr = GetObjCArg(AutoreleaseRV);
2237 SmallVector<const Value *, 2> Users;
2241 for (Value::const_use_iterator UI = Ptr->use_begin(), UE = Ptr->use_end();
2335 const Value *Arg = Call->getArgOperand(0);
2347 MDNode::get(C, ArrayRef<Value *>()));
2372 const Value *Arg = GetObjCArg(Inst);
2391 SmallVector<std::pair<Instruction *, const Value *>, 4> Worklist;
2394 std::pair<Instruction *, const Value *> Pair = Worklist.pop_back_val();
2406 Value *Incoming =
2460 Value *Incoming =
2464 Value *Op = PN->getIncomingValue(i);
2496 const Value *Arg = I->first;
2550 const Value *Arg = I->first;
2609 MapVector<Value *, RRInfo> &Retains,
2613 const Value *Arg = 0;
2693 const Value *Ptr = MI->first;
2762 MapVector<Value *, RRInfo> &Retains) {
2810 DenseMap<Value *, RRInfo> &Releases,
2814 const Value *Arg = 0;
2896 const Value *Ptr = MI->first;
2949 DenseMap<Value *, RRInfo> &Releases) {
3072 MapVector<Value *, RRInfo> &Retains,
3073 DenseMap<Value *, RRInfo> &Releases) {
3104 void ObjCARCOpt::MoveCalls(Value *Arg,
3107 MapVector<Value *, RRInfo> &Retains,
3108 DenseMap<Value *, RRInfo> &Releases,
3119 Value *MyArg = ArgTy == ParamTy ? Arg :
3128 MDNode::get(M->getContext(), ArrayRef<Value *>()));
3136 Value *MyArg = ArgTy == ParamTy ? Arg :
3170 MapVector<Value *, RRInfo> &Retains,
3171 DenseMap<Value *, RRInfo> &Releases,
3181 for (MapVector<Value *, RRInfo>::const_iterator I = Retains.begin(),
3183 Value *V = I->first;
3187 Value *Arg = GetObjCArg(Retain);
3222 MapVector<Value *, RRInfo>::const_iterator It = Retains.find(NewRetain);
3230 DenseMap<Value *, RRInfo>::const_iterator Jt =
3277 DenseMap<Value *, RRInfo>::const_iterator It =
3286 MapVector<Value *, RRInfo>::const_iterator Jt =
3410 Value *Arg = Call->getArgOperand(0);
3411 Value *EarlierArg = EarlierCall->getArgOperand(0);
3440 Value *Arg = Call->getArgOperand(0);
3441 Value *EarlierArg = EarlierCall->getArgOperand(0);
3491 Value *Arg = Call->getArgOperand(0);
3493 for (Value::use_iterator UI = Alloca->use_begin(),
3506 for (Value::use_iterator UI = Alloca->use_begin(),
3533 /// analysis. These use Value* as the key instead of Instruction* so that the
3536 DenseMap<Value *, RRInfo> Releases;
3537 MapVector<Value *, RRInfo> Retains;
3577 const Value *Arg = StripPointerCastsAndObjCCalls(Ret->getOperand(0));
3881 const Value *Arg = GetObjCArg(Autorelease);
3970 Value *New = StripPointerCastsAndObjCCalls(Store->getValueOperand());
3988 Value *Args[] = { Load->getPointerOperand(), New };
4119 Value *Null =
4144 const Value *Arg = cast<CallInst>(Inst)->getArgOperand(0);
4150 for (Value::const_use_iterator UI = Arg->use_begin(), UE = Arg->use_end();