Skip to content

Commit

Permalink
[CodeGen] Include llvm/CodeGen/DFAPacketizer.h
Browse files Browse the repository at this point in the history
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;
  • Loading branch information
kazutakahirata committed Dec 18, 2022
1 parent 844c8fc commit fa5f77b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/include/llvm/CodeGen/MachinePipeliner.h
Expand Up @@ -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"
Expand Down

0 comments on commit fa5f77b

Please sign in to comment.