1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

9379 Commits

Author SHA1 Message Date
Mehdi Amini
e9ac5bd316 Revert "[clang][cli] Port ObjCMTAction to new option parsing system"
This reverts commit 09248a5d25bb1c9f357247fa3da8fbe4470e9c67.

Some builds are broken. I suspect a `static constexpr` in a class missing a
definition out of class (required pre-c++17).
2020-11-11 20:01:03 +00:00
LLVM GN Syncbot
1270e4ba61 [gn build] Port 250de7388b3 2020-11-11 14:04:25 +00:00
Nico Weber
692744bd80 [gn build] (manually) port 98aa067109e 2020-11-11 08:40:13 -05:00
Nico Weber
bcdea69bd7 [gn build] (semi-manually) Port 454579e46a87 2020-11-11 08:40:13 -05:00
Nico Weber
6727bd6030 Revert "[gn build] (semi-manually) Port 98aa067109"
This reverts commit 04ce13e497be60f51d340e649c72138d49cb13e9.
The commit message was wrong. Will reland with fixed message.
2020-11-11 08:40:12 -05:00
Nico Weber
a8df49c390 [gn build] (semi-manually) Port 98aa067109 2020-11-11 07:37:15 -05:00
Jan Svoboda
75210ece0c [clang][cli] Port ObjCMTAction to new option parsing system
Merge existing marhsalling info kinds and add some primitives to
express flag options that contribute to a bitfield.

Depends on D82574

Reviewed By: Bigcheese

Differential Revision: https://reviews.llvm.org/D82860
2020-11-11 13:03:02 +01:00
Jan Svoboda
0eaf6b346b [NFC] First test commit 2020-11-11 10:20:11 +01:00
Peter Collingbourne
0a0956e1c0 gn build: (manually) Port ae032e27 and 21f83113.
__register_frame and __deregister_frame are associated with the
.eh_frame section, which I think is used on all of our platforms
except Windows and 32-bit ARM (which uses the ARM EHABI).

Also add a file that was added to lld/MachO.
2020-11-10 15:50:40 -08:00
Arthur Eubanks
68130813e8 [update_test_checks] Allow opt to have .exe file extension
Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D91091
2020-11-09 15:50:30 -08:00
LLVM GN Syncbot
9ac1d1b82f [gn build] Port dbfa69c5024 2020-11-09 23:03:42 +00:00
Jan Svoboda
4f20c5bff5 Port some floating point options to new option marshalling infrastructure
This ports a number of OpenCL and fast-math flags for floating point
over to the new marshalling infrastructure.

As part of this, `Opt{In,Out}FFlag` were enhanced to allow other flags to
imply them, via `DefaultAnyOf<>`. For example:
```
defm signed_zeros : OptOutFFlag<"signed-zeros", ...,
  "LangOpts->NoSignedZero",
  DefaultAnyOf<[cl_no_signed_zeros, menable_unsafe_fp_math]>>;
```
defines `-fsigned-zeros` (`false`) and `-fno-signed-zeros` (`true`)
linked to the keypath `LangOpts->NoSignedZero`, defaulting to `false`,
but set to `true` implicitly if one of `-cl-no-signed-zeros` or
`-menable-unsafe-fp-math` is on.

Note that the initial patch was written Daniel Grumberg.

Differential Revision: https://reviews.llvm.org/D82756
2020-11-09 18:00:10 -05:00
LLVM GN Syncbot
345ed810ca [gn build] Port 9ca6fc4e095 2020-11-09 14:31:09 +00:00
LLVM GN Syncbot
2f720b3a66 [gn build] Port d725f1ce531 2020-11-07 19:18:18 +00:00
Kazu Hirata
e786f8b19e [TableGen] Use llvm::is_contained (NFC) 2020-11-06 14:18:01 -08:00
Jay Foad
0cb73d61a1 [TableGen] Indentation and whitespace fixes in generated code. NFC.
Some of these were found by running clang-format over the generated
code, although that complains about far more issues than I have fixed
here.

Differential Revision: https://reviews.llvm.org/D90937
2020-11-06 16:10:57 +00:00
Valentin Clement
8c87b66158 [flang][openacc] Add parsing tests and semantic check for set directive
This patch add some parsing and clause validity tests for the set directive.
It makes use of the possibility introduces in patch D90770 to check the restriction
were one of the default_async, device_num and device_type clauses is required but also
not more than once on the set directive.

Reviewed By: sameeranjoshi

Differential Revision: https://reviews.llvm.org/D90771
2020-11-05 22:57:58 -05:00
Valentin Clement
021bbc7b82 [openacc][openmp] Allow duplicate between required and allowed once/exclusive
Validity check introduce in D90241 are a bit too restrict and this patch propose to losen
them a bit. The duplicate clauses is now check only between the three allowed lists and between the
requiredClauses and allowedClauses lists. This allows to enable some check where a clause can be
required but also appear only once on the directive. We found these kind of restriction useful
on the set directive in OpenACC for example.

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D90770
2020-11-05 16:21:26 -05:00
Nico Weber
a93ee77123 [gn build] (manually) port 82f86ae01 more 2020-11-05 14:12:33 -05:00
Nico Weber
acf50db150 [gn build] (manually) port 82f86ae01 2020-11-05 14:11:26 -05:00
LLVM GN Syncbot
2bde9e6972 [gn build] Port 659f4bd87ef 2020-11-05 15:11:13 +00:00
Steven Wan
8a4871ee91 Add info about the cherry-picked commit and contributor 2020-11-04 14:23:27 -05:00
Steven Wan
54d3d00751 [PowerPC] Rename mftbl to mftb
`mftb` and `mftbl` are equivalent, there is no need to have two names for doing the same thing, rename `mftbl` to only have `mftb`.

Differential Revision: https://reviews.llvm.org/D89506
2020-11-04 14:23:27 -05:00
LLVM GN Syncbot
d609931b08 [gn build] Port d1b2a523191 2020-11-04 15:36:49 +00:00
LLVM GN Syncbot
05c2fcc211 [gn build] Port 73b6cb67dcd 2020-11-04 12:00:24 +00:00
LLVM GN Syncbot
d19e12083d [gn build] Port 1124bf4ab77 2020-11-04 12:00:24 +00:00
Nico Weber
7fc5c0fdb0 [gn build] try to port 707d69ff32309b 2020-11-04 07:00:05 -05:00
Vitaly Buka
7d04bf155f [sanitizer] Remove ANDROID_NDK_VERSION 2020-11-04 01:15:25 -08:00
Valentin Clement
683b5fd7b1 [openmp][openacc][NFC] Simplify access and validation of DirectiveBase information
This patch adds some helper in the DirectiveLanguage wrapper to initialize it from
the RecordKeeper and validate the records. This simplify arguments in lots of function
since only the DirectiveLanguge is passed.

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D90358
2020-11-03 11:13:06 -05:00
LLVM GN Syncbot
f3c13cd376 [gn build] Port 1667d23e585 2020-11-03 13:58:51 +00:00
Nico Weber
ae77e74525 [gn build] (manually) port 1af3cb5424d 2020-11-03 08:58:23 -05:00
Sam McCall
870b03306d [clangd] Fix check-clangd with no clang built
- pass required=False to use_clang(), as we don't need it
- fix required=False (which was unused and rotted):
  - make derived substitutions conditional on it
  - add a feature so we can disable tests that need it
- conditionally disable our one test that depends on %resource_dir.
  This doesn't seem right from first principles, but isn't a big deal.

Differential Revision: https://reviews.llvm.org/D90528
2020-11-02 21:10:43 +01:00
LLVM GN Syncbot
3fae7c2ab5 [gn build] Port c17da8676a0 2020-11-02 18:32:12 +00:00
Nico Weber
386c41e2e2 [gn build] Run git ls-files '*.gn' '*.gni' | xargs llvm/utils/gn/gn.py format 2020-11-02 10:49:54 -05:00
Nico Weber
ed2dff4f4d [gn build] (manually) port c6eaa14e11 2020-11-02 10:43:38 -05:00
Nico Weber
f30ddf1336 [gn build] (manually) port 76a168bce01 better 2020-11-02 10:14:58 -05:00
Evgeny Leviant
6daa076b36 [TableGen][SchedModels] Fix read/write variant substitution
Patch fixes case when sched class has write and read variants belonging
to different processor models.

Differential revision: https://reviews.llvm.org/D89777
2020-11-02 17:39:04 +03:00
Nico Weber
63eb68a1b7 [gn build] (manually) port 76a168bce01 2020-11-02 09:22:44 -05:00
LLVM GN Syncbot
8b5751e5aa [gn build] Port 756f5978410 2020-10-31 05:19:04 +00:00
Mircea Trofin
3afc00f390 [FileCheck] Report missing prefixes when more than one is provided.
If more than a prefix is provided - e.g. --check-prefixes=CHECK,FOO - we
don't report if (say) FOO is never used. This may lead to a gap in our
test coverage.

This patch introduces a new option, --allow-unused-prefixes. It
currently is set to true, keeping today's behavior. After we explicitly
set it in tests where this behavior was actually intentional, we will
switch it to false by default.

Differential Revision: https://reviews.llvm.org/D90281
2020-10-30 12:39:29 -07:00
LLVM GN Syncbot
46e2484ccc [gn build] Port ac49500cd04 2020-10-30 19:18:17 +00:00
LLVM GN Syncbot
944684f022 [gn build] Port 940d0a310dc 2020-10-30 18:08:01 +00:00
LLVM GN Syncbot
2f3cec0d0b [gn build] Port 84e8257937e 2020-10-30 17:54:57 +00:00
Nico Weber
5eee0feeab [gn build] port e58660750e76
Made necessary by c479e0c99459e4, which requires std::timespec
to exist, which it only does in c++17 and later.
2020-10-30 13:49:27 -04:00
serge-sans-paille
9755b5cd4d [lit] Ship and bundle license for lit package
lit is bundled independently from LLVM in at least one location
(https://pypi.org/project/lit/), it's easier to state its license locally.

Differential Revision: https://reviews.llvm.org/D90136
2020-10-30 15:34:00 +01:00
LLVM GN Syncbot
c4068d104f [gn build] Port 00090a2b826 2020-10-30 02:36:24 +00:00
Marcel Hlopko
d70c0f894f Remove HAVE_VCS_VERSION_INC, not needed
This preprocessor define was meant to be used to conditionally include VCSVersion.inc. However, the define was always set, and it was the content of the header that was conditionally generated. Therefore HAVE_VCS_VERSION_INC should be cleaned up.

Reviewed By: gribozavr2, MaskRay

Differential Revision: https://reviews.llvm.org/D84623
2020-10-29 13:09:05 -07:00
Peter Collingbourne
215544881e gn build: Define HWASAN_WITH_INTERCEPTORS=1 for hwasan_new_delete.cpp as well. 2020-10-28 15:42:07 -07:00
Jay Foad
84f5fe8d70 [TableGen] Treat reg as isolated in reg$foo (but not in ${foo}reg)
D9844 fixed a problem where the ss suffix in the AsmString "cmp${cc}ss"
was recognised as the X86 SS register, by only recognising a token as a
register name if it is "isolated", i.e. surrounded by separator
characters.

In the AMDGPU backend there are many operands like $clamp which expand
to an optional string " clamp" including the preceding space, so we want
to have AsmStrings including sequences like "vcc$clamp" where vcc is a
register name.

This patch relaxes the rules for an isolated token, to say that it's OK
if the token is immediately followed by a '$'.

Differential Revision: https://reviews.llvm.org/D90315
2020-10-28 21:39:39 +00:00
LLVM GN Syncbot
140ee27fee [gn build] Port 23ed570af1c 2020-10-28 20:46:36 +00:00