Commit b20c203
committed
[Analysis] Move TargetLibraryInfo data to TableGen
The collection of library function names in TargetLibraryInfo faces
similar challenges as RuntimeLibCalls in the IR component. The number
of function names is large, there are numerous customizations based
on the triple (including alternate names), and there is a lot of
replicated data in the signature table.
The ultimate goal would be to capture all lbrary function related
information in a .td file. This PR brings the current .def file to
TableGen, almost as a 1:1 replacement. However, there are some
improvements which are not possible in the current implementation:
- the function names are now stored as a long string together with
an offset table.
- the table of signatures is now deduplicated, using an offset table
for access.
The size of the object file decreases about 34kB with these changes.
The hash table of all function names is still constructed dynamically.
A static table like for RuntimeLibCalls is the next logical step.
The main motivation for this change is that I have to add a large
number of custom names for z/OS (like in RuntimeLibCalls.td), and
the current infrastructur does not support this very well.1 parent 22f29d6 commit b20c203
File tree
19 files changed
+1963
-2777
lines changed- llvm
- include/llvm
- Analysis
- TableGen
- lib
- Analysis
- LTO
- TableGen
- Transforms
- Instrumentation
- Utils
- test/TableGen
- tools/llvm-tli-checker
- unittests/Analysis
- utils/TableGen/Basic
19 files changed
+1963
-2777
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 73 | + | |
| 74 | + | |
79 | 75 | | |
80 | 76 | | |
81 | 77 | | |
| |||
88 | 84 | | |
89 | 85 | | |
90 | 86 | | |
91 | | - | |
| 87 | + | |
| 88 | + | |
92 | 89 | | |
93 | 90 | | |
94 | 91 | | |
| |||
177 | 174 | | |
178 | 175 | | |
179 | 176 | | |
180 | | - | |
| 177 | + | |
181 | 178 | | |
182 | 179 | | |
183 | 180 | | |
| |||
455 | 452 | | |
456 | 453 | | |
457 | 454 | | |
458 | | - | |
| 455 | + | |
| 456 | + | |
459 | 457 | | |
460 | 458 | | |
461 | 459 | | |
462 | 460 | | |
463 | 461 | | |
464 | 462 | | |
465 | 463 | | |
466 | | - | |
| 464 | + | |
| 465 | + | |
467 | 466 | | |
468 | 467 | | |
469 | 468 | | |
| |||
0 commit comments