[llvm] c62eefb - [nfc][codegen] Move RegisterBank[Info].cpp under CodeGen
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 15 11:27:45 PST 2022
Author: Mircea Trofin
Date: 2022-02-15T11:27:15-08:00
New Revision: c62eefb8863e00c3314792343b4101f0c8f755fb
URL: https://github.com/llvm/llvm-project/commit/c62eefb8863e00c3314792343b4101f0c8f755fb
DIFF: https://github.com/llvm/llvm-project/commit/c62eefb8863e00c3314792343b4101f0c8f755fb.diff
LOG: [nfc][codegen] Move RegisterBank[Info].cpp under CodeGen
Layering-wise, it seems RegisterBank stuff fits under CodeGen, like
other target abstraction.
In particular, TargetSubtargetInfo has a getRegBankInfo member, but
using that object requires making sure GlobalISel is linked, which is
not always the case (e.g. llvm-jitlink doesn't).
Differential Revision: https://reviews.llvm.org/D119053
Added:
llvm/lib/CodeGen/RegisterBank.cpp
llvm/lib/CodeGen/RegisterBankInfo.cpp
Modified:
llvm/lib/CodeGen/CMakeLists.txt
llvm/lib/CodeGen/GlobalISel/CMakeLists.txt
Removed:
llvm/lib/CodeGen/GlobalISel/RegisterBank.cpp
llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
################################################################################
diff --git a/llvm/lib/CodeGen/CMakeLists.txt b/llvm/lib/CodeGen/CMakeLists.txt
index 11466c2fbf7ab..5f4d166d3e7e1 100644
--- a/llvm/lib/CodeGen/CMakeLists.txt
+++ b/llvm/lib/CodeGen/CMakeLists.txt
@@ -188,6 +188,8 @@ add_llvm_component_library(LLVMCodeGen
RegUsageInfoPropagate.cpp
ReplaceWithVeclib.cpp
ResetMachineFunctionPass.cpp
+ RegisterBank.cpp
+ RegisterBankInfo.cpp
SafeStack.cpp
SafeStackLayout.cpp
ScheduleDAG.cpp
diff --git a/llvm/lib/CodeGen/GlobalISel/CMakeLists.txt b/llvm/lib/CodeGen/GlobalISel/CMakeLists.txt
index b9cbf238f25e1..005de9bf125d3 100644
--- a/llvm/lib/CodeGen/GlobalISel/CMakeLists.txt
+++ b/llvm/lib/CodeGen/GlobalISel/CMakeLists.txt
@@ -22,8 +22,6 @@ add_llvm_component_library(LLVMGlobalISel
LostDebugLocObserver.cpp
MachineIRBuilder.cpp
RegBankSelect.cpp
- RegisterBank.cpp
- RegisterBankInfo.cpp
Utils.cpp
ADDITIONAL_HEADER_DIRS
diff --git a/llvm/lib/CodeGen/GlobalISel/RegisterBank.cpp b/llvm/lib/CodeGen/RegisterBank.cpp
similarity index 100%
rename from llvm/lib/CodeGen/GlobalISel/RegisterBank.cpp
rename to llvm/lib/CodeGen/RegisterBank.cpp
diff --git a/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp b/llvm/lib/CodeGen/RegisterBankInfo.cpp
similarity index 100%
rename from llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
rename to llvm/lib/CodeGen/RegisterBankInfo.cpp
More information about the llvm-commits
mailing list