aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectOptimize.cpp
diff options
context:
space:
mode:
authorStephen Tozer <stephen.tozer@sony.com>2024-03-12 14:53:13 +0000
committerGitHub <noreply@github.com>2024-03-12 14:53:13 +0000
commit15f3f446c504d1bb85282fb3bd98db6eab69829d (patch)
tree2f4e67587df9d3911c179bcddfd9d45655cf6fcc /llvm/lib/CodeGen/SelectOptimize.cpp
parent0aefd702f6c5346f216d29c704c4d0e4ec7397ac (diff)
downloadllvm-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/CodeGen/SelectOptimize.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectOptimize.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectOptimize.cpp b/llvm/lib/CodeGen/SelectOptimize.cpp
index 5609f48..40898d2 100644
--- a/llvm/lib/CodeGen/SelectOptimize.cpp
+++ b/llvm/lib/CodeGen/SelectOptimize.cpp
@@ -648,10 +648,10 @@ void SelectOptimizeImpl::convertProfitableSIGroups(SelectGroups &ProfSIGroups) {
// Duplicate implementation for DPValues, the non-instruction debug-info
// record. Helper lambda for moving DPValues to the end block.
auto TransferDPValues = [&](Instruction &I) {
- for (auto &DPValue : llvm::make_early_inc_range(I.getDbgValueRange())) {
+ for (auto &DPValue : llvm::make_early_inc_range(I.getDbgRecordRange())) {
DPValue.removeFromParent();
- EndBlock->insertDPValueBefore(&DPValue,
- EndBlock->getFirstInsertionPt());
+ EndBlock->insertDbgRecordBefore(&DPValue,
+ EndBlock->getFirstInsertionPt());
}
};