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

1304 Commits

Author SHA1 Message Date
LLVM GN Syncbot
072343a35a [gn build] Port e2d61ae5733 2020-08-10 15:55:00 +00:00
Petr Hosek
6c27d09879 Revert "[CMake] Simplify CMake handling for zlib"
This reverts commit ccbc1485b55ff4acd21bcfafbf7aec4ed0fd818d which
is still failing on the Windows MLIR bots.
2020-08-08 17:08:23 -07:00
Petr Hosek
af8170b5ad [CMake] Simplify CMake handling for zlib
Rather than handling zlib handling manually, use find_package from CMake
to find zlib properly. Use this to normalize the LLVM_ENABLE_ZLIB,
HAVE_ZLIB, HAVE_ZLIB_H. Furthermore, require zlib if LLVM_ENABLE_ZLIB is
set to YES, which requires the distributor to explicitly select whether
zlib is enabled or not. This simplifies the CMake handling and usage in
the rest of the tooling.

This is a reland of abb0075 with all followup changes and fixes that
should address issues that were reported in PR44780.

Differential Revision: https://reviews.llvm.org/D79219
2020-08-08 16:44:08 -07:00
LLVM GN Syncbot
f4add55acc [gn build] Port f5b5ccf2a68 2020-08-07 23:43:14 +00:00
LLVM GN Syncbot
79c68f2fb8 [gn build] Port 320eab2d558 2020-08-07 19:01:40 +00:00
LLVM GN Syncbot
1bc795778b [gn build] Port 911565d1085 2020-08-07 18:22:24 +00:00
Christian Kühnel
e33dafd15e Revert "[CMake] Simplify CMake handling for zlib"
This reverts commit 1adc494bce44f6004994deed61b30d4b71fe1d05.
This patch broke the Windows compilation on buildbot and pre-merge testing:
http://lab.llvm.org:8011/builders/mlir-windows/builds/5945
https://buildkite.com/llvm-project/llvm-master-build/builds/780
2020-08-07 09:36:49 +02:00
Mark Mentovai
5eedc0d9cb [gn build] mac: use frameworks instead of libs where appropriate
As of GN 3028c6a426a4, the hack that transformed "libs" ending in
".framework" from -l arguments to -framework arguments has been removed.
Instead, "frameworks" must be used, and the toolchain must provide
support.

Differential Revision: https://reviews.llvm.org/D84219
2020-08-06 18:58:57 -04:00
Snehasish Kumar
bfbcf062be [NFC] Rename BBSectionsPrepare -> BasicBlockSections.
Rename the BBSectionsPrepare pass as suggested by the review comment in
https://reviews.llvm.org/D85368.

Differential Revision: https://reviews.llvm.org/D85380
2020-08-06 13:12:06 -07:00
LLVM GN Syncbot
0325b9905f [gn build] Port 820e8d8656e 2020-08-05 23:35:59 +00:00
Petr Hosek
70737c97db [CMake] Simplify CMake handling for zlib
Rather than handling zlib handling manually, use find_package from CMake
to find zlib properly. Use this to normalize the LLVM_ENABLE_ZLIB,
HAVE_ZLIB, HAVE_ZLIB_H. Furthermore, require zlib if LLVM_ENABLE_ZLIB is
set to YES, which requires the distributor to explicitly select whether
zlib is enabled or not. This simplifies the CMake handling and usage in
the rest of the tooling.

This is a reland of abb0075 with all followup changes and fixes that
should address issues that were reported in PR44780.

Differential Revision: https://reviews.llvm.org/D79219
2020-08-05 16:07:11 -07:00
Nico Weber
30c0f960b8 [gn build] (manually) merge 3ab01550b
This reverts commit 0bbaacc8cae0373d4500c4e3f6f128d21f9033b7 and
2ad56119f5dc6c6af2b8ddfd9fc8c6460a7507c8 which merged 10b1b4a23
(and follow-ups), since that change was reverted in 3ab01550b.
2020-08-05 08:56:14 -04:00
Nico Weber
f46c21286d [gn build] (manually) merge 593e1962 2020-08-04 13:05:31 -04:00
Fangrui Song
5554745259 Add test utility 'split-file'
See https://lists.llvm.org/pipermail/llvm-dev/2020-July/143373.html
"[llvm-dev] Multiple documents in one test file" for some discussions.

This patch has explored several alternatives. The current semantics are similar to
what @dblaikie proposed.
`split-file filename output` splits the input file into multiple parts separated by
regex `^(.|//)--- filename` and write each part to the file `output/filename`
(`filename` can include path separators).

Use case A (organizing input of different formats (e.g. linker
script+assembly) in one file).

```
# RUN: split-file %s %t
# RUN: llvm-mc %t/asm -o %t.o
# RUN: ld.lld -T %t/lds %t.o -o %t
This is sometimes better than the %S/Inputs/ approach because the user
can see the auxiliary files immediately and don't have to open another file.

# asm
...
# lds
...
```

Use case B (for utilities which don't have built-in input splitting
feature):

```
// RUN: split-file %s %t
// RUN: llc < %t/1.ll | FileCheck %s --check-prefix=CASE1
// RUN: llc < %t/2.ll | FileCheck %s --check-prefix=CASE2
Combing tests prudently can improve readability.
For example, when testing parsing errors if the recovery mechanism isn't possible,
grouping the tests in one file can more readily see test coverage/strategy.

//--- 1.ll
...
//--- 2.ll
...
```

Since this is a new utility, there is no git history concerns for
UpperCase variable names. I use lowerCase variable names like mlir/lld.

Reviewed By: jhenderson, lattner

Differential Revision: https://reviews.llvm.org/D83834
2020-08-03 20:42:09 -07:00
LLVM GN Syncbot
b84726b927 [gn build] Port f78f509c758 2020-08-03 18:05:15 +00:00
Alex Richardson
cf20fb4e08 Execute llvm-lit with the python found by CMake by default
The check-* targets run ${Python3_EXECUTABLE} $BUILD/bin/llvm-lit, but
running `./bin/llvm-lit $ARGS` from the build directory currently always
uses "python" to run llvm-lit. On most systems this will be python2.7 even
if we found python3 at CMake time.

Reviewed By: compnerd

Differential Revision: https://reviews.llvm.org/D84625
2020-08-03 10:51:35 +01:00
Fangrui Song
ac5f15efc8 [CMake] Default ENABLE_X86_RELAX_RELOCATIONS to ON
This makes clang default to -Wa,-mrelax-relocations=yes, which enables
R_386_GOT32X (GNU as enables it regardless of -mrelax-relocations=) and
R_X86_64_[REX_]GOTPCRELX in MC. The produced object files require GNU ld>=2.26
to link. binutils 2.26 is considered a very old release today.
2020-08-02 23:06:31 -07:00
LLVM GN Syncbot
c09cdb2042 [gn build] Port 160ff83765a 2020-08-03 05:55:14 +00:00
Florian Hahn
5eea1c2f70 Recommit "[IPConstProp] Remove and move tests to SCCP."
This reverts commit 59d6e814ce0e7b40b7cc3ab136b9af2ffab9c6f8.

The cause for the revert (3 clang tests running opt -ipconstprop) was
fixed by removing those lines.
2020-08-02 22:23:54 +01:00
LLVM GN Syncbot
4def0a9062 [gn build] Port b7cfa6ca928 2020-07-31 18:32:54 +00:00
LLVM GN Syncbot
e5aed69370 [gn build] Port df69492cdfa 2020-07-31 16:23:24 +00:00
Nico Weber
d6cafdd330 [gn build] (manually) merge 63d3aeb529 2020-07-31 09:54:39 -04:00
LLVM GN Syncbot
ed417d552d [gn build] Port 763671f387f 2020-07-30 22:29:22 +00:00
Florian Hahn
1316430704 Revert "[IPConstProp] Remove and move tests to SCCP."
This reverts commit e77624a3be942c7abba48942b3a8da3462070a3f.

Looks like some clang tests manually invoke -ipconstprop via opt.....
2020-07-30 13:06:54 +01:00
Florian Hahn
ce3655671a [IPConstProp] Remove and move tests to SCCP.
As far as I know, ipconstprop has not been used in years and ipsccp has
been used instead. This has the potential for confusion and sometimes
leads people to spend time finding & reporting bugs as well as
updating it to work with the latest API changes.

This patch moves the tests over to SCCP. There's one functional difference
I am aware of: ipconstprop propagates for each call-site individually, so
for functions that are called with different constant arguments it can sometimes
produce better results than ipsccp (at much higher compile-time cost).But
IPSCCP can be thought to do so as well for internal functions and as mentioned
earlier, the pass seems unused in practice (and there are no plans on working
towards enabling it anytime).

Also discussed on llvm-dev:
http://lists.llvm.org/pipermail/llvm-dev/2020-July/143773.html

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D84447
2020-07-30 12:36:27 +01:00
LLVM GN Syncbot
36ff7942da [gn build] Port 276f9e8cfaf 2020-07-29 17:37:10 +00:00
Roman Lebedev
62cd6c1f59 [X86] Remove disabled miscompiling X86CondBrFolding pass
As briefly discussed in IRC with @craig.topper,
the pass is disabled basically since it's original introduction (nov 2018)
due to  known correctness issues (miscompilations),
and there hasn't been much work done to fix that.

While i won't promise that i will "fix" the pass,
i have looked at it previously, and i'm sure i won't try to fix it
if that requires actually fixing this existing code.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D84775
2020-07-28 23:35:04 +03:00
Fangrui Song
bc6980e492 Revert "[gn build] (manually) merge d054c7ee2e9"
This reverts commit ab73b6da95750164daac4cfbd351ca96e1084117.
2020-07-28 13:30:29 -07:00
Jinsong Ji
a3d207d6bc Re-land "[PowerPC] Remove QPX/A2Q BGQ/BGP CNK support"
This reverts commit bf544fa1c3cb80f24d85e84559fb11193846259f.

Fixed the typo in PPCInstrInfo.cpp.
2020-07-28 14:00:11 +00:00
Jinsong Ji
89408b2ab3 Revert "[PowerPC] Remove QPX/A2Q BGQ/BGP CNK support"
This reverts commit adffce71538e219aab4eeb024819baa7687262ff.

This is breaking test-suite, revert while investigation.
2020-07-27 21:07:00 +00:00
Jinsong Ji
2d65e976a4 [PowerPC] Remove QPX/A2Q BGQ/BGP CNK support
Per RFC http://lists.llvm.org/pipermail/llvm-dev/2020-April/141295.html
no one is making use of QPX/A2Q/BGQ/BGP CNK anymore.

This patch remove the support of QPX/A2Q in llvm, BGQ/BGP in clang,
CNK support in openmp/polly.

Reviewed By: hfinkel

Differential Revision: https://reviews.llvm.org/D83915
2020-07-27 19:24:39 +00:00
LLVM GN Syncbot
24a1f1e3a4 [gn build] Port ee7caa75939 2020-07-27 16:45:49 +00:00
Nico Weber
d54752f9dc [gn build] Make syncing to single-line source files work after 1afd889d0b43 2020-07-27 12:44:47 -04:00
Nico Weber
9d66423013 [gn build] (manually) merge 48c948abeb7 2020-07-27 12:30:09 -04:00
Hans Wennborg
e73cfa27dc [gn] Set CLANGD_ENABLE_REMOTE=0
To fix the build after 37ac559fccd4.
2020-07-27 14:05:03 +02:00
LLVM GN Syncbot
91051ca099 [gn build] Port 136c8f50e96 2020-07-25 18:51:58 +00:00
Nico Weber
fc0b2943f1 [gn build] (manually) port 10b1b4a23 more 2020-07-24 08:48:14 -04:00
Nico Weber
54f4b4b6c4 [gn build] (manually) port 10b1b4a23 2020-07-24 08:37:57 -04:00
Nico Weber
5622d0e657 [gn build] (manually) port 228f8d89 2020-07-24 08:29:36 -04:00
Nico Weber
2add9f8975 [gn build] (manually) merge d054c7ee2e9 2020-07-23 22:28:23 -04:00
LLVM GN Syncbot
95c79c03a9 [gn build] Port 92874d28669 2020-07-23 15:07:01 +00:00
LLVM GN Syncbot
74f5811ca5 [gn build] Port 13ad00be98e 2020-07-22 23:32:03 +00:00
LLVM GN Syncbot
76b377fb6c [gn build] Port 27650ec5541 2020-07-22 23:08:46 +00:00
Nico Weber
f9159b1f9a [gn build] Remove something I missed in 1afd889d0 2020-07-22 16:36:25 -04:00
LLVM GN Syncbot
8e18472dd3 [gn build] Port 418121c30a8 2020-07-22 18:37:02 +00:00
Nico Weber
47e7034b3a [gn build] (manually) port 746b5fad5b 2020-07-22 14:10:17 -04:00
LLVM GN Syncbot
5d745148d4 [gn build] Port a5e0194709c 2020-07-22 16:56:06 +00:00
LLVM GN Syncbot
973a5639f7 [gn build] Port 2a6c871596c 2020-07-22 16:56:05 +00:00
Fangrui Song
cb11f3c379 [gn build] Handle X86InstCombineIntrinsic.cpp in 2a6c871596ce 2020-07-22 09:49:27 -07:00
Fangrui Song
71ef60fd8c [gn build] Port 2a6c871596ce & 44a6bda19b40 2020-07-22 09:40:50 -07:00