llvm-project/llvm/lib/MC
serge-sans-paille ef736a1c39 Cleanup LLVMMC headers
There's a few relevant forward declarations in there that may require downstream
adding explicit includes:

llvm/MC/MCContext.h no longer includes llvm/BinaryFormat/ELF.h, llvm/MC/MCSubtargetInfo.h, llvm/MC/MCTargetOptions.h
llvm/MC/MCObjectStreamer.h no longer include llvm/MC/MCAssembler.h
llvm/MC/MCAssembler.h no longer includes llvm/MC/MCFixup.h, llvm/MC/MCFragment.h

Counting preprocessed lines required to rebuild llvm-project on my setup:
before: 1052436830
after:  1049293745

Which is significant and backs up the change in addition to the usual benefits of
decreasing coupling between headers and compilation units.

Discourse thread: https://discourse.llvm.org/t/include-what-you-use-include-cleanup
Differential Revision: https://reviews.llvm.org/D119244
2022-02-09 11:09:17 +01:00
..
MCDisassembler Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
MCParser Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
CMakeLists.txt Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
ConstantPools.cpp [MC] Add MCSubtargetInfo to MCAlignFragment 2021-09-07 15:46:19 +01:00
ELFObjectWriter.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCAsmBackend.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCAsmInfo.cpp [AIX] Use AsmParser to do inline asm parsing 2021-07-02 16:12:21 +00:00
MCAsmInfoCOFF.cpp
MCAsmInfoDarwin.cpp
MCAsmInfoELF.cpp
MCAsmInfoGOFF.cpp [SystemZ][z/OS] Introduce the GOFFMCAsmInfo Interface for z/OS 2021-09-24 16:25:41 -04:00
MCAsmInfoWasm.cpp
MCAsmInfoXCOFF.cpp [AIX] Emit version string in .file directive 2021-07-12 17:03:52 +00:00
MCAsmMacro.cpp
MCAsmStreamer.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCAssembler.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCCodeEmitter.cpp
MCCodeView.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCContext.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCDwarf.cpp Revert "Rename llvm::array_lengthof into llvm::size to match std::size from C++17" 2022-01-26 16:55:53 +01:00
MCELFObjectTargetWriter.cpp
MCELFStreamer.cpp [LLVM][NFC]Inclusive language: remove occurances of sanity check/test from llvm 2021-11-24 17:29:55 -05:00
MCExpr.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCFragment.cpp [MC] Recursively calculate symbol offset 2021-10-20 14:29:43 -04:00
MCInst.cpp [MC] Add the ability to pass MCRegisterInfo to dump_pretty. 2021-05-14 18:21:57 -07:00
MCInstPrinter.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCInstrAnalysis.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCInstrDesc.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCInstrInfo.cpp
MCLabel.cpp
MCLinkerOptimizationHint.cpp
MCMachOStreamer.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCMachObjectTargetWriter.cpp
MCNullStreamer.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCObjectFileInfo.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCObjectStreamer.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCObjectWriter.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCPseudoProbe.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCRegisterInfo.cpp
MCSchedule.cpp
MCSection.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCSectionCOFF.cpp
MCSectionELF.cpp
MCSectionMachO.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCSectionWasm.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCSectionXCOFF.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCStreamer.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCSubtargetInfo.cpp AMDGPU: Add target id and code object v4 support 2021-03-24 11:54:05 -04:00
MCSymbol.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCSymbolELF.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCSymbolXCOFF.cpp
MCTargetOptions.cpp [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
MCTargetOptionsCommandFlags.cpp [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
MCValue.cpp
MCWasmObjectTargetWriter.cpp
MCWasmStreamer.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCWin64EH.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCWinCOFFStreamer.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCWinEH.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCXCOFFObjectTargetWriter.cpp
MCXCOFFStreamer.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MachObjectWriter.cpp MC: Use SmallVector::clear() instead of set_size(0) 2022-01-13 10:34:14 -08:00
StringTableBuilder.cpp [ADT] Move DenseMapInfo for ArrayRef/StringRef into respective headers (NFC) 2021-06-03 18:34:36 +02:00
SubtargetFeature.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
TargetRegistry.cpp [llvm] Use range-based for loops (NFC) 2021-12-09 09:37:29 -08:00
WasmObjectWriter.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
WinCOFFObjectWriter.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
XCOFFObjectWriter.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00