diff options
author | Christian Ulmann <christian.ulmann@nextsilicon.com> | 2023-04-24 06:06:45 +0000 |
---|---|---|
committer | Christian Ulmann <christian.ulmann@nextsilicon.com> | 2023-04-24 06:07:05 +0000 |
commit | f5425c128a30b32d39e0bc133e8e8dbad6066620 (patch) | |
tree | 263a11b042a3276679c5a3399dacd86cf9b9678c /bolt | |
parent | 9616fd1a7dbe215dd8e71cf086fc955388ec654d (diff) | |
download | llvm-f5425c128a30b32d39e0bc133e8e8dbad6066620.tar.gz |
[LoopInfo] Move generic LoopInfo into own files
This commit splits the generic part of `LoopInfo` into separate files.
These new `GenericLoopInfo` files are located in `llvm/Support` to be inline
with `GenericDomTree`.
Furthermore, this change ensures that MLIR's Bazel build does not have
to link against `LLVMAnalysis` just to use these template headers.
Depends on D148219
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D148235
Diffstat (limited to 'bolt')
-rw-r--r-- | bolt/include/bolt/Core/BinaryLoop.h | 2 | ||||
-rw-r--r-- | bolt/lib/Passes/TailDuplication.cpp | 1 | ||||
-rw-r--r-- | bolt/lib/Rewrite/RewriteInstance.cpp | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/bolt/include/bolt/Core/BinaryLoop.h b/bolt/include/bolt/Core/BinaryLoop.h index 2416097a7812..72dce77df8c1 100644 --- a/bolt/include/bolt/Core/BinaryLoop.h +++ b/bolt/include/bolt/Core/BinaryLoop.h @@ -15,7 +15,7 @@ #ifndef BOLT_CORE_BINARY_LOOP_H #define BOLT_CORE_BINARY_LOOP_H -#include "llvm/Analysis/LoopInfoImpl.h" +#include "llvm/Support/GenericLoopInfoImpl.h" namespace llvm { namespace bolt { diff --git a/bolt/lib/Passes/TailDuplication.cpp b/bolt/lib/Passes/TailDuplication.cpp index bbbf60abe587..c04efd759bf3 100644 --- a/bolt/lib/Passes/TailDuplication.cpp +++ b/bolt/lib/Passes/TailDuplication.cpp @@ -13,6 +13,7 @@ #include "bolt/Passes/TailDuplication.h" #include "llvm/ADT/DenseMap.h" #include "llvm/MC/MCRegisterInfo.h" +#include <queue> #include <numeric> diff --git a/bolt/lib/Rewrite/RewriteInstance.cpp b/bolt/lib/Rewrite/RewriteInstance.cpp index b06c4a64ba52..1c0c68c4cdfe 100644 --- a/bolt/lib/Rewrite/RewriteInstance.cpp +++ b/bolt/lib/Rewrite/RewriteInstance.cpp @@ -34,6 +34,7 @@ #include "llvm/DebugInfo/DWARF/DWARFContext.h" #include "llvm/DebugInfo/DWARF/DWARFDebugFrame.h" #include "llvm/ExecutionEngine/RuntimeDyld.h" +#include "llvm/IR/Function.h" #include "llvm/MC/MCAsmBackend.h" #include "llvm/MC/MCAsmInfo.h" #include "llvm/MC/MCAsmLayout.h" |