| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | ValueHandle.h | 204 class WeakTrackingVH : public ValueHandleBase { 206 WeakTrackingVH() : ValueHandleBase(WeakTracking) {} 207 WeakTrackingVH(Value *P) : ValueHandleBase(WeakTracking, P) {} 208 WeakTrackingVH(const WeakTrackingVH &RHS) 211 WeakTrackingVH &operator=(const WeakTrackingVH &RHS) = default; 231 template <> struct simplify_type<WeakTrackingVH> { 234 static SimpleType getSimplifiedValue(WeakTrackingVH &WVH) { return WVH; } 236 template <> struct simplify_type<const WeakTrackingVH> { 239 static SimpleType getSimplifiedValue(const WeakTrackingVH &WVH) { 332 WeakTrackingVH InnerHandle;
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/ |
| H A D | SimplifyIndVar.h | 21 class WeakTrackingVH; variable 52 SmallVectorImpl<WeakTrackingVH> &Dead, 59 SmallVectorImpl<WeakTrackingVH> &Dead); 78 DominatorTree *DT, SmallVectorImpl<WeakTrackingVH> &DeadInsts,
|
| H A D | Cloning.h | 74 std::vector<WeakTrackingVH> OperandBundleCallSites; 224 SmallVector<WeakTrackingVH, 8> InlinedCalls; 301 const ValueMap<const Value *, WeakTrackingVH> *VMap = nullptr);
|
| H A D | Local.h | 27 class WeakTrackingVH; variable 108 SmallVectorImpl<WeakTrackingVH> &DeadInsts, 118 SmallVectorImpl<WeakTrackingVH> &DeadInsts,
|
| H A D | ValueMapper.h | 32 using ValueToValueMapTy = ValueMap<const Value *, WeakTrackingVH>;
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | ValueHandleTest.cpp | 55 WeakTrackingVH WVH(BitcastV.get()); in TEST_F() 67 WeakTrackingVH BitcastWVH(BitcastV.get()); in TEST_F() 68 WeakTrackingVH ConstantWVH(ConstantV); in TEST_F() 100 WeakTrackingVH WVH(BitcastV.get()); in TEST_F() 101 WeakTrackingVH WVH_Copy(WVH); in TEST_F() 102 WeakTrackingVH WVH_Recreated(BitcastV.get()); in TEST_F() 110 WeakTrackingVH WVH(BitcastV.get()); in TEST_F() 111 WeakTrackingVH WVH_Copy(WVH); in TEST_F() 112 WeakTrackingVH WVH_Recreated(BitcastV.get()); in TEST_F() 365 ToClear[0].reset(new WeakTrackingVH(V)); in TEST_F() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/XCore/ |
| H A D | XCoreLowerThreadLocal.cpp | 80 SmallVector<WeakTrackingVH, 8> WUsers(CE->users()); in replaceConstantExprOp() 84 if (WeakTrackingVH WU = WUsers.pop_back_val()) { in replaceConstantExprOp() 111 SmallVector<WeakTrackingVH, 8> WUsers; in rewriteNonInstructionUses() 114 WUsers.push_back(WeakTrackingVH(U)); in rewriteNonInstructionUses() 116 if (WeakTrackingVH WU = WUsers.pop_back_val()) { in rewriteNonInstructionUses()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | LowerConstantIntrinsics.cpp | 105 SmallVector<WeakTrackingVH, 8> Worklist; in lowerConstantIntrinsics() 118 Worklist.push_back(WeakTrackingVH(&I)); in lowerConstantIntrinsics() 123 for (WeakTrackingVH &VH: Worklist) { in lowerConstantIntrinsics()
|
| H A D | InferAddressSpaces.cpp | 199 void inferAddressSpaces(ArrayRef<WeakTrackingVH> Postorder, 215 rewriteWithNewAddressSpaces(ArrayRef<WeakTrackingVH> Postorder, 230 std::vector<WeakTrackingVH> collectFlatAddressExpressions(Function &F) const; 445 std::vector<WeakTrackingVH> 498 std::vector<WeakTrackingVH> Postorder; // The resultant postorder. in collectFlatAddressExpressions() 815 std::vector<WeakTrackingVH> Postorder = collectFlatAddressExpressions(F); in run() 832 ArrayRef<WeakTrackingVH> Postorder, in inferAddressSpaces() 1107 ArrayRef<WeakTrackingVH> Postorder, in rewriteWithNewAddressSpaces() 1151 for (const WeakTrackingVH &WVH : Postorder) { in rewriteWithNewAddressSpaces()
|
| H A D | NaryReassociate.cpp | 224 SmallVector<WeakTrackingVH, 16> DeadInsts; in doOneIteration() 234 DeadInsts.push_back(WeakTrackingVH(&OrigI)); in doOneIteration() 238 SeenExprs[NewSCEV].push_back(WeakTrackingVH(NewI)); in doOneIteration() 260 SeenExprs[OrigSCEV].push_back(WeakTrackingVH(NewI)); in doOneIteration() 262 SeenExprs[OrigSCEV].push_back(WeakTrackingVH(&OrigI)); in doOneIteration()
|
| H A D | IndVarSimplify.cpp | 150 SmallVector<WeakTrackingVH, 16> DeadInsts; 381 WeakTrackingVH WeakPH = PN; in handleFloatingPointIV() 415 SmallVector<WeakTrackingVH, 8> PHIs; in rewriteNonIntegerIVs() 1292 SmallVectorImpl<WeakTrackingVH> &DeadInsts) { in replaceExitCond() 1300 SmallVectorImpl<WeakTrackingVH> &DeadInsts) { in foldExit() 1310 LoopInfo *LI, Loop *L, SmallVectorImpl<WeakTrackingVH> &DeadInsts) { in replaceLoopPHINodesWithPreheaderValues() 1348 SmallVectorImpl<WeakTrackingVH> &DeadInsts) { in replaceWithInvariantCond() 1366 SmallVectorImpl<WeakTrackingVH> &DeadInsts) { in optimizeLoopExitWithUnknownExitCount()
|
| H A D | InstSimplifyPass.cpp | 41 SmallVector<WeakTrackingVH, 8> DeadInstsInBB; in runImpl()
|
| H A D | LoopInstSimplify.cpp | 66 SmallVector<WeakTrackingVH, 8> DeadInsts; in simplifyLoopInst()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | MergeFunctions.cpp | 227 std::vector<WeakTrackingVH> Deferred; 235 bool doFunctionalCheck(std::vector<WeakTrackingVH> &Worklist); 334 bool MergeFunctions::doFunctionalCheck(std::vector<WeakTrackingVH> &Worklist) { in doFunctionalCheck() 342 for (std::vector<WeakTrackingVH>::iterator I = Worklist.begin(), in doFunctionalCheck() 346 for (std::vector<WeakTrackingVH>::iterator J = I; J != E && j < Max; in doFunctionalCheck() 365 for (std::vector<WeakTrackingVH>::iterator K = J; K != E && k < Max; in doFunctionalCheck() 437 Deferred.push_back(WeakTrackingVH(I->second)); in runOnModule() 442 std::vector<WeakTrackingVH> Worklist; in runOnModule() 451 for (WeakTrackingVH &I : Worklist) { in runOnModule()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | CallGraph.h | 178 using CallRecord = std::pair<Optional<WeakTrackingVH>, CallGraphNode *>; 247 Call ? Optional<WeakTrackingVH>(Call) : Optional<WeakTrackingVH>(), M); in addCalledFunction()
|
| H A D | MemoryBuiltins.h | 251 using WeakEvalType = std::pair<WeakTrackingVH, WeakTrackingVH>;
|
| H A D | IVUsers.h | 79 WeakTrackingVH OperandValToReplace;
|
| H A D | ObjCARCAnalysisUtils.h | 83 DenseMap<const Value *, std::pair<WeakVH, WeakTrackingVH>> &Cache) { in GetUnderlyingObjCPtrCached()
|
| H A D | MemorySSAUpdater.h | 50 using ValueToValueMapTy = ValueMap<const Value *, WeakTrackingVH>;
|
| /llvm-project-15.0.7/llvm/lib/Transforms/ObjCARC/ |
| H A D | ProvenanceAnalysis.h | 58 DenseMap<const Value *, std::pair<WeakVH, WeakTrackingVH>>
|
| /llvm-project-15.0.7/llvm/lib/Bitcode/Reader/ |
| H A D | ValueList.h | 30 std::vector<std::pair<WeakTrackingVH, unsigned>> ValuePtrs;
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/Scalar/ |
| H A D | NaryReassociate.h | 196 DenseMap<const SCEV *, SmallVector<WeakTrackingVH, 2>> SeenExprs;
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyIndVar.cpp | 57 SmallVectorImpl<WeakTrackingVH> &DeadInsts; 65 SmallVectorImpl<WeakTrackingVH> &Dead) in SimplifyIndvar() 966 SmallVectorImpl<WeakTrackingVH> &Dead, in simplifyUsersOfIV() 978 SmallVectorImpl<WeakTrackingVH> &Dead) { in simplifyLoopIVs() 1024 SmallVectorImpl<WeakTrackingVH> &DeadInsts; 1086 DominatorTree *DTree, SmallVectorImpl<WeakTrackingVH> &DI, 1178 DominatorTree *DTree, SmallVectorImpl<WeakTrackingVH> &DI, in WidenIV() 2092 DominatorTree *DT, SmallVectorImpl<WeakTrackingVH> &DeadInsts, in createWideIV()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | CGSCCPassManager.cpp | 384 SmallMapVector<Value *, WeakTrackingVH, 16> &CallHandles) { in run() argument 399 CallHandles.insert({CB, WeakTrackingVH(CB)}); in run() 942 UR.IndirectVHs.insert({CB, WeakTrackingVH(CB)}); in updateCGAndAnalysisManagerForPass() 944 Entry->second = WeakTrackingVH(CB); in updateCGAndAnalysisManagerForPass()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CodeGenModule.h | 404 std::vector<llvm::WeakTrackingVH> LLVMUsed; 405 std::vector<llvm::WeakTrackingVH> LLVMCompilerUsed; 484 typedef std::tuple<llvm::FunctionType *, llvm::WeakTrackingVH, 522 llvm::WeakTrackingVH CFConstantStringClassRef;
|