1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

9052 Commits

Author SHA1 Message Date
LLVM GN Syncbot
62d46c5cd3 [gn build] Port 075890ca551 2020-06-10 06:34:37 +00:00
Mitch Phillips
bdf48658a5 [HWASan] Add sizeof(global) in report even if symbols missing.
Summary: Refactor the current global header iteration to be callback-based, and add a feature that reports the size of the global variable during reporting. This allows binaries without symbols to still report the size of the global variable, which is always available in the HWASan globals PT_NOTE metadata.

Reviewers: eugenis, pcc

Reviewed By: pcc

Subscribers: mgorny, llvm-commits, #sanitizers

Tags: #sanitizers, #llvm

Differential Revision: https://reviews.llvm.org/D80599
2020-06-09 13:02:13 -07:00
Mitch Phillips
d22f339338 Rebase. 2020-06-09 13:01:40 -07:00
Mitch Phillips
92d9e2416e remove redundant comment about Android. 2020-06-09 13:01:40 -07:00
Mitch Phillips
0d12bc0c5c Address Peter's comments. 2020-06-09 13:01:40 -07:00
Mitch Phillips
8e0a0632f6 Move DSO dependencies inside the group. 2020-06-09 13:01:40 -07:00
Mitch Phillips
66f97bec03 Patch up issues with GN builds (pthread / libz)
Summary:
Fixes up two small issues with the gn build.

 1 - Ensures that the correct ldflag `-pthread` is provided, not just linking the library.
 2 - Ensures that libraries are linked in the same group as the dependencies. This fixes a problem where system libraries (libc) are involved in a link-order dependency that's not being fulfilled.

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D80591
2020-06-09 13:01:40 -07:00
LLVM GN Syncbot
ba43bfaf7d [gn build] Port d5c28c40943 2020-06-09 19:53:21 +00:00
Mehdi Amini
ed76433842 Change filecheck default to dump input on failure
Having the input dumped on failure seems like a better
default: I debugged FileCheck tests for a while without knowing
about this option, which really helps to understand failures.

Remove `-dump-input-on-failure` and the environment variable
FILECHECK_DUMP_INPUT_ON_FAILURE which are now obsolete.

Differential Revision: https://reviews.llvm.org/D81422
2020-06-09 18:57:46 +00:00
LLVM GN Syncbot
ca1651bcd8 [gn build] Port 9b02a9b4015 2020-06-09 13:58:14 +00:00
LLVM GN Syncbot
1608fd02d6 [gn build] Port 98db1f990fc 2020-06-09 13:58:13 +00:00
LLVM GN Syncbot
3314f05a68 [gn build] Port 813734dad7e 2020-06-09 13:58:13 +00:00
LLVM GN Syncbot
d0f5f087ee [gn build] Port bb677cacc80 2020-06-08 19:44:56 +00:00
LLVM GN Syncbot
39779a11df [gn build] Port 550b5995233 2020-06-08 16:55:22 +00:00
Guillaume Chatelet
1a5597f4eb [Alignment][NFC] Migrate HandleByVal to Align
Summary: Note to downstream target maintainers: this might silently change the semantics of your code if you override `TargetLowering::HandleByVal` without marking it `override`.

This patch is part of a series to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790

Reviewers: courbet

Subscribers: sdardis, hiraditya, jrtc27, atanasyan, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81365
2020-06-08 10:50:27 +00:00
Guillaume Chatelet
c5c79e3df8 [Alignment][NFC] Migrate CallingConv tablegen code
Summary: This is a follow up on D81196, fixing one more call site.

Reviewers: courbet

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81268
2020-06-08 06:58:02 +00:00
LLVM GN Syncbot
34ec4ad872 [gn build] Port 8422bc9efcb 2020-06-06 18:22:19 +00:00
LLVM GN Syncbot
6b15e2e8e3 [gn build] Port 29203480632 2020-06-06 01:50:36 +00:00
LLVM GN Syncbot
79ef3ae68a [gn build] Port 1fa43e0b34d 2020-06-06 00:47:43 +00:00
LLVM GN Syncbot
30060410bf [gn build] Port 8a8c6913a93 2020-06-05 19:48:20 +00:00
Nico Weber
b977443b38 [gn build] (manually) merge 5eedf07ab999d 2020-06-05 14:39:04 -04:00
LLVM GN Syncbot
452b7f14a9 [gn build] Port 11d06b9511b 2020-06-05 17:22:19 +00:00
Nico Weber
0aaa8cb1ce [gn build] (manually) port a6fcf5ca033 2020-06-05 12:32:23 -04:00
Julian Lettner
e56242dfcc [lit] Improve naming of test result categories
Improve consistency when printing test results:
Previously we were using different labels for group names (the header
for the list of, e.g., failing tests) and summary count lines.  For
example, "Failing Tests"/"Unexpected Failures".  This commit changes lit
to label things consistently.

Improve wording of labels:
When talking about individual test results, the first word in
"Unexpected Failures", "Expected Passes", and "Individual Timeouts" is
superfluous.  Some labels contain the word "Tests" and some don't.
Let's simplify the names.

Before:
```
Failing Tests (1):
  ...

Expected Passes    : 3
Unexpected Failures: 1
```

After:
```
Failed Tests (1):
  ...

Passed: 3
Failed: 1
```

Reviewed By: ldionne

Differential Revision: https://reviews.llvm.org/D77708
2020-06-05 08:14:42 -07:00
Guillaume Chatelet
f6fc4bd10b [Alignment][NFC] Migrate CallingConv tablegen code
Summary:
We first migrate the generated code, more patches to come.

This patch is part of a series to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81196
2020-06-05 13:33:34 +00:00
Daniel Grumberg
269f60d02e NFC: Formatting fix in TableGEn/OptParserEmitter.cpp 2020-06-05 10:51:10 +01:00
LLVM GN Syncbot
76c6e46a0d [gn build] Port e53f5580578 2020-06-04 17:56:21 +00:00
LLVM GN Syncbot
548f790d0e [gn build] Port c973ad1878f 2020-06-04 17:56:21 +00:00
LLVM GN Syncbot
403aff8065 [gn build] Port ba2a01645b5 2020-06-04 17:56:20 +00:00
LLVM GN Syncbot
4ca0e4c2fe [gn build] Port 69fa84a6e95 2020-06-04 17:56:20 +00:00
LLVM GN Syncbot
79249979c7 [gn build] Port 6756a2c9533 2020-06-04 17:56:19 +00:00
LLVM GN Syncbot
8107fad723 [gn build] Port 49a4f3f7d88 2020-06-04 17:56:19 +00:00
Fangrui Song
732a71a860 [gn build] Port b5fc1deb5ba1f3cd432ecb8b86c2536470463163 2020-06-04 09:22:59 -07:00
Denis Antrushin
99d7b2a3a2 [TableGen] Handle (outs variable_ops)
When `variable_ops` is specified in `InOperandList` of instruction,
it behaves as expected, i.e., does not count as operand.
So for `(ins variable_ops)` instruction description will have 0
operands.  However when used in OutOperandList it is counted as
operand. So `(outs variable_ops)` results in instruction with
one def.
This patch makes behavior of `variable_ops` in `out` list to match
that of `in` list.

Reviewed By: reames
Differential Revision: https://reviews.llvm.org/D81095
2020-06-04 16:07:33 +03:00
LLVM GN Syncbot
5c6a96f031 [gn build] Port 48cd9d9dd86 2020-06-04 12:56:45 +00:00
Nico Weber
d1ee7e0d1c [gn build] port some -Wno flags for gcc from the cmake build. 2020-06-04 08:10:29 -04:00
LLVM GN Syncbot
681892253c [gn build] Port e636e6b79ac 2020-06-03 21:16:03 +00:00
LLVM GN Syncbot
d54ef3e6c9 [gn build] Port 7f50c15be5c 2020-06-03 21:16:02 +00:00
Nico Weber
3ece07dc76 [gn build] Fix link with ld.bfd and gold.
lld's symbol resolution algorithm makes it not depend on
the order of object files and libraries, but ld.bfd and
gold require listing dependencies later on the link line.
Put {{libs}} after {{inputs}} so that e.g. -lpthreads
appears after the object files, not before it.

Differential Revision: https://reviews.llvm.org/D81035
2020-06-03 17:06:30 -04:00
LLVM GN Syncbot
8de1b296de [gn build] Port add51e152aa 2020-06-03 10:50:20 +00:00
LLVM GN Syncbot
d96290b617 [gn build] Port 755a8959152 2020-06-03 08:27:24 +00:00
LLVM GN Syncbot
0638ffd642 [gn build] Port f99d5f8c32a 2020-06-02 20:36:52 +00:00
dstuttar
11327a08da [TableGen] Avoid generating switch with just default
Summary:
Switch with just default causes an MSVC warning (warning C4065: switch statement
contains 'default' but no 'case' labels).

Change-Id: I9ddeccdef93666256b5454b164b567b73b488461

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81021
2020-06-02 19:48:07 +01:00
Nico Weber
50523c63f4 [gn build] (manually) port 44f989e7809 2020-06-02 08:18:42 -04:00
Sanjay Patel
804d4bd875 [utils] change default nameless value to "TMP"
This is effectively reverting rGbfdc2552664d to avoid test churn
while we figure out a better way forward.

We at least salvage the warning on name conflict from that patch
though.

If we change the default string again, we may want to mass update
tests at the same time. Alternatively, we could live with the poor
naming if we change -instnamer.

This also adds a test to LLVM as suggested in the post-commit
review. There's a clang test that is also affected. That seems
like a layering violation, but I have not looked at fixing that yet.

Differential Revision: https://reviews.llvm.org/D80584
2020-06-01 06:54:45 -04:00
Nico Weber
6f003d58d9 [gn build] (semi-manually) port a8ca0ec2670 2020-05-31 22:06:11 -04:00
Sanjay Patel
2ca9a76699 [utils] change update_test_checks.py use of 'TMP' value names
As discussed in PR45951:
https://bugs.llvm.org/show_bug.cgi?id=45951

There's a potential name collision between update_test_checks.py and -instnamer
and/or manually-generated IR test files because all of them try to use the
variable name that should never be used: "tmp".

This patch proposes to reduce the odds of collision and adds a warning if we
detect the problem. This will cause regression test churn when regenerating
CHECK lines on existing files.

Differential Revision: https://reviews.llvm.org/D80584
2020-05-31 10:46:11 -04:00
LLVM GN Syncbot
5fe4b2e043 [gn build] Port cf6cc662eee 2020-05-29 23:53:23 +00:00
LLVM GN Syncbot
c3d7034d49 [gn build] Port 34cfed24ebd 2020-05-29 23:53:22 +00:00
Nico Weber
04ebb19444 [gn build] (manually) port 0e265e31578 2020-05-29 19:49:11 -04:00