Commit Graph

10527 Commits

Author SHA1 Message Date
Nico Weber 5d64bf00ac [gn build] (manually) port d736002e90 2021-10-28 08:48:54 -04:00
Konstantin Schwarz c09f1fc74c [GlobalISel][Tablegen] Fix SameOperandMatcher's isIdentical check
During rule optimization, identical SameOperandMatchers are hoisted into a common group,
however previously only one operand index was considered.
Commutable patterns can introduce SameOperandMatcher checks where the second index is commuted,
resulting in a different check that cannot be hoisted.

Reviewed By: qcolombet

Differential Revision: https://reviews.llvm.org/D111506
2021-10-28 13:37:12 +02:00
Tom Stellard 622346c604 utils/release: Add script for building release documentation
Reviewed By: hans, kuhnel

Differential Revision: https://reviews.llvm.org/D95284
2021-10-27 12:56:55 -07: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
djtodoro 30a3652b6a [llvm-locstats] Report a warning if overflow was detected by llvm-dwarfdump
Catch that llvm-dwarfdump detected an overflow in statistics.

Differential Revision: https://reviews.llvm.org/D110621
2021-10-27 14:35:29 +02: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
David Blaikie a36032345e llvm pretty printers: Fix StringRef and workaround StringMap in Python 2 2021-10-25 23:49:10 -07:00
Jyun-Yan You de44af4c1d [TableGen] Fix codgen of InstrMapping with multiple columns and values
This patch fixes invalid syntax of generated code for InstrMapping
that has multiple columns and values.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D111962
2021-10-25 21:00:49 -07: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
Kazu Hirata 4e3eebc6bd [tools, utils] Use StringRef::contains (NFC) 2021-10-22 17:22:13 -07: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
David Blaikie db0486c46f Remove unused parallel-libs project
Differential Revision: https://reviews.llvm.org/D112265
2021-10-21 14:34:39 -07: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
Luo, Yuanke 942536ac08 [X86] Prefer VEX encoding in X86 assembler.
This patch is to order the AVX instructions ahead of AVX512 instructions
in the matching table so that the AVX instructions can be matched first.
Thanks Craig and Shengchen for the idea.

Differential Revision: https://reviews.llvm.org/D111538
2021-10-18 16:54:11 +08:00
LLVM GN Syncbot 1d7aadb4c4 [gn build] Port ff13189c5d 2021-10-17 08:39:45 +00:00
Craig Topper 64591f217d [TableGen] Replace static_cast with llvm's cast. NFC
These all appear next to an isa<> and cast<> is much more
common in these cases.
2021-10-16 00:27:53 -07:00
Rong Xu 21abe21280 [TableGen][PGO] Disable profile instrumentation for printInstruction function
We are seeing extremely long time in building AMDGPUInstPrinter.cpp
when profile instrumentation is enabled: It takes more than 5 minutes
(compared to ~8 seconds in non-instrument build).

This caused by the huge statements in printInstruction functions. In
profile instrumentation build, we need have extra control flow to
differentiate each case statement. This in turn adds significant
compile time in block placement and branch folding.

Function printInstruction is not likely to benefit from PGO build
as it's rarely executed in a typical compilation. So here I disable
the profile instrumentation for this function.

Differential Revision: https://reviews.llvm.org/D111682
2021-10-14 13:41:55 -07: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
Craig Topper aefaf16758 [TableGen] Fix both sides of '&&' are same
The operand of the second any_of in EnforceSmallerThan should be
B not S like the FP code in the if below.

Unfortunately, fixing that causes an infinite loop in the build
of RISCV. So I've added a workaround for that as well.

Fixes PR44768.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D111502
2021-10-12 09:19:20 -07: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
LLVM GN Syncbot 2cb4f53612 [gn build] Port 49e736d845 2021-10-07 15:19:44 +00:00
LLVM GN Syncbot 6c8e80c3c2 [gn build] Port 3e9689d72c 2021-10-07 15:11:38 +00:00