llvm-project/llvm/unittests/IR
serge-sans-paille e188aae406 Cleanup header dependencies in LLVMCore
Based on the output of include-what-you-use.

This is a big chunk of changes. It is very likely to break downstream code
unless they took a lot of care in avoiding hidden ehader dependencies, something
the LLVM codebase doesn't do that well :-/

I've tried to summarize the biggest change below:

- llvm/include/llvm-c/Core.h: no longer includes llvm-c/ErrorHandling.h
- llvm/IR/DIBuilder.h no longer includes llvm/IR/DebugInfo.h
- llvm/IR/IRBuilder.h no longer includes llvm/IR/IntrinsicInst.h
- llvm/IR/LLVMRemarkStreamer.h no longer includes llvm/Support/ToolOutputFile.h
- llvm/IR/LegacyPassManager.h no longer include llvm/Pass.h
- llvm/IR/Type.h no longer includes llvm/ADT/SmallPtrSet.h
- llvm/IR/PassManager.h no longer includes llvm/Pass.h nor llvm/Support/Debug.h

And the usual count of preprocessed lines:
$ clang++ -E  -Iinclude -I../llvm/include ../llvm/lib/IR/*.cpp -std=c++14 -fno-rtti -fno-exceptions | wc -l
before: 6400831
after:  6189948

200k lines less to process is no that bad ;-)

Discourse thread on the topic: https://llvm.discourse.group/t/include-what-you-use-include-cleanup

Differential Revision: https://reviews.llvm.org/D118652
2022-02-02 06:54:20 +01:00
..
AbstractCallSiteTest.cpp
AsmWriterTest.cpp
AttributesTest.cpp Use a sorted array instead of a map to store AttrBuilder string attributes 2022-01-10 14:49:53 +01:00
BasicBlockTest.cpp [RGT] Recode more unreachable assertions and tautologies 2021-03-19 09:17:22 -07:00
CFGBuilder.cpp
CFGBuilder.h
CMakeLists.txt
ConstantRangeTest.cpp [ConstantRangeTest] Add helper to enumerate APInts (NFC) 2021-11-12 18:18:51 +01:00
ConstantsTest.cpp [IR] Track users of comdats 2022-01-06 09:13:58 +01:00
DataLayoutTest.cpp [LangRef] Remove incorrect vector alignment rules 2021-12-14 14:35:40 +00:00
DebugInfoTest.cpp [debug-info] Add support for llvm.dbg.addr in DIBuilder. 2022-01-18 18:26:50 -08:00
DebugTypeODRUniquingTest.cpp [DebugInfo] Skip ODRUniquing for mismatched tags 2021-10-26 15:28:25 -07:00
DemandedBitsTest.cpp
DominatorTreeBatchUpdatesTest.cpp [DomTree][NFC] Clean up nits in DomTree code 2021-10-25 16:05:34 -04:00
DominatorTreeTest.cpp
FunctionTest.cpp
IRBuilderTest.cpp [DebugInfo] Do not replace existing nodes from DICompileUnit 2021-11-29 19:46:10 -08:00
InstructionsTest.cpp Use a sorted array instead of a map to store AttrBuilder string attributes 2022-01-10 14:49:53 +01:00
IntrinsicsTest.cpp
LegacyPassManagerTest.cpp
MDBuilderTest.cpp
ManglerTest.cpp [SystemZ][z/OS] Add GOFF Support to the DataLayout 2021-09-24 14:09:01 -04:00
MetadataTest.cpp [NFC] Use Optional<ProfileCount> to model invalid counts 2021-11-14 19:03:30 -08:00
ModuleTest.cpp
PassBuilderCallbacksTest.cpp Clean up uses of gmock Invoke in an attempt to make it work with GCC 6.2. NFCI. 2021-05-17 13:48:45 +02:00
PassManagerTest.cpp [NewPM] Hide pass manager debug logging behind -debug-pass-manager-verbose 2021-05-07 21:51:47 -07:00
PatternMatch.cpp [PatternMatch] create and use matcher for 'not' that excludes undef elements 2021-12-02 08:51:13 -05:00
TimePassesTest.cpp Cleanup header dependencies in LLVMCore 2022-02-02 06:54:20 +01:00
TypesTest.cpp [OpaquePtr] Forbid mixing typed and opaque pointers 2021-09-10 15:18:23 +02:00
UseTest.cpp
UserTest.cpp
VPIntrinsicTest.cpp [VP] llvm.vp.merge intrinsic and LangRef 2022-01-12 14:06:56 +01:00
ValueHandleTest.cpp Fixup Asserts+!AbiBreakingChecks fallout from db33f85c71 2021-01-07 14:18:19 -08:00
ValueMapTest.cpp Put back the trailing commas on TYPED_TEST_SUITE 2021-05-17 14:14:13 +02:00
ValueTest.cpp Reland [IR] Increase max alignment to 4GB 2021-10-06 13:29:23 -07:00
VectorTypesTest.cpp
VerifierTest.cpp [Verifier] Iteratively traverse all indirect users. 2021-12-23 23:20:12 +01:00