[llvm] [NFC][InstrProf] Move `InstrProfiling` to the .cpp file (PR #75018)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 11 13:27:46 PST 2023
================
@@ -13,21 +13,14 @@
#ifndef LLVM_TRANSFORMS_INSTRUMENTATION_INSTRPROFILING_H
#define LLVM_TRANSFORMS_INSTRUMENTATION_INSTRPROFILING_H
-#include "llvm/ADT/DenseMap.h"
-#include "llvm/ADT/StringRef.h"
-#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/PassManager.h"
#include "llvm/ProfileData/InstrProf.h"
----------------
kazutakahirata wrote:
If `InstrProfiling.h` is becoming this empty, could we just keep `#include "llvm/IR/PassManager.h"` for `PreservedAnalyses` while removing all the other remaining `#include`s? You can add a couple of forward declarations:
```
class Module;
class ModuleAnalysisManager;
```
https://github.com/llvm/llvm-project/pull/75018
More information about the llvm-commits
mailing list