1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
Commit Graph

8517 Commits

Author SHA1 Message Date
LLVM GN Syncbot
4a2e703c98 [gn build] Port 5087ace6519 2020-03-15 20:28:52 +00:00
Nico Weber
f328f34845 [gn build] (manually) port 5087ace6519 more 2020-03-15 16:28:19 -04:00
Nico Weber
157bc53787 [gn build] (manually) port 5087ace6519 2020-03-15 16:06:37 -04:00
LLVM GN Syncbot
7e25c8f52a [gn build] Port 633ea07200e 2020-03-14 21:50:50 +00:00
Simon Cook
bae1c75f0d [TableGen] Support combining AssemblerPredicates with ORs
For context, the proposed RISC-V bit manipulation extension has a subset
of instructions which require one of two SubtargetFeatures to be
enabled, 'zbb' or 'zbp', and there is no defined feature which both of
these can imply to use as a constraint either (see comments in D65649).

AssemblerPredicates allow multiple SubtargetFeatures to be declared in
the "AssemblerCondString" field, separated by commas, and this means
that the two features must both be enabled. There is no equivalent to
say that _either_ feature X or feature Y must be enabled, short of
creating a dummy SubtargetFeature for this purpose and having features X
and Y imply the new feature.

To solve the case where X or Y is needed without adding a new feature,
and to better match a typical TableGen style, this replaces the existing
"AssemblerCondString" with a dag "AssemblerCondDag" which represents the
same information. Two operators are defined for use with
AssemblerCondDag, "all_of", which matches the current behaviour, and
"any_of", which adds the new proposed ORing features functionality.

This was originally proposed in the RFC at
http://lists.llvm.org/pipermail/llvm-dev/2020-February/139138.html

Changes to all current backends are mechanical to support the replaced
functionality, and are NFCI.

At this stage, it is illegal to combine features with ands and ors in a
single AssemblerCondDag. I suspect this case is sufficiently rare that
adding more complex changes to support it are unnecessary.

Differential Revision: https://reviews.llvm.org/D74338
2020-03-13 17:13:51 +00:00
Matt Arsenault
d09873308c TableGen: Fix typo 2020-03-13 10:45:28 -04:00
LLVM GN Syncbot
4331dbeedb [gn build] Port 512767eb3fe 2020-03-13 14:09:37 +00:00
Nico Weber
4d56b10105 [gn build] (manually) port ce79c4246 2020-03-13 06:08:28 -04:00
Nico Weber
2df21447ab [gn build] (manually) port eb41cc619866e 2020-03-12 19:29:09 -04:00
LLVM GN Syncbot
4ec020163d [gn build] Port fa8080376e7 2020-03-12 16:33:39 +00:00
LLVM GN Syncbot
60938ca48c [gn build] Port 2c9cf9f4ddd 2020-03-12 16:01:56 +00:00
LLVM GN Syncbot
b4cde323ef [gn build] Port d5edcb90643 2020-03-12 11:58:14 +00:00
LLVM GN Syncbot
5aab1bf646 [gn build] Port 518292dbdfc 2020-03-12 05:17:52 +00:00
Christian Sigg
5d2315f6e7 Change to individual pretty printer classes, remove generic make_printer.
Summary: Follow-up from D72589.

Reviewers: dblaikie

Reviewed By: dblaikie

Subscribers: merge_guards_bot, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D73609
2020-03-11 15:04:03 +01:00
LLVM GN Syncbot
acb9457c82 [gn build] Port 326bc1da45b 2020-03-11 10:47:56 +00:00
LLVM GN Syncbot
3bc21436e7 [gn build] Port ebdb98f254f 2020-03-10 20:34:28 +00:00
LLVM GN Syncbot
ac5dfb4241 [gn build] Port a4cde9ad7b6 2020-03-10 17:04:42 +00:00
LLVM GN Syncbot
ed59983363 [gn build] Port 714466bf367 2020-03-10 14:33:04 +00:00
Nico Weber
6bec78f65f [gn build] (manually) merge 47edf5bafb 2020-03-10 10:22:39 -04:00
Reid Kleckner
60f03b6862 [gn] Use ghash if using clang & LLD together to make PDBs
I noticed my links were a bit slower on Windows than usual.

Reviewed By: thakis

Differential Revision: https://reviews.llvm.org/D75774
2020-03-09 15:23:54 -07:00
LLVM GN Syncbot
4d2e4895b4 [gn build] Port 1e0669bfe05 2020-03-09 21:59:49 +00:00
Arthur Eubanks
421f0976bd Fix typo in gn files
SKD -> SDK
2020-03-09 13:33:13 -07:00
LLVM GN Syncbot
31973e0dfa [gn build] Port 3486cc014b2 2020-03-09 17:56:57 +00:00
LLVM GN Syncbot
671aab6f20 [gn build] Port 882f589e20d 2020-03-09 16:03:39 +00:00
LLVM GN Syncbot
599dfc4b73 [gn build] Port 57c964aaa76 2020-03-08 11:50:36 +00:00
Nico Weber
4e4163852d [gn build] copy compiler-rt headers to clang include dir on all platforms 2020-03-06 21:55:56 -05:00
Yuanfang Chen
3469e7634a Add some more vscode files
On top of existing TableGen file syntax highlighting, added
- IR syntax highlighting
- LIT test output patterMatcher
- etc.
2020-03-05 19:31:28 -08:00
Fangrui Song
14988e9953 [PowerPC] Delete PPCMachObjectWriter and powerpc{,64}-apple-darwin
Reviewed By: #powerpc, sfertile

Differential Revision: https://reviews.llvm.org/D75494
2020-03-05 11:05:26 -08:00
LLVM GN Syncbot
cf41359f7a [gn build] Port cada5b881b6 2020-03-05 10:56:10 +00:00
Fangrui Song
a84de5bb19 [gn build] Fix llvm-gsymutil after D75291 2020-03-03 16:37:52 -08:00
Greg Clayton
5516acaf24 Rename "llvm-gsym" to "llvm-gsymutil" and fix dependencies.
Summary: This patch renames the "llvm-gsym" tool directory to "llvm-gsymutil". Dependencies are also reduced to the bare minimum for llvm-gsymutil.

Reviewers: aprantl, thakis

Subscribers: mgorny, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D75291
2020-03-03 14:13:29 -08:00
LLVM GN Syncbot
43cf3f2cf3 [gn build] Port c84532a70aa 2020-03-03 18:25:30 +00:00
LLVM GN Syncbot
ecb1818474 [gn build] Port ae4d39c9e4a 2020-03-03 15:41:46 +00:00
LLVM GN Syncbot
11214da374 [gn build] Port 613f791131e 2020-03-03 14:16:22 +00:00
LLVM GN Syncbot
e757d85d67 [gn build] Port 3a063d68e3c 2020-03-03 13:33:01 +00:00
LLVM GN Syncbot
4fc212f78b [gn build] Port 3755039c99d 2020-03-03 13:33:01 +00:00
LLVM GN Syncbot
a04ca9f614 [gn build] Port 1454c27b604 2020-03-03 11:18:38 +00:00
Hans Wennborg
8359a9314c Revert "Reland "[gn build] (manually) merge 68a235d07f9e70""
This reverts commit 94d4ca90040a5f55ee29f48043881437de56681e.

I reverted 68a235d07f9e70 again in
916be8fd6a0a0feea4cefcbeb0c22c65848d7a2e.
2020-03-03 11:21:11 +01:00
Joerg Sonnenberger
633e2c035f Explicitly include <cassert> when using assert
Depending on the OS used, a module-enabled build can fail due to the
special handling <cassert> gets as textual header.
2020-03-02 22:45:28 +01:00
LLVM GN Syncbot
365f9e08a5 [gn build] Port 49684f9db5c 2020-03-02 17:35:47 +00:00
LLVM GN Syncbot
135a140d05 [gn build] Port 5a1958f2673 2020-03-02 09:02:51 +00:00
Reid Kleckner
80428fb35f Avoid including FileSystem.h from MemoryBuffer.h
Lots of headers pass around MemoryBuffer objects, but very few open
them. Let those that do include FileSystem.h.

Saves ~250 includes of Chrono.h & FileSystem.h:

$ diff -u thedeps-before.txt thedeps-after.txt | grep '^[-+] ' | sort | uniq -c | sort -nr
    254 -    ../llvm/include/llvm/Support/FileSystem.h
    253 -    ../llvm/include/llvm/Support/Chrono.h
    237 -    ../llvm/include/llvm/Support/NativeFormatting.h
    237 -    ../llvm/include/llvm/Support/FormatProviders.h
    192 -    ../llvm/include/llvm/ADT/StringSwitch.h
    190 -    ../llvm/include/llvm/Support/FormatVariadicDetails.h
...

This requires duplicating the file_t typedef, which is unfortunate. I
sunk the choice of mapping mode down into the cpp file using variable
template specializations instead of class members in headers.
2020-02-29 12:30:23 -08:00
Jordan Rupprecht
00276e417e [NFC] Fix minor python issues.
* llvm-gisel-cov.py: extra `)` after print
* chunk-print-before-all.py: py2-only print method
2020-02-28 14:17:43 -08:00
Jay Foad
5763faae81 [Utils] Make some scripts directly executable 2020-02-28 13:39:54 +00:00
LLVM GN Syncbot
cff53cb2cb [gn build] Port 6af859dcca2 2020-02-28 11:49:23 +00:00
LLVM GN Syncbot
f74056c4dc [gn build] Port b0142cd9867 2020-02-27 20:40:16 +00:00
LLVM GN Syncbot
6b398fe33b [gn build] Port 3c36d8dad57 2020-02-26 16:09:48 +00:00
Nico Weber
62d32d531a [gn build] re-"gn format" all gn files 2020-02-26 08:38:34 -05:00
Nico Weber
897342c406 [gn build] (manually) port 2f6cc21f44e 2020-02-26 08:36:05 -05:00
Nico Weber
2719a69c96 [gn build] (manually) merge e058667a2e01 2020-02-26 07:33:32 -05:00