/external/llvm-project/llvm/lib/CodeGen/ |
D | LiveIntervalCalc.cpp | 42 static void createDeadDef(SlotIndexes &Indexes, VNInfo::Allocator &Alloc, in createDeadDef() argument 46 Indexes.getInstructionIndex(MI).getRegSlot(MO.isEarlyClobber()); in createDeadDef() 54 SlotIndexes *Indexes = getIndexes(); in calculate() local 57 assert(MRI && Indexes && "call reset() first"); in calculate() 81 [&MO, Indexes, Alloc](LiveInterval::SubRange &SR) { in calculate() 83 createDeadDef(*Indexes, *Alloc, SR, MO); in calculate() 85 *Indexes, TRI); in calculate() 91 createDeadDef(*Indexes, *Alloc, LI, MO); in calculate() 105 SubLIC.reset(MF, Indexes, DomTree, Alloc); in calculate() 135 SlotIndexes *Indexes = getIndexes(); in createDeadDefs() local [all …]
|
D | LiveRangeCalc.cpp | 57 Indexes = SI; in reset() 72 std::tie(Start, End) = Indexes->getMBBRange(MBB); in updateFromLiveIns() 92 assert(Indexes && "Missing SlotIndexes"); in extend() 95 MachineBasicBlock *UseMBB = Indexes->getMBBFromIndex(Use.getPrevSlot()); in extend() 99 auto EP = LR.extendInBlock(Undefs, Indexes->getMBBStartIdx(UseMBB), Use); in extend() 118 assert(Indexes && "Missing SlotIndexes"); in calculateValues() 156 std::tie(Begin, End) = Indexes->getMBBRange(&B); in isDefOnEntry() 217 const MachineInstr *MI = Indexes->getInstructionFromIndex(Use); in findReachingDefs() 246 std::tie(Start, End) = Indexes->getMBBRange(Pred); in findReachingDefs() 287 std::tie(Start, End) = Indexes->getMBBRange(BN); in findReachingDefs() [all …]
|
D | LiveIntervals.cpp | 129 Indexes = &getAnalysis<SlotIndexes>(); in runOnMachineFunction() 177 MF->print(OS, Indexes); in printInstrs() 224 RegMaskSlots.push_back(Indexes->getMBBStartIdx(&MBB)); in computeRegMasks() 233 RegMaskSlots.push_back(Indexes->getMBBStartIdx(&MBB)); in computeRegMasks() 241 RegMaskSlots.push_back(Indexes->getInstructionIndex(MI).getRegSlot()); in computeRegMasks() 252 Indexes->getInstructionIndex(MBB.back()).getRegSlot()); in computeRegMasks() 337 SlotIndex Begin = Indexes->getMBBStartIdx(&MBB); in computeLiveInRegUnits() 401 const MachineBasicBlock *MBB = Indexes->getMBBFromIndex(Idx.getPrevSlot()); in extendSegmentsToUses() 402 SlotIndex BlockStart = Indexes->getMBBStartIdx(MBB); in extendSegmentsToUses() 416 SlotIndex Stop = Indexes->getMBBEndIdx(Pred); in extendSegmentsToUses() [all …]
|
D | VirtRegMap.cpp | 180 SlotIndexes *Indexes; member in __anonc92da2cc0111::VirtRegRewriter 240 Indexes = &getAnalysis<SlotIndexes>(); in runOnMachineFunction() 287 for (SlotIndexes::MBBIndexIterator MBBI = Indexes->findMBBIndex(First); in addLiveInsForSubRanges() 288 MBBI != Indexes->MBBIndexEnd() && MBBI->first <= Last; ++MBBI) { in addLiveInsForSubRanges() 331 SlotIndexes::MBBIndexIterator I = Indexes->MBBIndexBegin(); in addMBBLiveIns() 333 I = Indexes->advanceMBBIndex(I, Seg.start); in addMBBLiveIns() 334 for (; I != Indexes->MBBIndexEnd() && I->first < Seg.end; ++I) { in addMBBLiveIns() 392 if (Indexes) in handleIdentityCopy() 393 Indexes->removeSingleMachineInstrFromMaps(MI); in handleIdentityCopy() 461 if (Indexes && BundledMI != FirstMI) in expandCopyBundle() [all …]
|
D | MachineBasicBlock.cpp | 312 void MachineBasicBlock::print(raw_ostream &OS, const SlotIndexes *Indexes, in print() argument 324 print(OS, MST, Indexes, IsStandalone); in print() 328 const SlotIndexes *Indexes, in print() argument 337 if (Indexes && PrintSlotIndexes) in print() 338 OS << Indexes->getMBBStartIdx(this) << '\t'; in print() 350 if (Indexes) OS << '\t'; in print() 363 if (Indexes) OS << '\t'; in print() 396 if (Indexes) OS << '\t'; in print() 416 if (Indexes && PrintSlotIndexes) { in print() 417 if (Indexes->hasIndex(MI)) in print() [all …]
|
/external/llvm/lib/CodeGen/ |
D | LiveRangeCalc.cpp | 35 Indexes = SI; in reset() 43 static void createDeadDef(SlotIndexes &Indexes, VNInfo::Allocator &Alloc, in createDeadDef() argument 47 Indexes.getInstructionIndex(MI).getRegSlot(MO.isEarlyClobber()); in createDeadDef() 54 assert(MRI && Indexes && "call reset() first"); in calculate() 94 createDeadDef(*Indexes, *Alloc, *CommonRange, MO); in calculate() 101 createDeadDef(*Indexes, *Alloc, *NewRange, MO); in calculate() 108 createDeadDef(*Indexes, *Alloc, LI, MO); in calculate() 148 assert(MRI && Indexes && "call reset() first"); in createDeadDefs() 153 createDeadDef(*Indexes, *Alloc, LR, MO); in createDeadDefs() 191 UseIdx = Indexes->getMBBEndIdx(MI->getOperand(OpNo+1).getMBB()); in extendToUses() [all …]
|
D | VirtRegMap.cpp | 161 SlotIndexes *Indexes; member in __anon6640cbde0111::VirtRegRewriter 217 Indexes = &getAnalysis<SlotIndexes>(); in runOnMachineFunction() 264 for (SlotIndexes::MBBIndexIterator MBBI = Indexes->findMBBIndex(First); in addLiveInsForSubRanges() 265 MBBI != Indexes->MBBIndexEnd() && MBBI->first <= Last; ++MBBI) { in addLiveInsForSubRanges() 308 SlotIndexes::MBBIndexIterator I = Indexes->MBBIndexBegin(); in addMBBLiveIns() 310 I = Indexes->advanceMBBIndex(I, Seg.start); in addMBBLiveIns() 311 for (; I != Indexes->MBBIndexEnd() && I->first < Seg.end; ++I) { in addMBBLiveIns() 368 if (Indexes) in handleIdentityCopy() 369 Indexes->removeMachineInstrFromMaps(MI); in handleIdentityCopy() 382 DEBUG(MBBI->print(dbgs(), Indexes)); in rewrite()
|
D | LiveIntervalAnalysis.cpp | 119 Indexes = &getAnalysis<SlotIndexes>(); in runOnMachineFunction() 171 MF->print(OS, Indexes); in printInstrs() 216 RegMaskSlots.push_back(Indexes->getMBBStartIdx(&MBB)); in computeRegMasks() 224 RegMaskSlots.push_back(Indexes->getInstructionIndex(MI).getRegSlot()); in computeRegMasks() 235 Indexes->getInstructionIndex(MBB.back()).getRegSlot()); in computeRegMasks() 313 SlotIndex Begin = Indexes->getMBBStartIdx(MBB); in computeLiveInRegUnits() 353 static void extendSegmentsToUses(LiveRange &LR, const SlotIndexes &Indexes, in extendSegmentsToUses() argument 366 const MachineBasicBlock *MBB = Indexes.getMBBFromIndex(Idx.getPrevSlot()); in extendSegmentsToUses() 367 SlotIndex BlockStart = Indexes.getMBBStartIdx(MBB); in extendSegmentsToUses() 381 SlotIndex Stop = Indexes.getMBBEndIdx(Pred); in extendSegmentsToUses() [all …]
|
D | MachineBasicBlock.cpp | 233 void MachineBasicBlock::print(raw_ostream &OS, const SlotIndexes *Indexes) in print() 244 print(OS, MST, Indexes); in print() 248 const SlotIndexes *Indexes) const { in print() 256 if (Indexes) in print() 257 OS << Indexes->getMBBStartIdx(this) << '\t'; in print() 277 if (Indexes) OS << '\t'; in print() 288 if (Indexes) OS << '\t'; in print() 296 if (Indexes) { in print() 297 if (Indexes->hasIndex(I)) in print() 298 OS << Indexes->getInstructionIndex(I); in print() [all …]
|
D | StackColoring.cpp | 280 SlotIndexes *Indexes; member in __anon2ac785b00111::StackColoring 604 DEBUG(Indexes->getInstructionIndex(MI).print(dbgs())); in collectMarkers() 696 SlotIndex ThisIndex = Indexes->getInstructionIndex(MI); in calculateLiveIntervals() 712 Starts[pos] = Indexes->getMBBStartIdx(&MBB); in calculateLiveIntervals() 716 Finishes[pos] = Indexes->getMBBEndIdx(&MBB); in calculateLiveIntervals() 741 Finishes[i] = Indexes->getMBBEndIdx(&MBB); in calculateLiveIntervals() 756 SlotIndex NewStart = Indexes->getMBBStartIdx(&MBB); in calculateLiveIntervals() 757 SlotIndex NewFin = Indexes->getMBBEndIdx(&MBB); in calculateLiveIntervals() 893 SlotIndex Index = Indexes->getInstructionIndex(I); in remapInstructions() 952 SlotIndex Index = Indexes->getInstructionIndex(I); in removeInvalidSlotRanges() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | LiveRangeCalc.cpp | 57 Indexes = SI; in reset() 64 static void createDeadDef(SlotIndexes &Indexes, VNInfo::Allocator &Alloc, in createDeadDef() argument 68 Indexes.getInstructionIndex(MI).getRegSlot(MO.isEarlyClobber()); in createDeadDef() 75 assert(MRI && Indexes && "call reset() first"); in calculate() 100 createDeadDef(*Indexes, *Alloc, SR, MO); in calculate() 102 *Indexes, TRI); in calculate() 108 createDeadDef(*Indexes, *Alloc, LI, MO); in calculate() 120 SubLRC.reset(MF, Indexes, DomTree, Alloc); in calculate() 148 assert(MRI && Indexes && "call reset() first"); in createDeadDefs() 153 createDeadDef(*Indexes, *Alloc, LR, MO); in createDeadDefs() [all …]
|
D | VirtRegMap.cpp | 180 SlotIndexes *Indexes; member in __anoncc68eb400111::VirtRegRewriter 240 Indexes = &getAnalysis<SlotIndexes>(); in runOnMachineFunction() 287 for (SlotIndexes::MBBIndexIterator MBBI = Indexes->findMBBIndex(First); in addLiveInsForSubRanges() 288 MBBI != Indexes->MBBIndexEnd() && MBBI->first <= Last; ++MBBI) { in addLiveInsForSubRanges() 331 SlotIndexes::MBBIndexIterator I = Indexes->MBBIndexBegin(); in addMBBLiveIns() 333 I = Indexes->advanceMBBIndex(I, Seg.start); in addMBBLiveIns() 334 for (; I != Indexes->MBBIndexEnd() && I->first < Seg.end; ++I) { in addMBBLiveIns() 392 if (Indexes) in handleIdentityCopy() 393 Indexes->removeSingleMachineInstrFromMaps(MI); in handleIdentityCopy() 461 if (Indexes && BundledMI != FirstMI) in expandCopyBundle() [all …]
|
D | MachineBasicBlock.cpp | 275 void MachineBasicBlock::print(raw_ostream &OS, const SlotIndexes *Indexes, in print() argument 287 print(OS, MST, Indexes, IsStandalone); in print() 291 const SlotIndexes *Indexes, in print() argument 300 if (Indexes && PrintSlotIndexes) in print() 301 OS << Indexes->getMBBStartIdx(this) << '\t'; in print() 345 if (Indexes) OS << '\t'; in print() 358 if (Indexes) OS << '\t'; in print() 391 if (Indexes) OS << '\t'; in print() 411 if (Indexes && PrintSlotIndexes) { in print() 412 if (Indexes->hasIndex(MI)) in print() [all …]
|
D | LiveIntervals.cpp | 131 Indexes = &getAnalysis<SlotIndexes>(); in runOnMachineFunction() 179 MF->print(OS, Indexes); in printInstrs() 226 RegMaskSlots.push_back(Indexes->getMBBStartIdx(&MBB)); in computeRegMasks() 234 RegMaskSlots.push_back(Indexes->getInstructionIndex(MI).getRegSlot()); in computeRegMasks() 245 Indexes->getInstructionIndex(MBB.back()).getRegSlot()); in computeRegMasks() 330 SlotIndex Begin = Indexes->getMBBStartIdx(&MBB); in computeLiveInRegUnits() 394 const MachineBasicBlock *MBB = Indexes->getMBBFromIndex(Idx.getPrevSlot()); in extendSegmentsToUses() 395 SlotIndex BlockStart = Indexes->getMBBStartIdx(MBB); in extendSegmentsToUses() 409 SlotIndex Stop = Indexes->getMBBEndIdx(Pred); in extendSegmentsToUses() 425 SlotIndex Stop = Indexes->getMBBEndIdx(Pred); in extendSegmentsToUses() [all …]
|
/external/llvm/include/llvm/CodeGen/ |
D | LiveIntervalAnalysis.h | 58 SlotIndexes* Indexes; variable 188 return Indexes; in getSlotIndexes() 198 return !Indexes->hasIndex(Instr); in isNotInMIMap() 203 return Indexes->getInstructionIndex(Instr); in getInstructionIndex() 208 return Indexes->getInstructionFromIndex(index); in getInstructionFromIndex() 213 return Indexes->getMBBStartIdx(mbb); in getMBBStartIdx() 218 return Indexes->getMBBEndIdx(mbb); in getMBBEndIdx() 232 return Indexes->getMBBFromIndex(index); in getMBBFromIndex() 236 Indexes->insertMBBInMaps(MBB); in insertMBBInMaps() 243 return Indexes->insertMachineInstrInMaps(MI); in InsertMachineInstrInMaps() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/ |
D | LiveIntervals.h | 60 SlotIndexes* Indexes; variable 212 return Indexes; in getSlotIndexes() 222 return !Indexes->hasIndex(Instr); in isNotInMIMap() 227 return Indexes->getInstructionIndex(Instr); in getInstructionIndex() 232 return Indexes->getInstructionFromIndex(index); in getInstructionFromIndex() 237 return Indexes->getMBBStartIdx(mbb); in getMBBStartIdx() 242 return Indexes->getMBBEndIdx(mbb); in getMBBEndIdx() 256 return Indexes->getMBBFromIndex(index); in getMBBFromIndex() 260 Indexes->insertMBBInMaps(MBB); in insertMBBInMaps() 267 return Indexes->insertMachineInstrInMaps(MI); in InsertMachineInstrInMaps() [all …]
|
/external/llvm-project/llvm/include/llvm/CodeGen/ |
D | LiveIntervals.h | 60 SlotIndexes* Indexes; variable 212 return Indexes; in getSlotIndexes() 222 return !Indexes->hasIndex(Instr); in isNotInMIMap() 227 return Indexes->getInstructionIndex(Instr); in getInstructionIndex() 232 return Indexes->getInstructionFromIndex(index); in getInstructionFromIndex() 237 return Indexes->getMBBStartIdx(mbb); in getMBBStartIdx() 242 return Indexes->getMBBEndIdx(mbb); in getMBBEndIdx() 256 return Indexes->getMBBFromIndex(index); in getMBBFromIndex() 261 Indexes->insertMBBInMaps(MBB, InsertionPoint); 268 return Indexes->insertMachineInstrInMaps(MI); in InsertMachineInstrInMaps() [all …]
|
D | LiveRangeCalc.h | 49 SlotIndexes *Indexes = nullptr; variable 169 SlotIndexes *getIndexes() { return Indexes; } in getIndexes() 265 const SlotIndexes &Indexes);
|
/external/llvm-project/clang/test/CXX/temp/temp.decls/temp.variadic/ |
D | example-bind.cpp | 207 template<int I, int... Indexes, typename T, typename... Types> 208 struct make_indexes_impl<I, int_tuple<Indexes...>, T, Types...> { 209 typedef typename make_indexes_impl<I+1, int_tuple<Indexes..., I>, Types...>::type type; 212 template<int I, int... Indexes> 213 struct make_indexes_impl<I, int_tuple<Indexes...> > { 214 typedef int_tuple<Indexes...> type; 287 template<typename F, int... Indexes, typename... Args> 289 unwrap_and_forward(F& f, int_tuple<Indexes...>, const tuple<Args&...>& args) { in unwrap_and_forward() argument 290 return f(get<Indexes>(args)...); in unwrap_and_forward() 297 typedef typename make_indexes<Args...>::type Indexes; in mu() typedef [all …]
|
/external/clang/test/CXX/temp/temp.decls/temp.variadic/ |
D | example-bind.cpp | 207 template<int I, int... Indexes, typename T, typename... Types> 208 struct make_indexes_impl<I, int_tuple<Indexes...>, T, Types...> { 209 typedef typename make_indexes_impl<I+1, int_tuple<Indexes..., I>, Types...>::type type; 212 template<int I, int... Indexes> 213 struct make_indexes_impl<I, int_tuple<Indexes...> > { 214 typedef int_tuple<Indexes...> type; 287 template<typename F, int... Indexes, typename... Args> 289 unwrap_and_forward(F& f, int_tuple<Indexes...>, const tuple<Args&...>& args) { in unwrap_and_forward() argument 290 return f(get<Indexes>(args)...); in unwrap_and_forward() 297 typedef typename make_indexes<Args...>::type Indexes; in mu() typedef [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | GCNRegPressure.h | 204 std::vector<SlotIndex> Indexes; in getLiveRegMap() local 205 Indexes.reserve(std::distance(R.begin(), R.end())); in getLiveRegMap() 209 Indexes.push_back(After ? SI.getDeadSlot() : SI.getBaseIndex()); in getLiveRegMap() 211 std::sort(Indexes.begin(), Indexes.end()); in getLiveRegMap() 222 if (!LI.findIndexesLiveAt(Indexes, std::back_inserter(LiveIdxs))) in getLiveRegMap()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | ConstantsContext.h | 467 ArrayRef<unsigned> Indexes; 473 ArrayRef<unsigned> Indexes = None, 476 SubclassData(SubclassData), Ops(Ops), Indexes(Indexes), 483 Indexes(CE->hasIndices() ? CE->getIndices() : ArrayRef<unsigned>()), 491 Indexes(CE->hasIndices() ? CE->getIndices() : ArrayRef<unsigned>()), 502 Indexes == X.Indexes; 517 if (Indexes != (CE->hasIndices() ? CE->getIndices() : ArrayRef<unsigned>())) 525 hash_combine_range(Indexes.begin(), Indexes.end())); 551 return new InsertValueConstantExpr(Ops[0], Ops[1], Indexes, Ty); 553 return new ExtractValueConstantExpr(Ops[0], Indexes, Ty);
|
/external/llvm/lib/IR/ |
D | ConstantsContext.h | 445 ArrayRef<unsigned> Indexes; 451 ArrayRef<unsigned> Indexes = None, 454 SubclassData(SubclassData), Ops(Ops), Indexes(Indexes), 460 Indexes(CE->hasIndices() ? CE->getIndices() : ArrayRef<unsigned>()) {} 466 Indexes(CE->hasIndices() ? CE->getIndices() : ArrayRef<unsigned>()) { 476 Indexes == X.Indexes; 491 if (Indexes != (CE->hasIndices() ? CE->getIndices() : ArrayRef<unsigned>())) 499 hash_combine_range(Indexes.begin(), Indexes.end())); 522 return new InsertValueConstantExpr(Ops[0], Ops[1], Indexes, Ty); 524 return new ExtractValueConstantExpr(Ops[0], Indexes, Ty);
|
/external/llvm-project/llvm/lib/IR/ |
D | ConstantsContext.h | 515 ArrayRef<unsigned> Indexes; 541 ArrayRef<unsigned> Indexes = None, 545 SubclassData(SubclassData), Ops(Ops), Indexes(Indexes), 552 Indexes(getIndicesIfValid(CE)), ShuffleMask(getShuffleMaskIfValid(CE)), 560 Indexes(getIndicesIfValid(CE)), ShuffleMask(getShuffleMaskIfValid(CE)), 571 Indexes == X.Indexes && ShuffleMask == X.ShuffleMask && 587 if (Indexes != getIndicesIfValid(CE)) 600 hash_combine_range(Indexes.begin(), Indexes.end()), 627 return new InsertValueConstantExpr(Ops[0], Ops[1], Indexes, Ty); 629 return new ExtractValueConstantExpr(Ops[0], Indexes, Ty);
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | GCNRegPressure.h | 212 std::vector<SlotIndex> Indexes; in getLiveRegMap() local 213 Indexes.reserve(std::distance(R.begin(), R.end())); in getLiveRegMap() 217 Indexes.push_back(After ? SI.getDeadSlot() : SI.getBaseIndex()); in getLiveRegMap() 219 llvm::sort(Indexes); in getLiveRegMap() 230 if (!LI.findIndexesLiveAt(Indexes, std::back_inserter(LiveIdxs))) in getLiveRegMap()
|