Home
last modified time | relevance | path

Searched refs:WeakTrackingVH (Results 1 – 25 of 54) sorted by relevance

123

/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DValueHandle.h204 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 DSimplifyIndVar.h21 class WeakTrackingVH; variable
52 SmallVectorImpl<WeakTrackingVH> &Dead,
59 SmallVectorImpl<WeakTrackingVH> &Dead);
78 DominatorTree *DT, SmallVectorImpl<WeakTrackingVH> &DeadInsts,
H A DCloning.h74 std::vector<WeakTrackingVH> OperandBundleCallSites;
224 SmallVector<WeakTrackingVH, 8> InlinedCalls;
301 const ValueMap<const Value *, WeakTrackingVH> *VMap = nullptr);
H A DLocal.h27 class WeakTrackingVH; variable
108 SmallVectorImpl<WeakTrackingVH> &DeadInsts,
118 SmallVectorImpl<WeakTrackingVH> &DeadInsts,
H A DValueMapper.h32 using ValueToValueMapTy = ValueMap<const Value *, WeakTrackingVH>;
/llvm-project-15.0.7/llvm/unittests/IR/
H A DValueHandleTest.cpp55 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 DXCoreLowerThreadLocal.cpp80 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 DLowerConstantIntrinsics.cpp105 SmallVector<WeakTrackingVH, 8> Worklist; in lowerConstantIntrinsics()
118 Worklist.push_back(WeakTrackingVH(&I)); in lowerConstantIntrinsics()
123 for (WeakTrackingVH &VH: Worklist) { in lowerConstantIntrinsics()
H A DInferAddressSpaces.cpp199 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 DNaryReassociate.cpp224 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 DIndVarSimplify.cpp150 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 DInstSimplifyPass.cpp41 SmallVector<WeakTrackingVH, 8> DeadInstsInBB; in runImpl()
H A DLoopInstSimplify.cpp66 SmallVector<WeakTrackingVH, 8> DeadInsts; in simplifyLoopInst()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DMergeFunctions.cpp227 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 DCallGraph.h178 using CallRecord = std::pair<Optional<WeakTrackingVH>, CallGraphNode *>;
247 Call ? Optional<WeakTrackingVH>(Call) : Optional<WeakTrackingVH>(), M); in addCalledFunction()
H A DMemoryBuiltins.h251 using WeakEvalType = std::pair<WeakTrackingVH, WeakTrackingVH>;
H A DIVUsers.h79 WeakTrackingVH OperandValToReplace;
H A DObjCARCAnalysisUtils.h83 DenseMap<const Value *, std::pair<WeakVH, WeakTrackingVH>> &Cache) { in GetUnderlyingObjCPtrCached()
H A DMemorySSAUpdater.h50 using ValueToValueMapTy = ValueMap<const Value *, WeakTrackingVH>;
/llvm-project-15.0.7/llvm/lib/Transforms/ObjCARC/
H A DProvenanceAnalysis.h58 DenseMap<const Value *, std::pair<WeakVH, WeakTrackingVH>>
/llvm-project-15.0.7/llvm/lib/Bitcode/Reader/
H A DValueList.h30 std::vector<std::pair<WeakTrackingVH, unsigned>> ValuePtrs;
/llvm-project-15.0.7/llvm/include/llvm/Transforms/Scalar/
H A DNaryReassociate.h196 DenseMap<const SCEV *, SmallVector<WeakTrackingVH, 2>> SeenExprs;
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp57 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 DCGSCCPassManager.cpp384 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 DCodeGenModule.h404 std::vector<llvm::WeakTrackingVH> LLVMUsed;
405 std::vector<llvm::WeakTrackingVH> LLVMCompilerUsed;
484 typedef std::tuple<llvm::FunctionType *, llvm::WeakTrackingVH,
522 llvm::WeakTrackingVH CFConstantStringClassRef;

123