[llvm] [RemoveDIs][NFC] Rename DPValues->DbgRecords in llvm-reduce's ReduceDPValues (PR #84506)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 8 08:08:04 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-debuginfo
Author: Stephen Tozer (SLTozer)
<details>
<summary>Changes</summary>
llvm-reduce currently has a file `ReduceDPValues`, which really is concerned with DbgRecords. Therefore, we rename the file and its function accordingly.
---
Full diff: https://github.com/llvm/llvm-project/pull/84506.diff
5 Files Affected:
- (modified) llvm/tools/llvm-reduce/CMakeLists.txt (+1-1)
- (modified) llvm/tools/llvm-reduce/DeltaManager.cpp (+1-1)
- (renamed) llvm/tools/llvm-reduce/deltas/ReduceDbgRecords.cpp (+4-4)
- (renamed) llvm/tools/llvm-reduce/deltas/ReduceDbgRecords.h (+3-3)
- (modified) llvm/utils/gn/secondary/llvm/tools/llvm-reduce/BUILD.gn (+1-1)
``````````diff
diff --git a/llvm/tools/llvm-reduce/CMakeLists.txt b/llvm/tools/llvm-reduce/CMakeLists.txt
index 2f1164b0478533..a4c605fcd2443c 100644
--- a/llvm/tools/llvm-reduce/CMakeLists.txt
+++ b/llvm/tools/llvm-reduce/CMakeLists.txt
@@ -31,7 +31,7 @@ add_llvm_tool(llvm-reduce
deltas/ReduceAttributes.cpp
deltas/ReduceBasicBlocks.cpp
deltas/ReduceDIMetadata.cpp
- deltas/ReduceDPValues.cpp
+ deltas/ReduceDbgRecords.cpp
deltas/ReduceFunctionBodies.cpp
deltas/ReduceFunctions.cpp
deltas/ReduceGlobalObjects.cpp
diff --git a/llvm/tools/llvm-reduce/DeltaManager.cpp b/llvm/tools/llvm-reduce/DeltaManager.cpp
index fa42920ee91296..67fbc2fdc7ad43 100644
--- a/llvm/tools/llvm-reduce/DeltaManager.cpp
+++ b/llvm/tools/llvm-reduce/DeltaManager.cpp
@@ -20,7 +20,7 @@
#include "deltas/ReduceAttributes.h"
#include "deltas/ReduceBasicBlocks.h"
#include "deltas/ReduceDIMetadata.h"
-#include "deltas/ReduceDPValues.h"
+#include "deltas/ReduceDbgRecords.h"
#include "deltas/ReduceFunctionBodies.h"
#include "deltas/ReduceFunctions.h"
#include "deltas/ReduceGlobalObjects.h"
diff --git a/llvm/tools/llvm-reduce/deltas/ReduceDPValues.cpp b/llvm/tools/llvm-reduce/deltas/ReduceDbgRecords.cpp
similarity index 83%
rename from llvm/tools/llvm-reduce/deltas/ReduceDPValues.cpp
rename to llvm/tools/llvm-reduce/deltas/ReduceDbgRecords.cpp
index f0d02a78ac6acf..94b12eb34cf6cd 100644
--- a/llvm/tools/llvm-reduce/deltas/ReduceDPValues.cpp
+++ b/llvm/tools/llvm-reduce/deltas/ReduceDbgRecords.cpp
@@ -1,4 +1,4 @@
-//===- ReduceDPValues.cpp - Specialized Delta Pass ------------------------===//
+//===- ReduceDbgRecords.cpp - Specialized Delta Pass ----------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -17,13 +17,13 @@
//
//===----------------------------------------------------------------------===//
-#include "ReduceDPValues.h"
+#include "ReduceDbgRecords.h"
#include "Utils.h"
#include "llvm/ADT/STLExtras.h"
using namespace llvm;
-static void extractDPValuesFromModule(Oracle &O, ReducerWorkItem &WorkItem) {
+static void extractDbgRecordsFromModule(Oracle &O, ReducerWorkItem &WorkItem) {
Module &M = WorkItem.getModule();
for (auto &F : M)
@@ -35,5 +35,5 @@ static void extractDPValuesFromModule(Oracle &O, ReducerWorkItem &WorkItem) {
}
void llvm::reduceDbgRecordDeltaPass(TestRunner &Test) {
- runDeltaPass(Test, extractDPValuesFromModule, "Reducing DbgRecords");
+ runDeltaPass(Test, extractDbgRecordsFromModule, "Reducing DbgRecords");
}
diff --git a/llvm/tools/llvm-reduce/deltas/ReduceDPValues.h b/llvm/tools/llvm-reduce/deltas/ReduceDbgRecords.h
similarity index 80%
rename from llvm/tools/llvm-reduce/deltas/ReduceDPValues.h
rename to llvm/tools/llvm-reduce/deltas/ReduceDbgRecords.h
index 1d3b8a35daa34b..6a8f62155ec3e2 100644
--- a/llvm/tools/llvm-reduce/deltas/ReduceDPValues.h
+++ b/llvm/tools/llvm-reduce/deltas/ReduceDbgRecords.h
@@ -1,4 +1,4 @@
-//===- ReduceDPValues.h -----------------------------------------*- C++ -*-===//
+//===- ReduceDbgRecords.h ---------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -11,8 +11,8 @@
//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_TOOLS_LLVM_REDUCE_DELTAS_REDUCEDPVALUES_H
-#define LLVM_TOOLS_LLVM_REDUCE_DELTAS_REDUCEDPVALUES_H
+#ifndef LLVM_TOOLS_LLVM_REDUCE_DELTAS_REDUCEDBGRECORDS_H
+#define LLVM_TOOLS_LLVM_REDUCE_DELTAS_REDUCEDBGRECORDS_H
#include "Delta.h"
#include "llvm/IR/BasicBlock.h"
diff --git a/llvm/utils/gn/secondary/llvm/tools/llvm-reduce/BUILD.gn b/llvm/utils/gn/secondary/llvm/tools/llvm-reduce/BUILD.gn
index 02a1db908af3f9..2f5d159dbb9d39 100644
--- a/llvm/utils/gn/secondary/llvm/tools/llvm-reduce/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/tools/llvm-reduce/BUILD.gn
@@ -22,7 +22,7 @@ executable("llvm-reduce") {
"deltas/ReduceAttributes.cpp",
"deltas/ReduceBasicBlocks.cpp",
"deltas/ReduceDIMetadata.cpp",
- "deltas/ReduceDPValues.cpp",
+ "deltas/ReduceDbgRecords.cpp",
"deltas/ReduceFunctionBodies.cpp",
"deltas/ReduceFunctions.cpp",
"deltas/ReduceGlobalObjects.cpp",
``````````
</details>
https://github.com/llvm/llvm-project/pull/84506
More information about the llvm-commits
mailing list