/external/llvm/lib/CodeGen/ |
D | SplitKit.cpp | 95 const VNInfo *VNI = CurLI.getVNInfoBefore(MBBEnd); in computeLastInsertPoint() local 96 if (!VNI) in computeLastInsertPoint() 103 if (!SlotIndex::isEarlierInstr(VNI->def, LIP.second) && VNI->def < MBBEnd) in computeLastInsertPoint() 144 for (const VNInfo *VNI : CurLI->valnos) in analyzeUses() local 145 if (!VNI->isPHIDef() && !VNI->isUnused()) in analyzeUses() 146 UseSlots.push_back(VNI->def); in analyzeUses() 393 VNInfo *VNI = LI->getNextValue(Idx, LIS.getVNInfoAllocator()); in defValue() local 398 ValueForcePair(VNI, false))); in defValue() 403 return VNI; in defValue() 414 SlotIndex Def = VNI->def; in defValue() [all …]
|
D | LiveRangeCalc.cpp | 137 for (const VNInfo *VNI : SR.valnos) { in constructMainRangeFromSubranges() local 138 if (!VNI->isUnused() && !VNI->isPHIDef()) in constructMainRangeFromSubranges() 139 MainRange.createDeadDef(VNI->def, *Alloc); in constructMainRangeFromSubranges() 316 if (VNInfo *VNI = Map[Pred].first) { in findReachingDefs() local 317 if (TheVNI && TheVNI != VNI) in findReachingDefs() 319 TheVNI = VNI; in findReachingDefs() 329 VNInfo *VNI = LR.extendInBlock(Start, End); in findReachingDefs() local 330 setLiveOutValue(Pred, VNI); in findReachingDefs() 331 if (VNI) { in findReachingDefs() 332 if (TheVNI && TheVNI != VNI) in findReachingDefs() [all …]
|
D | LiveIntervalAnalysis.cpp | 324 VNInfo *VNI = LR->createDeadDef(Begin, getVNInfoAllocator()); in computeLiveInRegUnits() local 325 (void)VNI; in computeLiveInRegUnits() 326 DEBUG(dbgs() << ' ' << PrintRegUnit(Unit, TRI) << '#' << VNI->id); in computeLiveInRegUnits() 343 for (auto VNI : VNIs) { in createSegmentsForValues() local 344 if (VNI->isUnused()) in createSegmentsForValues() 346 SlotIndex Def = VNI->def; in createSegmentsForValues() 347 LR.addSegment(LiveRange::Segment(Def, Def.getDeadSlot(), VNI)); in createSegmentsForValues() 364 VNInfo *VNI = WorkList.back().second; in extendSegmentsToUses() local 371 assert(ExtVNI == VNI && "Unexpected existing value number"); in extendSegmentsToUses() 374 if (!VNI->isPHIDef() || VNI->def != BlockStart || in extendSegmentsToUses() [all …]
|
D | LiveRangeUtils.h | 48 VNInfo *VNI = LR.getValNumInfo(i); in DistributeRange() local 50 VNI->id = SplitLRs[eq-1]->getNumValNums(); in DistributeRange() 51 SplitLRs[eq-1]->valnos.push_back(VNI); in DistributeRange() 53 VNI->id = j; in DistributeRange() 54 LR.valnos[j++] = VNI; in DistributeRange()
|
D | CalcSpillWeights.cpp | 85 const VNInfo *VNI = *I; in isRematerializable() local 86 if (VNI->isUnused()) in isRematerializable() 88 if (VNI->isPHIDef()) in isRematerializable() 91 MachineInstr *MI = LIS.getInstructionFromIndex(VNI->def); in isRematerializable() 114 LiveQueryResult SrcQ = SrcLI.Query(VNI->def); in isRematerializable() 115 VNI = SrcQ.valueIn(); in isRematerializable() 116 assert(VNI && "Copy from non-existing value"); in isRematerializable() 117 if (VNI->isPHIDef()) in isRematerializable() 119 MI = LIS.getInstructionFromIndex(VNI->def); in isRematerializable()
|
D | LiveInterval.cpp | 67 VNInfo *VNI = LR->getNextValue(Def, VNInfoAllocator); in createDeadDef() local 68 impl().insertAtEnd(Segment(Def, Def.getDeadSlot(), VNI)); in createDeadDef() 69 return VNI; in createDeadDef() 87 VNInfo *VNI = LR->getNextValue(Def, VNInfoAllocator); in createDeadDef() local 88 segments().insert(I, Segment(Def, Def.getDeadSlot(), VNI)); in createDeadDef() 89 return VNI; in createDeadDef() 481 VNInfo *VNI = S.valno; in RenumberValues() local 482 if (!Seen.insert(VNI).second) in RenumberValues() 484 assert(!VNI->isUnused() && "Unused valno used by live segment"); in RenumberValues() 485 VNI->id = (unsigned)valnos.size(); in RenumberValues() [all …]
|
D | RenameIndependentSubregs.cpp | 192 const VNInfo *VNI = SR.getVNInfoAt(Pos); in findComponents() local 193 if (VNI == nullptr) in findComponents() 197 unsigned LocalID = SRInfo.ConEQ.getEqClass(VNI); in findComponents() 237 const VNInfo &VNI = *I->valno; in rewriteOperands() local 239 unsigned LocalID = SRInfo.ConEQ.getEqClass(&VNI); in rewriteOperands() 268 const VNInfo &VNI = *SR.valnos[I]; in distribute() local 269 unsigned LocalID = SRInfo.ConEQ.getEqClass(&VNI); in distribute() 307 const VNInfo &VNI = *SR.valnos[I]; in computeMainRangesFixFlags() local 308 if (VNI.isUnused() || !VNI.isPHIDef()) in computeMainRangesFixFlags() 311 SlotIndex Def = VNI.def; in computeMainRangesFixFlags()
|
D | MachineVerifier.cpp | 219 void report_context(const VNInfo &VNI) const; 489 void MachineVerifier::report_context(const VNInfo &VNI) const { in report_context() 490 errs() << "- ValNo: " << VNI.id << " (def " << VNI.def << ")\n"; in report_context() 1135 if (const VNInfo *VNI = LR.getVNInfoAt(DefIdx)) { in checkLivenessAtDef() local 1136 assert(VNI && "NULL valno is not allowed"); in checkLivenessAtDef() 1137 if (VNI->def != DefIdx) { in checkLivenessAtDef() 1143 report_context(*VNI); in checkLivenessAtDef() 1582 const VNInfo *VNI, unsigned Reg, in verifyLiveRangeValue() argument 1584 if (VNI->isUnused()) in verifyLiveRangeValue() 1587 const VNInfo *DefVNI = LR.getVNInfoAt(VNI->def); in verifyLiveRangeValue() [all …]
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | SplitKit.cpp | 117 const VNInfo *VNI = CurLI.getVNInfoBefore(MBBEnd); in computeLastInsertPoint() local 118 if (!VNI) in computeLastInsertPoint() 125 if (!SlotIndex::isEarlierInstr(VNI->def, LIP.second) && VNI->def < MBBEnd) in computeLastInsertPoint() 165 for (const VNInfo *VNI : CurLI->valnos) in analyzeUses() local 166 if (!VNI->isPHIDef() && !VNI->isUnused()) in analyzeUses() 167 UseSlots.push_back(VNI->def); in analyzeUses() 418 void SplitEditor::addDeadDef(LiveInterval &LI, VNInfo *VNI, bool Original) { in addDeadDef() argument 420 LI.createDeadDef(VNI); in addDeadDef() 424 SlotIndex Def = VNI->def; in addDeadDef() 469 VNInfo *VNI = LI->getNextValue(Idx, LIS.getVNInfoAllocator()); in defValue() local [all …]
|
D | LiveInterval.cpp | 94 VNInfo *VNI = ForVNI ? ForVNI : LR->getNextValue(Def, *VNInfoAllocator); in createDeadDef() local 95 impl().insertAtEnd(Segment(Def, Def.getDeadSlot(), VNI)); in createDeadDef() 96 return VNI; in createDeadDef() 115 VNInfo *VNI = ForVNI ? ForVNI : LR->getNextValue(Def, *VNInfoAllocator); in createDeadDef() local 116 segments().insert(I, Segment(Def, Def.getDeadSlot(), VNI)); in createDeadDef() 117 return VNI; in createDeadDef() 378 VNInfo *LiveRange::createDeadDef(VNInfo *VNI) { in createDeadDef() argument 381 return CalcLiveRangeUtilSet(this).createDeadDef(VNI->def, nullptr, VNI); in createDeadDef() 383 return CalcLiveRangeUtilVector(this).createDeadDef(VNI->def, nullptr, VNI); in createDeadDef() 535 VNInfo *VNI = S.valno; in RenumberValues() local [all …]
|
D | LiveRangeCalc.cpp | 237 if (VNInfo *VNI = Map[Pred].first) { in findReachingDefs() local 238 if (TheVNI && TheVNI != VNI) in findReachingDefs() 240 TheVNI = VNI; in findReachingDefs() 251 VNInfo *VNI = EP.first; in findReachingDefs() local 253 setLiveOutValue(Pred, EP.second ? &UndefVNI : VNI); in findReachingDefs() 254 if (VNI) { in findReachingDefs() 255 if (TheVNI && TheVNI != VNI) in findReachingDefs() 257 TheVNI = VNI; in findReachingDefs() 259 if (VNI || EP.second) in findReachingDefs() 402 VNInfo *VNI = LR.getNextValue(Start, *Alloc); in updateSSA() local [all …]
|
D | LiveRangeUtils.h | 47 VNInfo *VNI = LR.getValNumInfo(i); in DistributeRange() local 49 VNI->id = SplitLRs[eq-1]->getNumValNums(); in DistributeRange() 50 SplitLRs[eq-1]->valnos.push_back(VNI); in DistributeRange() 52 VNI->id = j; in DistributeRange() 53 LR.valnos[j++] = VNI; in DistributeRange()
|
D | LiveIntervals.cpp | 348 VNInfo *VNI = LR->createDeadDef(Begin, getVNInfoAllocator()); in computeLiveInRegUnits() local 349 (void)VNI; in computeLiveInRegUnits() 350 LLVM_DEBUG(dbgs() << ' ' << printRegUnit(Unit, TRI) << '#' << VNI->id); in computeLiveInRegUnits() 364 for (VNInfo *VNI : VNIs) { in createSegmentsForValues() 365 if (VNI->isUnused()) in createSegmentsForValues() 367 SlotIndex Def = VNI->def; in createSegmentsForValues() 368 LR.addSegment(LiveRange::Segment(Def, Def.getDeadSlot(), VNI)); in createSegmentsForValues() 399 VNInfo *VNI = WorkList.back().second; in extendSegmentsToUses() local 406 assert(ExtVNI == VNI && "Unexpected existing value number"); in extendSegmentsToUses() 409 if (!VNI->isPHIDef() || VNI->def != BlockStart || in extendSegmentsToUses() [all …]
|
D | RenameIndependentSubregs.cpp | 192 const VNInfo *VNI = SR.getVNInfoAt(Pos); in findComponents() local 193 if (VNI == nullptr) in findComponents() 197 unsigned LocalID = SRInfo.ConEQ.getEqClass(VNI); in findComponents() 234 const VNInfo *VNI = SR.getVNInfoAt(Pos); in rewriteOperands() local 235 if (VNI == nullptr) in rewriteOperands() 239 unsigned LocalID = SRInfo.ConEQ.getEqClass(VNI); in rewriteOperands() 280 const VNInfo &VNI = *SR.valnos[I]; in distribute() local 281 unsigned LocalID = SRInfo.ConEQ.getEqClass(&VNI); in distribute() 319 const VNInfo &VNI = *SR.valnos[I]; in computeMainRangesFixFlags() local 320 if (VNI.isUnused() || !VNI.isPHIDef()) in computeMainRangesFixFlags() [all …]
|
D | CalcSpillWeights.cpp | 86 const VNInfo *VNI = *I; in isRematerializable() local 87 if (VNI->isUnused()) in isRematerializable() 89 if (VNI->isPHIDef()) in isRematerializable() 92 MachineInstr *MI = LIS.getInstructionFromIndex(VNI->def); in isRematerializable() 113 LiveQueryResult SrcQ = SrcLI.Query(VNI->def); in isRematerializable() 114 VNI = SrcQ.valueIn(); in isRematerializable() 115 assert(VNI && "Copy from non-existing value"); in isRematerializable() 116 if (VNI->isPHIDef()) in isRematerializable() 118 MI = LIS.getInstructionFromIndex(VNI->def); in isRematerializable()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | SplitKit.cpp | 122 const VNInfo *VNI = CurLI.getVNInfoBefore(MBBEnd); in computeLastInsertPoint() local 123 if (!VNI) in computeLastInsertPoint() 130 if (!SlotIndex::isEarlierInstr(VNI->def, LIP.second) && VNI->def < MBBEnd) in computeLastInsertPoint() 170 for (const VNInfo *VNI : CurLI->valnos) in analyzeUses() local 171 if (!VNI->isPHIDef() && !VNI->isUnused()) in analyzeUses() 172 UseSlots.push_back(VNI->def); in analyzeUses() 415 void SplitEditor::addDeadDef(LiveInterval &LI, VNInfo *VNI, bool Original) { in addDeadDef() argument 417 LI.createDeadDef(VNI); in addDeadDef() 421 SlotIndex Def = VNI->def; in addDeadDef() 466 VNInfo *VNI = LI->getNextValue(Idx, LIS.getVNInfoAllocator()); in defValue() local [all …]
|
D | LiveInterval.cpp | 94 VNInfo *VNI = ForVNI ? ForVNI : LR->getNextValue(Def, *VNInfoAllocator); in createDeadDef() local 95 impl().insertAtEnd(Segment(Def, Def.getDeadSlot(), VNI)); in createDeadDef() 96 return VNI; in createDeadDef() 115 VNInfo *VNI = ForVNI ? ForVNI : LR->getNextValue(Def, *VNInfoAllocator); in createDeadDef() local 116 segments().insert(I, Segment(Def, Def.getDeadSlot(), VNI)); in createDeadDef() 117 return VNI; in createDeadDef() 378 VNInfo *LiveRange::createDeadDef(VNInfo *VNI) { in createDeadDef() argument 381 return CalcLiveRangeUtilSet(this).createDeadDef(VNI->def, nullptr, VNI); in createDeadDef() 383 return CalcLiveRangeUtilVector(this).createDeadDef(VNI->def, nullptr, VNI); in createDeadDef() 535 VNInfo *VNI = S.valno; in RenumberValues() local [all …]
|
D | LiveRangeCalc.cpp | 138 for (const VNInfo *VNI : SR.valnos) { in constructMainRangeFromSubranges() local 139 if (!VNI->isUnused() && !VNI->isPHIDef()) in constructMainRangeFromSubranges() 140 MainRange.createDeadDef(VNI->def, *Alloc); in constructMainRangeFromSubranges() 389 if (VNInfo *VNI = Map[Pred].first) { in findReachingDefs() local 390 if (TheVNI && TheVNI != VNI) in findReachingDefs() 392 TheVNI = VNI; in findReachingDefs() 403 VNInfo *VNI = EP.first; in findReachingDefs() local 405 setLiveOutValue(Pred, EP.second ? &UndefVNI : VNI); in findReachingDefs() 406 if (VNI) { in findReachingDefs() 407 if (TheVNI && TheVNI != VNI) in findReachingDefs() [all …]
|
D | LiveRangeUtils.h | 47 VNInfo *VNI = LR.getValNumInfo(i); in DistributeRange() local 49 VNI->id = SplitLRs[eq-1]->getNumValNums(); in DistributeRange() 50 SplitLRs[eq-1]->valnos.push_back(VNI); in DistributeRange() 52 VNI->id = j; in DistributeRange() 53 LR.valnos[j++] = VNI; in DistributeRange()
|
D | LiveIntervals.cpp | 341 VNInfo *VNI = LR->createDeadDef(Begin, getVNInfoAllocator()); in computeLiveInRegUnits() local 342 (void)VNI; in computeLiveInRegUnits() 343 LLVM_DEBUG(dbgs() << ' ' << printRegUnit(Unit, TRI) << '#' << VNI->id); in computeLiveInRegUnits() 357 for (VNInfo *VNI : VNIs) { in createSegmentsForValues() 358 if (VNI->isUnused()) in createSegmentsForValues() 360 SlotIndex Def = VNI->def; in createSegmentsForValues() 361 LR.addSegment(LiveRange::Segment(Def, Def.getDeadSlot(), VNI)); in createSegmentsForValues() 392 VNInfo *VNI = WorkList.back().second; in extendSegmentsToUses() local 399 assert(ExtVNI == VNI && "Unexpected existing value number"); in extendSegmentsToUses() 402 if (!VNI->isPHIDef() || VNI->def != BlockStart || in extendSegmentsToUses() [all …]
|
D | RenameIndependentSubregs.cpp | 192 const VNInfo *VNI = SR.getVNInfoAt(Pos); in findComponents() local 193 if (VNI == nullptr) in findComponents() 197 unsigned LocalID = SRInfo.ConEQ.getEqClass(VNI); in findComponents() 234 const VNInfo *VNI = SR.getVNInfoAt(Pos); in rewriteOperands() local 235 if (VNI == nullptr) in rewriteOperands() 239 unsigned LocalID = SRInfo.ConEQ.getEqClass(VNI); in rewriteOperands() 280 const VNInfo &VNI = *SR.valnos[I]; in distribute() local 281 unsigned LocalID = SRInfo.ConEQ.getEqClass(&VNI); in distribute() 319 const VNInfo &VNI = *SR.valnos[I]; in computeMainRangesFixFlags() local 320 if (VNI.isUnused() || !VNI.isPHIDef()) in computeMainRangesFixFlags() [all …]
|
D | CalcSpillWeights.cpp | 93 const VNInfo *VNI = *I; in isRematerializable() local 94 if (VNI->isUnused()) in isRematerializable() 96 if (VNI->isPHIDef()) in isRematerializable() 99 MachineInstr *MI = LIS.getInstructionFromIndex(VNI->def); in isRematerializable() 122 LiveQueryResult SrcQ = SrcLI.Query(VNI->def); in isRematerializable() 123 VNI = SrcQ.valueIn(); in isRematerializable() 124 assert(VNI && "Copy from non-existing value"); in isRematerializable() 125 if (VNI->isPHIDef()) in isRematerializable() 127 MI = LIS.getInstructionFromIndex(VNI->def); in isRematerializable()
|
/external/llvm/include/llvm/CodeGen/ |
D | LiveInterval.h | 233 for (const VNInfo *VNI : Other.valnos) { in LiveRange() local 234 createValueCopy(VNI, Allocator); in LiveRange() 301 bool containsValue(const VNInfo *VNI) const { in containsValue() argument 302 return VNI && VNI->id < getNumValNums() && VNI == getValNumInfo(VNI->id); in containsValue() 308 VNInfo *VNI = in getNextValue() local 310 valnos.push_back(VNI); in getNextValue() 311 return VNI; in getNextValue() 323 VNInfo *VNI = in createValueCopy() local 325 valnos.push_back(VNI); in createValueCopy() 326 return VNI; in createValueCopy() [all …]
|
/external/llvm-project/llvm/include/llvm/CodeGen/ |
D | LiveInterval.h | 251 for (const VNInfo *VNI : Other.valnos) in assign() local 252 createValueCopy(VNI, Allocator); in assign() 317 bool containsValue(const VNInfo *VNI) const { in containsValue() argument 318 return VNI && VNI->id < getNumValNums() && VNI == getValNumInfo(VNI->id); in containsValue() 324 VNInfo *VNI = in getNextValue() local 326 valnos.push_back(VNI); in getNextValue() 327 return VNI; in getNextValue() 337 VNInfo *createDeadDef(VNInfo *VNI); 343 VNInfo *VNI = in createValueCopy() local 345 valnos.push_back(VNI); in createValueCopy() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/ |
D | LiveInterval.h | 250 for (const VNInfo *VNI : Other.valnos) in assign() local 251 createValueCopy(VNI, Allocator); in assign() 316 bool containsValue(const VNInfo *VNI) const { in containsValue() argument 317 return VNI && VNI->id < getNumValNums() && VNI == getValNumInfo(VNI->id); in containsValue() 323 VNInfo *VNI = in getNextValue() local 325 valnos.push_back(VNI); in getNextValue() 326 return VNI; in getNextValue() 336 VNInfo *createDeadDef(VNInfo *VNI); 342 VNInfo *VNI = in createValueCopy() local 344 valnos.push_back(VNI); in createValueCopy() [all …]
|