[llvm] fa5f77b - [CodeGen] Include llvm/CodeGen/DFAPacketizer.h
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 18 15:35:35 PST 2022
Author: Kazu Hirata
Date: 2022-12-18T15:35:29-08:00
New Revision: fa5f77b162465408e9471edb15779d6cc99e1d19
URL: https://github.com/llvm/llvm-project/commit/fa5f77b162465408e9471edb15779d6cc99e1d19
DIFF: https://github.com/llvm/llvm-project/commit/fa5f77b162465408e9471edb15779d6cc99e1d19.diff
LOG: [CodeGen] Include llvm/CodeGen/DFAPacketizer.h
This patch teaches MachinePipeliner.h to include
DFAPacketizer.h so that the header file is self contained.
Without this patch, a C++ source file that only includes
MachinePipeliner.h does not compile because the forward declaration of
DFAPacketizer is not enough for:
llvm::SmallVector<std::unique_ptr<DFAPacketizer>> DFAResources;
Added:
Modified:
llvm/include/llvm/CodeGen/MachinePipeliner.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/MachinePipeliner.h b/llvm/include/llvm/CodeGen/MachinePipeliner.h
index 24a248f8e3d5..c0d05ae73c5a 100644
--- a/llvm/include/llvm/CodeGen/MachinePipeliner.h
+++ b/llvm/include/llvm/CodeGen/MachinePipeliner.h
@@ -41,6 +41,7 @@
#define LLVM_CODEGEN_MACHINEPIPELINER_H
#include "llvm/ADT/SetVector.h"
+#include "llvm/CodeGen/DFAPacketizer.h"
#include "llvm/CodeGen/MachineDominators.h"
#include "llvm/CodeGen/MachineOptimizationRemarkEmitter.h"
#include "llvm/CodeGen/RegisterClassInfo.h"
More information about the llvm-commits
mailing list