Commit Graph

2340 Commits

Author SHA1 Message Date
Keith Smiley 9e3552523e [lld-macho] Remove old macho darwin lld
During the llvm round table it was generally agreed that the newer macho
lld implementation is feature complete enough to replace the old
implementation entirely. This will reduce confusion for new users who
aren't aware of the history.

Differential Revision: https://reviews.llvm.org/D114842
2021-12-02 11:04:49 -08:00
LLVM GN Syncbot a692c5492a [gn build] Port 6a9487df73 2021-12-02 13:40:22 +00:00
LLVM GN Syncbot ab112c2964 [gn build] Port 170783f991 2021-12-02 00:48:10 +00:00
LLVM GN Syncbot 1b7150c8f8 [gn build] Port 7cc2493daa 2021-12-01 23:31:02 +00:00
LLVM GN Syncbot bab21a4628 [gn build] Port a0efb17500 2021-12-01 20:41:34 +00:00
Nico Weber 9a3b357e2b [gn build] (manually) port 94d5f2afbe 2021-12-01 08:53:49 -05:00
LLVM GN Syncbot dee85a4ffa [gn build] Port f5f28d5b0c 2021-12-01 12:55:06 +00:00
LLVM GN Syncbot 299cec3c51 [gn build] Port 7cca33b40f 2021-11-30 18:46:43 +00:00
Nico Weber ee0c75eba3 [gn build] (semimanually) port 25a7e4b9f7 2021-11-30 08:04:15 -05:00
LLVM GN Syncbot a12192c755 [gn build] Port 3b72448084 2021-11-24 15:48:50 +00:00
LLVM GN Syncbot 44bb69b1e0 [gn build] Port 1392b654ff 2021-11-23 20:11:07 +00:00
LLVM GN Syncbot 791e71a799 [gn build] Port 884b6dd311 2021-11-23 19:09:46 +00:00
LLVM GN Syncbot 65b82b928e [gn build] Port 8e2fd879e6 2021-11-22 20:49:36 +00:00
LLVM GN Syncbot 22de6e3706 [gn build] Port d8380ad977 2021-11-22 18:24:45 +00:00
LLVM GN Syncbot 71e1f0caf4 [gn build] Port 344cef6695 2021-11-22 18:24:44 +00:00
LLVM GN Syncbot 0a413506a2 [gn build] Port 1dc62f2653 2021-11-22 00:29:19 +00:00
Vitaly Buka 6bf71be9f9 [NFC][sanitizer] Move inline implementation of StackStore into cpp 2021-11-18 18:38:06 -08:00
Vitaly Buka 930ccf0191 [NFC][sanitizer] Rename persistent_allocator to stack_store 2021-11-18 18:36:58 -08:00
LLVM GN Syncbot c723569512 [gn build] Port 92832e4889 2021-11-18 04:03:38 +00:00
LLVM GN Syncbot d61840c168 [gn build] Port 49682f14bf 2021-11-18 03:43:59 +00:00
LLVM GN Syncbot 972219195e [gn build] Port 24d1673c8b 2021-11-18 03:23:58 +00:00
Vitaly Buka c26dbc4ab4 [sanitizer] Fix DenseMap for compiler-rt
Depends on D114047.

Differential Revision: https://reviews.llvm.org/D114048
2021-11-17 19:10:20 -08:00
Arthur Eubanks e1ef14069e [gn build] Add missed comma 2021-11-17 09:07:09 -08:00
Quinn Pham 76313f8ec9 [NFC][gn build] Inclusive language: replace master with main in sync_source_lists_from_cmake.py
[NFC] As part of using inclusive language within the llvm project and to
match the renamed master branch, this patch replaces master with main in
sync_source_lists_from_cmake.py.

Reviewed By: thakis

Differential Revision: https://reviews.llvm.org/D113926
2021-11-17 09:32:15 -06:00
Mirko Brkusanin db6bc2ab51 [AMDGPU][GlobalISel] Fold G_FNEG above when users cannot fold mods
If possible fold fneg into instruction above if users cannot fold mods and we
know it will decrease instruction count.
Follows same logic as SDAG combiner in choosing opportunities to combine.

Differential Revision: https://reviews.llvm.org/D112827
2021-11-17 14:25:13 +01:00
Nico Weber bbccf49922 Revert "[gn build] (manually) port 1ee32055ea (benchmark move)"
1ee32055ea was reverted in 67de95b8c9.

This reverts commit a8e8e2d5a2
and follow-up a0dc6001df
2021-11-16 20:07:17 -05:00
Nico Weber a0dc6001df [gn build] (manually) port 1ee32055ea more (benchmark move)
The new benchmark dep apparently has more source files than the old one.
2021-11-16 19:00:25 -05:00
Nico Weber a8e8e2d5a2 [gn build] (manually) port 1ee32055ea (benchmark move) 2021-11-16 18:33:32 -05:00
LLVM GN Syncbot e993c6e8f8 [gn build] Port 5baa4ee30b 2021-11-16 14:52:00 +00:00
LLVM GN Syncbot b85f97bc00 [gn build] Port 2e6ae1d3f2 2021-11-16 06:15:54 +00:00
LLVM GN Syncbot 582352d488 [gn build] Port dc84770d55 2021-11-16 05:11:06 +00:00
Balazs Benics 0b9d3a6e53 [analyzer][NFC] Separate CallDescription from CallEvent
`CallDescriptions` deserve its own translation unit.
This patch simply moves the corresponding parts.
Also includes the `CallDescription.h` where it's necessary.

Reviewed By: martong, xazax.hun, Szelethus

Differential Revision: https://reviews.llvm.org/D113587
2021-11-15 19:10:46 +01:00
LLVM GN Syncbot 5f5f3ac5a3 [gn build] Port 69be352a19 2021-11-14 22:53:50 +00:00
LLVM GN Syncbot ed2b77b068 [gn build] Port f55ba3525e 2021-11-14 08:26:05 +00:00
LLVM GN Syncbot 6a40854ce5 [gn build] Port e1933a0488 2021-11-13 21:44:00 +00:00
Nico Weber a144869384 [gn build] (semi-manually) port cb0e14ce6d 2021-11-12 20:09:01 -05:00
Arthur Eubanks 463ee15e33 [gn build] Fix Android compiler-rt targets
If a sysroot was specified, it would take precedence over the Android
NDK sysroot since it would appear after in the command line.

Also only build runtimes for enabled target arches. Many places have
copied this around so create and use supported_android_toolchains.

Reviewed By: pcc

Differential Revision: https://reviews.llvm.org/D113606
2021-11-11 18:41:18 -08:00
LLVM GN Syncbot 72e947765a [gn build] Port c15f930e96 2021-11-12 02:22:04 +00:00
Nico Weber 96d027b503 [gn build] (manually) port 57c22ade867 2021-11-11 13:07:27 -05:00
LLVM GN Syncbot c98fe04663 [gn build] Port a35efc4dcb 2021-11-10 09:27:55 +00:00
LLVM GN Syncbot a8b2277069 [gn build] Port 737c4a2673 2021-11-09 20:11:28 +00:00
LLVM GN Syncbot a5d6dcbbb2 [gn build] Port 5338629333 2021-11-09 18:38:40 +00:00
Arthur Eubanks 29a8b1fe18 [gn build] Port 299aa4dfa1 2021-11-09 10:21:17 -08:00
Arthur Eubanks 87003cd80d [gn build] Port 22a1aa5a43 2021-11-09 10:21:17 -08:00
LLVM GN Syncbot eaa8533b33 [gn build] Port ef717f3852 2021-11-09 07:11:34 +00:00
LLVM GN Syncbot 4edbc2736e [gn build] Port 81a7cad2ff 2021-11-09 06:54:23 +00:00
LLVM GN Syncbot 3eda87732f [gn build] Port 6cad45d5c6 2021-11-09 04:15:33 +00:00
Nico Weber f006564f42 [gn build] (manually) port 38be8f4057 (llvm-tli-checker) 2021-11-08 23:15:03 -05:00
LLVM GN Syncbot a9e83f27dd [gn build] Port 16b07c866a 2021-11-08 15:59:52 +00:00
Nico Weber c68183b81e [gn build] Use `=` for of -fdebug-compilation-dir
-f flags usually use the `=` form. -fdebug-compilation-dir= has been
around for a few months now (since 0c2bb6b446, both LLVM 12.0
and 13.0 have it), so using it shouldn't be a big problem -- especially
since use_relative_paths_in_debug_info is opt-in anyways.
2021-11-05 12:43:20 -04:00
Nico Weber cf838ebfa5 [gn build] Reformat all files
Ran `git ls-files '*.gn' '*.gni' | xargs llvm/utils/gn/gn.py format`.
No behavior change.
2021-11-05 10:51:04 -04:00
Nico Weber 565cbc2ca2 [gn build] Use build-machine-independent paths in coverage information
This is possible after D106314 / 8773822c57.

Makes the required prepare-code-coverage-artifact.py invocation a bit longer,
but that seems like a good tradeoff.

Differential Revision: https://reviews.llvm.org/D113282
2021-11-05 10:47:49 -04:00
LLVM GN Syncbot 6cd309bd02 [gn build] Port 7a98761d74 2021-11-05 13:54:25 +00:00
Quinn Pham c71fbdd87b [NFC] Inclusive language: Remove instances of master in URLs
[NFC] This patch fixes URLs containing "master". Old URLs were either broken or
redirecting to the new URL.

Reviewed By: #libc, ldionne, mehdi_amini

Differential Revision: https://reviews.llvm.org/D113186
2021-11-05 08:48:41 -05:00
Nico Weber a160aba95f [gn build] (manually) port df0ba47c36 2021-11-05 09:17:59 -04:00
Arthur Eubanks f2e807797e Revert "[gn build] Manually port 6fd2db04"
This reverts commit 43390d38f0.

Corresponding commit was reverted.
2021-11-02 16:51:56 -07:00
Arthur Eubanks 80ba72b07b [llvm-reduce] Reduce some GlobalObject properties
Specifically, the section and the alignment.

Reviewed By: hans

Differential Revision: https://reviews.llvm.org/D112884
2021-11-02 08:47:32 -07:00
Arthur Eubanks 606b5fffe3 [gn build] Add missing llvm-reduce dependency 2021-11-02 08:46:46 -07:00
Arthur Eubanks 43390d38f0 [gn build] Manually port 6fd2db04 2021-11-02 08:42:57 -07:00
LLVM GN Syncbot 95a6d3e831 [gn build] Port 9b5c9c469d 2021-11-02 13:45:10 +00:00
LLVM GN Syncbot ca791f8c9a [gn build] Port fd41738e2c 2021-11-02 09:21:12 +00:00
LLVM GN Syncbot c26649688e [gn build] Port aee7f3384b 2021-11-02 08:41:58 +00:00
LLVM GN Syncbot 0658fb4016 [gn build] Port bc2773cb1b 2021-11-02 08:28:36 +00:00
Nico Weber 5d64bf00ac [gn build] (manually) port d736002e90 2021-10-28 08:48:54 -04:00
Nico Weber e545e11a9e [gn build] Use LLD as host linker by default on macOS if clang_base_path is set
lld/mac should be stable enough to use it as host linker. I've been
using `use_lld=true` in my local args.gn for many months now and it
works fine (and links much faster than ld64).

Differential Revision: https://reviews.llvm.org/D112622
2021-10-27 09:44:00 -04:00
Nico Weber 0d13c595fc [gn build] Add lldb to default target on Windows
It seems to build fine (even though some tests fail), so might
as well let the bots build it. If it turns out to break a lot,
we can always turn it back off.

Differential Revision: https://reviews.llvm.org/D112620
2021-10-27 09:39:57 -04:00
Nico Weber c1f3d08b06 [gn build] add build rule for llvm-locstats
Needed by tests after 30a3652b6a.
2021-10-27 09:07:33 -04:00
LLVM GN Syncbot 1a350866bd [gn build] Port 566bfbb740 2021-10-26 23:05:31 +00:00
Nico Weber 1970ea15ad Reland "[gn build] (manually) port 6fe2beba7d (ExceptionTests)"
This reverts commit e2a2e5475c.
6fe2beba7d relanded (again) in c24a58081b.
2021-10-26 18:40:07 -04:00
LLVM GN Syncbot df05babc96 [gn build] Port 045695f85c 2021-10-25 22:58:46 +00:00
Nico Weber d2c133286a [gn build] (manually) port da47ec3ca0 2021-10-25 17:48:52 -04:00
Arthur Eubanks 882df21a1b [gn build] Add missing CodeGenTests dependency
Fixes link errors.
2021-10-25 13:34:06 -07:00
LLVM GN Syncbot 9f283c2c6c [gn build] Port e1fdec875f 2021-10-25 09:16:00 +00:00
LLVM GN Syncbot ec2a25296f [gn build] Port e18ea6f294 2021-10-22 23:26:01 +00:00
LLVM GN Syncbot a48bfc2c09 [gn build] Port 2e97236aac 2021-10-22 01:36:03 +00:00
Nico Weber 4976be1e95 [gn build] Make 'compiler-rt' depend on include dir
That way, the headers in llvm/utils/gn/secondary/compiler-rt/include
are copied when running `ninja compiler-rt`. (Previously, they were
only copied when running `check-hwasan` or when building the
compiler-rt/include target.)

(Since they should be copied only once, depend on the target in the
host toolchain. I think default_toolchain should work just as well,
it just needs to be a single fixed toolchain. check-hwasan depends
through host_toolchain, so let's use that here too.)

Prevents errors like

    testing/fuzzed_data_provider.h:8:10: fatal error: 'fuzzer/FuzzedDataProvider.h' file not found

when building with locally-built clang. (For now, you still have to
explicitly build the 'compiler-rt' target. Maybe we should make the
clang target depend on that in the GN build?)

Differential Revision: https://reviews.llvm.org/D112238
2021-10-21 21:08:36 -04:00
LLVM GN Syncbot 439fc09fed [gn build] Port d7b338537c 2021-10-21 19:18:49 +00:00
Noah Shutty e678c51177 [Support][ThinLTO] Move ThinLTO caching to LLVM Support library
We would like to move ThinLTO’s battle-tested file caching mechanism to
the LLVM Support library so that we can use it elsewhere in LLVM.

Patch By: noajshu

Differential Revision: https://reviews.llvm.org/D111371
2021-10-18 18:57:25 -07:00
LLVM GN Syncbot ff6fe9a2f1 [gn build] Port 8e46e34d24 2021-10-18 19:24:29 +00:00
LLVM GN Syncbot 25107cc8b1 [gn build] Port 92b8cc52bb 2021-10-18 19:09:19 +00:00
LLVM GN Syncbot 239bdf461c [gn build] Port 009f3a89d8 2021-10-18 16:52:00 +00:00
LLVM GN Syncbot 1d7aadb4c4 [gn build] Port ff13189c5d 2021-10-17 08:39:45 +00:00
Nico Weber 8e184f3d2a [gn build] (manually) port 6c76d01011 2021-10-13 18:43:16 -04:00
LLVM GN Syncbot 8a9faef30e [gn build] Port dd71b65ca8 2021-10-13 14:58:13 +00:00
LLVM GN Syncbot 27bc1e6164 [gn build] Port 9cf995be6b 2021-10-12 17:32:05 +00:00
LLVM GN Syncbot e9119a74d9 [gn build] Port 838b4a533e 2021-10-12 17:32:04 +00:00
Nico Weber 532d71c8b0 [gn build] (manually) port 67f94e5a97 2021-10-12 13:31:50 -04:00
LLVM GN Syncbot 269d0e223a [gn build] Port f4c1258d56 2021-10-12 10:50:41 +00:00
Nico Weber e19bbd0fa2 [gn build] (manually) port f4c1258d56 2021-10-12 06:34:34 -04:00
LLVM GN Syncbot db832d4618 [gn build] Port 962a2479b5 2021-10-12 04:51:58 +00:00
Nico Weber 63aab4065b [gn build] (manually) port 070315d04c 2021-10-11 14:30:31 -04:00
Vitaly Buka 76b7784bcd [NFC][sanitizer] Rename ByteMap to Map 2021-10-10 22:23:48 -07:00
LLVM GN Syncbot 816e9d81e2 [gn build] Port f341161689 2021-10-11 02:15:38 +00:00
LLVM GN Syncbot 98c9b3362f [gn build] Port 3df094d31e 2021-10-11 02:15:37 +00:00
Nico Weber e2a2e5475c Revert "Reland "[gn build] (manually) port 6fe2beba7d (ExceptionTests)""
This reverts commit 842035d8bd.
1dba6b3 was reverted yet again in 04aff39504.
2021-10-09 10:18:52 -04:00
Reid Kleckner 89b57061f7 Move TargetRegistry.(h|cpp) from Support to MC
This moves the registry higher in the LLVM library dependency stack.
Every client of the target registry needs to link against MC anyway to
actually use the target, so we might as well move this out of Support.

This allows us to ensure that Support doesn't have includes from MC/*.

Differential Revision: https://reviews.llvm.org/D111454
2021-10-08 14:51:48 -07:00
Vitaly Buka 05d46f627c [NFC][sanitizer] Remove sanitizer_persistent_allocator.cpp
We need to make it a template
2021-10-08 13:43:28 -07:00
LLVM GN Syncbot 708c267d7d [gn build] Port 30caca39f4 2021-10-08 11:24:14 +00:00
Nico Weber 842035d8bd Reland "[gn build] (manually) port 6fe2beba7d (ExceptionTests)"
This reverts commit 98d0f8f2ff.
6fe2beba7d relanded in 1dba6b37bd.
2021-10-08 07:17:04 -04:00
LLVM GN Syncbot a34dffb548 [gn build] Port 7fb9f99f3b 2021-10-07 15:19:45 +00:00