Lines Matching refs:GC

247                                 GCPtrLivenessData &Data, GCStrategy *GC);
252 StatepointLiveSetTy &out, GCStrategy *GC);
254 static bool isGCPointerType(Type *T, GCStrategy *GC) { in isGCPointerType() argument
255 assert(GC && "GC Strategy for isGCPointerType cannot be null"); in isGCPointerType()
261 return GC->isGCManagedPointer(T).value_or(true); in isGCPointerType()
268 static bool isHandledGCPointerType(Type *T, GCStrategy *GC) { in isHandledGCPointerType() argument
270 if (isGCPointerType(T, GC)) in isHandledGCPointerType()
275 if (isGCPointerType(VT->getElementType(), GC)) in isHandledGCPointerType()
283 static bool containsGCPtrType(Type *Ty, GCStrategy *GC) { in containsGCPtrType() argument
284 if (isGCPointerType(Ty, GC)) in containsGCPtrType()
287 return isGCPointerType(VT->getScalarType(), GC); in containsGCPtrType()
289 return containsGCPtrType(AT->getElementType(), GC); in containsGCPtrType()
292 [GC](Type *Ty) { return containsGCPtrType(Ty, GC); }); in containsGCPtrType()
299 static bool isUnhandledGCPointerType(Type *Ty, GCStrategy *GC) { in isUnhandledGCPointerType() argument
300 return containsGCPtrType(Ty, GC) && !isHandledGCPointerType(Ty, GC); in isUnhandledGCPointerType()
317 PartiallyConstructedSafepointRecord &Result, GCStrategy *GC) { in analyzeParsePointLiveness() argument
319 findLiveSetAtInst(Call, OriginalLivenessData, LiveSet, GC); in analyzeParsePointLiveness()
1346 GCStrategy *GC);
1351 PointerToBaseTy &PointerToBase, GCStrategy *GC) { in recomputeLiveInValues() argument
1355 computeLiveInValues(DT, F, RevisedLivenessData, GC); in recomputeLiveInValues()
1359 GC); in recomputeLiveInValues()
1500 IRBuilder<> &Builder, GCStrategy *GC) { in CreateGCRelocates() argument
1521 assert(isHandledGCPointerType(Ty, GC)); in CreateGCRelocates()
1647 GCStrategy *GC) { in makeStatepointExplicitImpl() argument
1879 CreateGCRelocates(LiveVariables, BasePtrs, ExceptionalToken, Builder, GC); in makeStatepointExplicitImpl()
1925 CreateGCRelocates(LiveVariables, BasePtrs, Token, Builder, GC); in makeStatepointExplicitImpl()
1937 const PointerToBaseTy &PointerToBase, GCStrategy *GC) { in makeStatepointExplicit() argument
1954 PointerToBase, GC); in makeStatepointExplicit()
2247 GCStrategy *GC) { in findLiveReferences() argument
2249 computeLiveInValues(DT, F, OriginalLivenessData, GC); in findLiveReferences()
2252 analyzeParsePointLiveness(DT, OriginalLivenessData, toUpdate[i], info, GC); in findLiveReferences()
2650 std::unique_ptr<GCStrategy> GC = findGCStrategy(F); in insertParsePoints() local
2686 assert(!isUnhandledGCPointerType(Arg->getType(), GC.get()) && in insertParsePoints()
2688 if (isHandledGCPointerType(Arg->getType(), GC.get())) in insertParsePoints()
2699 findLiveReferences(F, DT, ToUpdate, Records, GC.get()); in insertParsePoints()
2750 recomputeLiveInValues(F, DT, ToUpdate, Records, PointerToBase, GC.get()); in insertParsePoints()
2810 PointerToBase, GC.get()); in insertParsePoints()
2865 assert(isHandledGCPointerType(Ptr->getType(), GC.get()) && in insertParsePoints()
3190 SetVector<Value *> &LiveTmp, GCStrategy *GC) { in computeLiveInValues() argument
3202 assert(!isUnhandledGCPointerType(V->getType(), GC) && in computeLiveInValues()
3204 if (isHandledGCPointerType(V->getType(), GC) && !isa<Constant>(V)) { in computeLiveInValues()
3222 GCStrategy *GC) { in computeLiveOutSeed() argument
3230 assert(!isUnhandledGCPointerType(V->getType(), GC) && in computeLiveOutSeed()
3232 if (isHandledGCPointerType(V->getType(), GC) && !isa<Constant>(V)) in computeLiveOutSeed()
3238 static SetVector<Value *> computeKillSet(BasicBlock *BB, GCStrategy *GC) { in computeKillSet() argument
3241 if (isHandledGCPointerType(I.getType(), GC)) in computeKillSet()
3276 GCPtrLivenessData &Data, GCStrategy *GC) { in computeLiveInValues() argument
3281 Data.KillSet[&BB] = computeKillSet(&BB, GC); in computeLiveInValues()
3283 computeLiveInValues(BB.rbegin(), BB.rend(), Data.LiveSet[&BB], GC); in computeLiveInValues()
3291 computeLiveOutSeed(&BB, Data.LiveOut[&BB], GC); in computeLiveInValues()
3343 StatepointLiveSetTy &Out, GCStrategy *GC) { in findLiveSetAtInst() argument
3355 GC); in findLiveSetAtInst()
3364 GCStrategy *GC) { in recomputeLiveInValues() argument
3366 findLiveSetAtInst(Call, RevisedLivenessData, Updated, GC); in recomputeLiveInValues()