llvm-project/llvm/lib
Reid Kleckner 05da2fe521 Sink all InitializePasses.h includes
This file lists every pass in LLVM, and is included by Pass.h, which is
very popular. Every time we add, remove, or rename a pass in LLVM, it
caused lots of recompilation.

I found this fact by looking at this table, which is sorted by the
number of times a file was changed over the last 100,000 git commits
multiplied by the number of object files that depend on it in the
current checkout:
  recompiles    touches affected_files  header
  342380        95      3604    llvm/include/llvm/ADT/STLExtras.h
  314730        234     1345    llvm/include/llvm/InitializePasses.h
  307036        118     2602    llvm/include/llvm/ADT/APInt.h
  213049        59      3611    llvm/include/llvm/Support/MathExtras.h
  170422        47      3626    llvm/include/llvm/Support/Compiler.h
  162225        45      3605    llvm/include/llvm/ADT/Optional.h
  158319        63      2513    llvm/include/llvm/ADT/Triple.h
  140322        39      3598    llvm/include/llvm/ADT/StringRef.h
  137647        59      2333    llvm/include/llvm/Support/Error.h
  131619        73      1803    llvm/include/llvm/Support/FileSystem.h

Before this change, touching InitializePasses.h would cause 1345 files
to recompile. After this change, touching it only causes 550 compiles in
an incremental rebuild.

Reviewers: bkramer, asbirlea, bollu, jdoerfert

Differential Revision: https://reviews.llvm.org/D70211
2019-11-13 16:34:37 -08:00
..
Analysis Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
AsmParser [IR] Redefine Freeze instruction 2019-11-12 10:49:00 +09:00
BinaryFormat [XCOFF][AIX] Differentiate usage of label symbol and csect symbol 2019-11-08 09:30:10 -05:00
Bitcode Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
Bitstream
CodeGen Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
DebugInfo DWARFDebugLoclists: Add an api to get the location lists of a DWARF unit 2019-11-13 16:26:16 +01:00
Demangle [demangle] NFC: get rid of NodeOrString 2019-11-04 12:17:12 -08:00
ExecutionEngine [JITLink] Refactor EH-frame handling to support eh-frames with existing relocs. 2019-11-06 14:30:26 -08:00
FuzzMutate [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
Fuzzer
IR Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
IRReader
LTO Fix compilation warning on the trailing whitespace. NFC. 2019-10-24 09:55:06 -04:00
LineEditor
Linker [IRMover] Set Address Space for moved global values 2019-11-05 16:32:48 -08:00
MC Forward declare Optional<T> in STLExtras.h 2019-11-13 16:34:00 -08:00
MCA [MCA] Fix a spelling mistake in a comment. NFC 2019-10-27 10:06:22 +00:00
Object Revert "[XCOFF] Fix link errors from explicit template instantiation" 2019-11-07 09:39:13 -08:00
ObjectYAML [yaml2obj/obj2yaml] - Add support for SHT_LLVM_LINKER_OPTIONS sections. 2019-11-12 09:55:20 +03:00
Option [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
Passes [NewPM] Add an SROA pass after loop unroll 2019-11-01 14:59:08 -07:00
ProfileData [profile] Add a mode to continuously sync counter updates to a file 2019-10-31 16:04:09 -07:00
Remarks Remarks - fix static analyzer warnings. NFCI. 2019-11-09 13:01:05 +00:00
Support Forward declare Optional<T> in STLExtras.h 2019-11-13 16:34:00 -08:00
TableGen TableGen - fix uninitialized variable warnings. NFCI. 2019-11-10 11:19:50 +00:00
Target Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
Testing
TextAPI Reland "[TextAPI] Introduce TBDv4" 2019-10-10 04:24:44 +00:00
ToolDrivers [llvm-lib] Detect duplicate input files 2019-10-02 06:41:52 +00:00
Transforms Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
WindowsManifest Fight a bit against global initializers. NFC. 2019-08-22 19:43:27 +00:00
XRay [llvm-xray] Add AArch64 to llvm-xray extract 2019-11-08 06:37:47 -08:00
CMakeLists.txt
LLVMBuild.txt