Skip to content

Commit 95c93f4

Browse files
authored
Cleanups in AArch64 (#168025)
Forward declare a couple of classes for simplicity, remove some unused headers, clean up a comment. Tested with check-all.
1 parent 1fd9c02 commit 95c93f4

File tree

6 files changed

+3
-7
lines changed

6 files changed

+3
-7
lines changed

llvm/include/llvm/CodeGen/GlobalISel/GIMatchTableExecutorImpl.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,13 @@
2525
#include "llvm/CodeGen/MachineRegisterInfo.h"
2626
#include "llvm/CodeGen/RegisterBankInfo.h"
2727
#include "llvm/CodeGen/TargetInstrInfo.h"
28-
#include "llvm/CodeGen/TargetOpcodes.h"
2928
#include "llvm/CodeGen/TargetRegisterInfo.h"
3029
#include "llvm/IR/Constants.h"
3130
#include "llvm/IR/DataLayout.h"
3231
#include "llvm/IR/Type.h"
3332
#include "llvm/Support/CodeGenCoverage.h"
3433
#include "llvm/Support/Debug.h"
3534
#include "llvm/Support/ErrorHandling.h"
36-
#include "llvm/Support/LEB128.h"
37-
#include "llvm/Support/raw_ostream.h"
3835
#include <cassert>
3936
#include <cstddef>
4037
#include <cstdint>

llvm/lib/Target/AArch64/AArch64.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ namespace llvm {
2626
class AArch64RegisterBankInfo;
2727
class AArch64Subtarget;
2828
class AArch64TargetMachine;
29+
enum class CodeGenOptLevel;
2930
class FunctionPass;
3031
class InstructionSelector;
32+
class ModulePass;
3133

3234
FunctionPass *createAArch64DeadRegisterDefinitions();
3335
FunctionPass *createAArch64RedundantCopyEliminationPass();

llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
#include "llvm/Support/Debug.h"
4343
#include "llvm/Support/DebugCounter.h"
4444
#include "llvm/Support/ErrorHandling.h"
45-
#include "llvm/Support/raw_ostream.h"
4645
#include <cassert>
4746
#include <cstdint>
4847
#include <functional>

llvm/lib/Target/AArch64/AArch64MacroFusion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ namespace llvm {
2323
/// to AArch64TargetMachine::createMachineScheduler() to have an effect.
2424
std::unique_ptr<ScheduleDAGMutation> createAArch64MacroFusionDAGMutation();
2525

26-
} // llvm
26+
} // namespace llvm
2727

2828
#endif // LLVM_LIB_TARGET_AARCH64_AARCH64MACROFUSION_H

llvm/lib/Target/AArch64/AArch64TargetMachine.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
#include "llvm/Transforms/Utils/LowerIFunc.h"
5454
#include "llvm/Transforms/Vectorize/LoopIdiomVectorize.h"
5555
#include <memory>
56-
#include <optional>
5756

5857
using namespace llvm;
5958

llvm/lib/Target/X86/X86Subtarget.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#include "llvm/Support/CommandLine.h"
3333
#include "llvm/Support/Debug.h"
3434
#include "llvm/Support/ErrorHandling.h"
35-
#include "llvm/Support/raw_ostream.h"
3635
#include "llvm/Target/TargetMachine.h"
3736
#include "llvm/TargetParser/Triple.h"
3837

0 commit comments

Comments
 (0)