Skip to content

[RemoveDIs][NFC] Rename DPValues->DbgRecords in llvm-reduce's ReduceDPValues #84506

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion llvm/tools/llvm-reduce/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion llvm/tools/llvm-reduce/DeltaManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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)
Expand All @@ -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");
}
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion llvm/utils/gn/secondary/llvm/tools/llvm-reduce/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down