Commit f09cf34
committed
[Support] Move TargetParsers to new component
This is a fairly large changeset, but it can be broken into a few
pieces:
- `llvm/Support/*TargetParser*` are all moved from the LLVM Support
component into a new LLVM Component called "TargetParser". This
potentially enables using tablegen to maintain this information, as
is shown in https://reviews.llvm.org/D137517. This cannot currently
be done, as llvm-tblgen relies on LLVM's Support component.
- This also moves two files from Support which use and depend on
information in the TargetParser:
- `llvm/Support/Host.{h,cpp}` which contains functions for inspecting
the current Host machine for info about it, primarily to support
getting the host triple, but also for `-mcpu=native` support in e.g.
Clang. This is fairly tightly intertwined with the information in
`X86TargetParser.h`, so keeping them in the same component makes
sense.
- `llvm/ADT/Triple.h` and `llvm/Support/Triple.cpp`, which contains
the target triple parser and representation. This is very intertwined
with the Arm target parser, because the arm architecture version
appears in canonical triples on arm platforms.
- I moved the relevant unittests to their own directory.
And so, we end up with a single component that has all the information
about the following, which to me seems like a unified component:
- Triples that LLVM Knows about
- Architecture names and CPUs that LLVM knows about
- CPU detection logic for LLVM
Given this, I have also moved `RISCVISAInfo.h` into this component, as
it seems to me to be part of that same set of functionality.
If you get link errors in your components after this patch, you likely
need to add TargetParser into LLVM_LINK_COMPONENTS in CMake.
Differential Revision: https://reviews.llvm.org/D1378381 parent 57aac3d commit f09cf34
File tree
295 files changed
+3156
-2704
lines changed- bolt/lib
- Core
- Passes
- Rewrite
- clang-tools-extra
- clang-tidy/portability
- clangd
- modularize
- clang
- docs/tools
- lib
- ARCMigrate
- AST
- Basic
- CodeGen
- CrossTU
- Driver
- ExtractAPI
- Frontend
- Interpreter
- Lex
- Parse
- Sema
- Serialization
- StaticAnalyzer/Checkers
- Tooling
- DependencyScanning
- tools
- clang-fuzzer/handle-llvm
- clang-import-test
- clang-linker-wrapper
- clang-offload-bundler
- driver
- libclang
- unittests
- ASTMatchers
- AST
- CodeGen
- Driver
- Frontend
- Interpreter
- Tooling
- flang
- lib
- Frontend
- Optimizer
- CodeGen
- Support
- tools
- bbc
- flang-driver
- unittests
- Frontend
- Optimizer
- libc/benchmarks
- lldb
- source
- Core
- Host/macosx/objcxx
- Plugins
- ABI
- AArch64
- ARC
- ARM
- Hexagon
- Mips
- PowerPC
- SystemZ
- X86
- Disassembler/LLVMC
- DynamicLoader
- MacOSX-DYLD
- Windows-DYLD
- ExpressionParser/Clang
- ObjectFile
- Breakpad
- PECOFF
- Platform
- FreeBSD
- MacOSX
- Process
- Linux
- Utility
- gdb-remote
- SymbolFile/NativePDB
- Utility
- test/Shell/Commands
- tools/intel-features/intel-mpx
- unittests
- Host
- Utility
- utils/lit-cpuid
- lld
- COFF
- Common
- ELF
- MachO
- MinGW
- tools/lld
- wasm
- llvm
- examples/Kaleidoscope/Chapter9
- include/llvm
- ADT
- Support
- TargetParser
- lib
- Analysis
- BinaryFormat
- Bitcode
- Reader
- Writer
- CodeGen
- AsmPrinter
- SelectionDAG
- DWARFLinker
- DebugInfo
- DWARF
- GSYM
- LogicalView
- Symbolize
- ExecutionEngine
- JITLink
- Orc
- TargetProcess
- RuntimeDyld
- Frontend/OpenMP
- FuzzMutate
- IR
- InterfaceStub
- LTO
- Linker
- MC
- MCDisassembler
- MCParser
- ObjectYAML
- Object
- ProfileData
- Coverage
- Support
- TargetParser
- Unix
- Windows
- Target
- AArch64
- AsmParser
- MCTargetDesc
- AMDGPU
- AsmParser
- MCA
- MCTargetDesc
- Utils
- ARM
- AsmParser
- MCTargetDesc
- AVR/MCTargetDesc
- BPF
- MCTargetDesc
- CSKY
- AsmParser
- MCTargetDesc
- DirectX
- DXILWriter
- MCTargetDesc
- TargetInfo
- Hexagon
- Lanai
- MCTargetDesc
- LoongArch/MCTargetDesc
- M68k/MCTargetDesc
- Mips
- AsmParser
- MCTargetDesc
- NVPTX
- MCTargetDesc
- PowerPC
- MCTargetDesc
- RISCV
- AsmParser
- MCTargetDesc
- SPIRV
- MCTargetDesc
- Sparc
- AsmParser
- MCTargetDesc
- SystemZ
- VE/MCTargetDesc
- WebAssembly
- AsmParser
- MCTargetDesc
- X86
- MCA
- MCTargetDesc
- XCore
- TextAPI
- ToolDrivers
- llvm-dlltool
- llvm-lib
- Transforms
- CFGuard
- IPO
- Instrumentation
- Utils
- WindowsDriver
- XRay
- tools
- bugpoint
- dsymutil
- gold
- llc
- lli
- llvm-ar
- llvm-cfi-verify/lib
- llvm-config
- llvm-cov
- llvm-cxxfilt
- llvm-dwarfdump
- llvm-dwarfutil
- llvm-dwp
- llvm-exegesis
- lib
- Mips
- PowerPC
- X86
- llvm-gsymutil
- llvm-ifs
- llvm-isel-fuzzer
- llvm-jitlink
- llvm-jitlistener
- llvm-libtool-darwin
- llvm-lipo
- llvm-lto2
- llvm-lto
- llvm-mc-assemble-fuzzer
- llvm-mc-disassemble-fuzzer
- llvm-mca
- llvm-mc
- llvm-ml
- llvm-nm
- llvm-objcopy
- llvm-objdump
- llvm-opt-fuzzer
- llvm-profgen
- llvm-rc
- llvm-readobj
- llvm-reduce
- llvm-rtdyld
- llvm-size
- llvm-tli-checker
- opt
- sancov
- unittests
- ADT
- Analysis
- BinaryFormat
- CodeGen
- GlobalISel
- DebugInfo
- DWARF
- LogicalView
- ExecutionEngine
- JITLink
- MCJIT
- Orc
- Frontend
- MC
- AMDGPU
- SystemZ
- X86
- MIR
- MI
- Object
- Support
- TargetParser
- Target
- AArch64
- AMDGPU
- ARM
- PowerPC
- WebAssembly
- X86
- Transforms
- IPO
- Vectorize
- tools
- llvm-cfi-verify
- llvm-exegesis
- llvm-mca
- mlir/lib
- ExecutionEngine
- Target/LLVMIR
- polly/lib
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
295 files changed
+3156
-2704
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5484 | 5484 | | |
5485 | 5485 | | |
5486 | 5486 | | |
5487 | | - | |
| 5487 | + | |
5488 | 5488 | | |
5489 | 5489 | | |
5490 | 5490 | | |
| |||
5511 | 5511 | | |
5512 | 5512 | | |
5513 | 5513 | | |
5514 | | - | |
| 5514 | + | |
5515 | 5515 | | |
5516 | 5516 | | |
5517 | 5517 | | |
| |||
5523 | 5523 | | |
5524 | 5524 | | |
5525 | 5525 | | |
5526 | | - | |
| 5526 | + | |
5527 | 5527 | | |
5528 | 5528 | | |
5529 | 5529 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
0 commit comments