10997 Commits

Author SHA1 Message Date
LLVM GN Syncbot
f18590118e [gn build] Port 22570bac6943 2022-03-17 19:06:22 +00:00
LLVM GN Syncbot
cb29df4998 [gn build] Port 1af5fbd5c605 2022-03-17 16:55:08 +00:00
LLVM GN Syncbot
56a25a95d4 [gn build] Port 22077627ae20 2022-03-16 23:23:57 +00:00
Nico Weber
668d880f59 [gn build] (manually) port 5aab45f43066 (SymbolGraph) 2022-03-16 19:18:27 -04:00
LLVM GN Syncbot
a8ef5d2f6d [gn build] Port c2f62ab84b5f 2022-03-16 15:19:44 +00:00
Nico Weber
14d1a58209 [gn build] (manually) port e4cab4e24d17 2022-03-16 07:52:50 -04:00
Sam McCall
75acad41bc Use lit_config.substitute instead of foo % lit_config.params everywhere
This mechanically applies the same changes from D121427 everywhere.

Differential Revision: https://reviews.llvm.org/D121746
2022-03-16 09:57:41 +01:00
Sam McCall
e4cab4e24d [lit] Remove clang_libs_dir
Seems to have been added accidentally in 58db03a116a197719 and then
copied into clangd by me (but not actually needed).
2022-03-16 03:03:02 +01:00
Nico Weber
fd20ec6b6e [gn build] (manually) port 89cd86bbc58a (clang-pseudo move) 2022-03-15 20:45:36 -04:00
Nico Weber
78d29203ad [gn build] (manually) port 2b69eb4a7d1d 2022-03-15 19:05:46 -04:00
Sam McCall
fa1019fa18 [lit] add lit_config.substitute to interpolate lit_config.params
A version of this logic appears in ~every lit.site.cfg.in (28 copies total).
This patch just removes two, but I'll update the rest of llvm-project next.

Differential Revision: https://reviews.llvm.org/D121427
2022-03-15 22:09:43 +01:00
LLVM GN Syncbot
d6d67083e8 [gn build] Port d46409fc8ea4 2022-03-15 18:43:11 +00:00
LLVM GN Syncbot
c55b4c276f [gn build] Port 7262eacd4199 2022-03-15 13:08:09 +00:00
Keith Smiley
6541d3e979 [test] Add lit helper for windows paths
This adds 2 new lit helpers `%{fs-src-root}` and `%{fs-sep}`, these
allow writing tests that correctly handle slashes on Windows. In the
case of tests like clang/test/CodeGen/debug-prefix-map.c, these are
unable to correctly test behavior on both platforms, unless they fork
and add OS requirements, because the relevant logic hits host specific
codepaths like checking if paths are absolute.

Differential Revision: https://reviews.llvm.org/D111457
2022-03-14 20:05:55 -07:00
LLVM GN Syncbot
e28ace8a97 [gn build] Port 9c542a5a4e1b 2022-03-15 00:51:57 +00:00
Peter Collingbourne
aaca634c94 gn build: Add support for building with libcurl.
Differential Revision: https://reviews.llvm.org/D121260
2022-03-14 12:52:19 -07:00
LLVM GN Syncbot
5fc70e53bf [gn build] Port 5e65e79bace6 2022-03-14 16:52:53 +00:00
LLVM GN Syncbot
6c123674d8 [gn build] Port 999fa9f68788 2022-03-12 17:10:56 +00:00
serge-sans-paille
ed98c1b376 Cleanup includes: DebugInfo & CodeGen
Discourse thread: https://discourse.llvm.org/t/include-what-you-use-include-cleanup
Differential Revision: https://reviews.llvm.org/D121332
2022-03-12 17:26:40 +01:00
LLVM GN Syncbot
a7b1dccf7a [gn build] Port ee0f8c401030 2022-03-12 00:46:45 +00:00
LLVM GN Syncbot
6299089b94 [gn build] Port b1b4b6f36695 2022-03-12 00:10:18 +00:00
Petr Hosek
0c0f6cfb7b [CMake] Rename TARGET_TRIPLE to LLVM_TARGET_TRIPLE
This clarifies that this is an LLVM specific variable and avoids
potential conflicts with other projects.

Differential Revision: https://reviews.llvm.org/D119918
2022-03-11 15:43:01 -08:00
serge-sans-paille
fbbc41f8dd Cleanup include: TableGen
This also includes a few cleanup from Support.

Discourse thread: https://discourse.llvm.org/t/include-what-you-use-include-cleanup
Differential Revision: https://reviews.llvm.org/D121331
2022-03-11 11:41:32 +01:00
Sam McCall
895653d904 [cmake] Remove unused OUTPUT_MAPPING param to configure_lit_site_cfg(). NFC
Looks like it never did anything.
Added in 71deeee593c40ff01e529a6a4b30fa5b55494b82
2022-03-10 21:26:53 +01:00
Nico Weber
e32d061abe [gn build] (manually) port af98b0af6705 2022-03-10 07:14:47 -05:00
LLVM GN Syncbot
9066a88f04 [gn build] Port c31014322c0b 2022-03-10 01:35:38 +00:00
Nico Weber
c0700d3228 [gn build] (manually) port ffb9429b6f3c29ab 2022-03-09 11:43:21 -05:00
LLVM GN Syncbot
741d64af28 [gn build] Port 2dc4a80ec026 2022-03-09 10:05:09 +00:00
LLVM GN Syncbot
7cc85f4d7e [gn build] Port c2cd15a66531 2022-03-08 22:21:17 +00:00
Nico Weber
30b6b6a624 Revert "[gn build] (manually) port 0c2b43ab8cb1 (X86MCTests)"
This reverts commit 336e3677eac3f0ab7af212505723ef5041bacb6c.
0c2b43ab8cb1 was reverted in cf9b3ef941d4b4.
2022-03-07 13:43:29 -05:00
Nico Weber
336e3677ea [gn build] (manually) port 0c2b43ab8cb1 (X86MCTests) 2022-03-07 13:37:14 -05:00
Roman Lebedev
2b5a16420f
UpdateTestChecks: fix handling of UTC with spaces
We can't just split by space, that's not going to give us the same
argv we'd have gotten from the shell, it could be in a string,
we must actually parse that as argv.
2022-03-07 20:25:23 +03:00
LLVM GN Syncbot
d229765e61 [gn build] Port 54d6b5b67fb3 2022-03-07 16:44:43 +00:00
LLVM GN Syncbot
20c4664552 [gn build] Port 205557c908ff 2022-03-07 16:17:21 +00:00
Roman Lebedev
eadd1668d0
update_analyze_test_checks.py: fix UTC_ARGS handling
They should be both used if provided in the input test
and manifested in the updated test.
2022-03-07 18:22:19 +03:00
LLVM GN Syncbot
109d6e9dec [gn build] Port 311ff3917827 2022-03-07 13:49:22 +00:00
Roman Lebedev
df6c26fd34
update_analyze_test_checks.py: fix --filter handling
In particular, after filtering the check lines can't necessarily
use `-NEXT`, they may not be one directly after another.
2022-03-07 15:41:13 +03:00
LLVM GN Syncbot
d7480d065d [gn build] Port 5f62156762d4 2022-03-07 09:08:13 +00:00
Stella Laurenzo
38151a08c2 Reapply "[cmake] Prefix gtest and gtest_main with "llvm_"."
This reverts commit 7cdda6b8ce49ae3c90c068cff4dc355bba5d77f2.

Differential Revision: https://reviews.llvm.org/D121020
2022-03-04 13:45:43 -08:00
LLVM GN Syncbot
fa8293bbc7 [gn build] Port c88deef0a721 2022-03-04 17:22:23 +00:00
LLVM GN Syncbot
a1e91b53f6 [gn build] Port 7ee97c24efab 2022-03-04 17:22:23 +00:00
LLVM GN Syncbot
2954f5b3f1 [gn build] Port e865fa75308a 2022-03-04 00:22:21 +00:00
Sebastian Neubauer
473efae3a1 [UpdateTestChecks] Don't skip first line with --filter
body_start was never used, resulting in the first filtered line to be
skipped.
Fixes the --filter option introduced in D117694.

Differential Revision: https://reviews.llvm.org/D119704
2022-03-03 17:27:14 +01:00
LLVM GN Syncbot
d48aee6991 [gn build] Port 8de8731591fe 2022-03-03 12:36:38 +00:00
Martin Storsjö
9e2236fb7b Reapply [lit] Read command stdout/stderr as text on Windows
This takes care of normalizing newlines back to single LF instead
of CRLF.

Fix up a couple tests that accidentally pass binary data to stdout.

Differential Revision: https://reviews.llvm.org/D120623
2022-03-03 13:31:31 +02:00
LLVM GN Syncbot
926f77dc22 [gn build] Port 8bcbfb50e8ea 2022-03-03 10:33:40 +00:00
Stella Laurenzo
7cdda6b8ce Revert "[cmake] Prefix gtest and gtest_main with "llvm_"."
lldb buildbot failure. will investigate and roll forward.

This reverts commit 9f37775472b45986b0ecce5243bd6ce119e5bd69.
2022-03-02 11:13:46 -08:00
Stella Laurenzo
9f37775472 [cmake] Prefix gtest and gtest_main with "llvm_".
The upstream project ships CMake rules for building vanilla gtest/gmock which conflict with the names chosen by LLVM. Since LLVM's build rules here are quite specific to LLVM, prefixing them to avoid collision is the right thing (i.e. there does not appear to be a path to letting someone *replace* LLVM's googletest with one they bring, so co-existence should be the goal).

This allows LLVM to be included with testing enabled within projects that themselves have a dependency on an official gtest release.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D120789
2022-03-02 10:53:32 -08:00
LLVM GN Syncbot
91e9af32fc [gn build] Port ae60884dfe16 2022-03-02 08:58:54 +00:00
LLVM GN Syncbot
e1fd5a86c7 [gn build] Port 65588a0776ae 2022-03-02 06:10:52 +00:00