diff options
author | Stephen Tozer <stephen.tozer@sony.com> | 2024-03-12 14:53:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-12 14:53:13 +0000 |
commit | 15f3f446c504d1bb85282fb3bd98db6eab69829d (patch) | |
tree | 2f4e67587df9d3911c179bcddfd9d45655cf6fcc /llvm/lib/Transforms/Utils/LoopRotationUtils.cpp | |
parent | 0aefd702f6c5346f216d29c704c4d0e4ec7397ac (diff) | |
download | llvm-15f3f446c504d1bb85282fb3bd98db6eab69829d.zip llvm-15f3f446c504d1bb85282fb3bd98db6eab69829d.tar.gz llvm-15f3f446c504d1bb85282fb3bd98db6eab69829d.tar.bz2 |
[RemoveDIs][NFC] Rename common interface functions for DPValues->DbgRecords (#84793)
As part of the effort to rename the DbgRecord classes, this patch
renames the widely-used functions that operate on DbgRecords but refer
to DbgValues or DPValues in their names to refer to DbgRecords instead;
all such functions are defined in one of `BasicBlock.h`,
`Instruction.h`, and `DebugProgramInstruction.h`.
This patch explicitly does not change the names of any comments or
variables, except for where they use the exact name of one of the
renamed functions. The reason for this is reviewability; this patch can
be trivially examined to determine that the only changes are direct
string substitutions and any results from clang-format responding to the
changed line lengths. Future patches will cover renaming variables and
comments, and then renaming the classes themselves.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopRotationUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopRotationUtils.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp b/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp index cec4781..8c6af7a 100644 --- a/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp +++ b/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp @@ -554,7 +554,7 @@ bool LoopRotate::rotateLoop(Loop *L, bool SimplifiedLatch) { DbgIntrinsics.insert(makeHash(DII)); // Until RemoveDIs supports dbg.declares in DPValue format, we'll need // to collect DPValues attached to any other debug intrinsics. - for (const DPValue &DPV : DPValue::filter(DII->getDbgValueRange())) + for (const DPValue &DPV : DPValue::filter(DII->getDbgRecordRange())) DbgIntrinsics.insert(makeHash(&DPV)); } else { break; @@ -564,7 +564,7 @@ bool LoopRotate::rotateLoop(Loop *L, bool SimplifiedLatch) { // Build DPValue hashes for DPValues attached to the terminator, which isn't // considered in the loop above. for (const DPValue &DPV : - DPValue::filter(OrigPreheader->getTerminator()->getDbgValueRange())) + DPValue::filter(OrigPreheader->getTerminator()->getDbgRecordRange())) DbgIntrinsics.insert(makeHash(&DPV)); // Remember the local noalias scope declarations in the header. After the @@ -599,7 +599,7 @@ bool LoopRotate::rotateLoop(Loop *L, bool SimplifiedLatch) { // (Stored as a range because it gives us a natural way of testing whether // there were DPValues on the next instruction before we hoisted things). iterator_range<DPValue::self_iterator> NextDbgInsts = - (I != E) ? I->getDbgValueRange() : DPMarker::getEmptyDPValueRange(); + (I != E) ? I->getDbgRecordRange() : DPMarker::getEmptyDbgRecordRange(); while (I != E) { Instruction *Inst = &*I++; @@ -636,7 +636,7 @@ bool LoopRotate::rotateLoop(Loop *L, bool SimplifiedLatch) { DPV.eraseFromParent(); } - NextDbgInsts = I->getDbgValueRange(); + NextDbgInsts = I->getDbgRecordRange(); Inst->moveBefore(LoopEntryBranch); @@ -655,7 +655,7 @@ bool LoopRotate::rotateLoop(Loop *L, bool SimplifiedLatch) { auto Range = C->cloneDebugInfoFrom(Inst, NextDbgInsts.begin()); RemapDPValueRange(M, Range, ValueMap, RF_NoModuleLevelChanges | RF_IgnoreMissingLocals); - NextDbgInsts = DPMarker::getEmptyDPValueRange(); + NextDbgInsts = DPMarker::getEmptyDbgRecordRange(); // Erase anything we've seen before. for (DPValue &DPV : make_early_inc_range(DPValue::filter(Range))) if (DbgIntrinsics.count(makeHash(&DPV))) |