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

1346 Commits

Author SHA1 Message Date
LLVM GN Syncbot
cbf0672b28 [gn build] Port 3e1e5f54492 2020-09-01 18:30:13 +00:00
LLVM GN Syncbot
8a4a1f29c0 [gn build] Port 3d90a61cf2e 2020-09-01 18:30:13 +00:00
Nico Weber
5e12eaec49 [gn build] port 5ffd940ac02 a bit more 2020-09-01 14:30:01 -04:00
Raphael Isemann
c3c7a59967 Reland [FileCheck] Move FileCheck implementation out of LLVMSupport into its own library
This relands e9a3d1a401b07cbf7b11695637f1b549782a26cd which was originally
missing linking LLVMSupport into LLMVFileCheck which broke the SHARED_LIBS build.

Original summary:

The actual FileCheck logic seems to be implemented in LLVMSupport. I don't see a
good reason for having FileCheck implemented there as it has a very specific use
while LLVMSupport is a dependency of pretty much every LLVM tool there is. In
fact, the only use of FileCheck I could find (outside the FileCheck tool and the
FileCheck unit test) is a single call in GISelMITest.h.

This moves the FileCheck logic to its own LLVMFileCheck library. This way only
FileCheck and the GlobalISelTests now have a dependency on this code.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D86344
2020-09-01 14:59:28 +02:00
Petr Hosek
11e2ca0270 [CMake] Use find_library for ncurses
Currently it is hard to avoid having LLVM link to the system install of
ncurses, since it uses check_library_exists to find e.g. libtinfo and
not find_library or find_package.

With this change the ncurses lib is found with find_library, which also
considers CMAKE_PREFIX_PATH. This solves an issue for the spack package
manager, where we want to use the zlib installed by spack, and spack
provides the CMAKE_PREFIX_PATH for it.

This is a similar change as https://reviews.llvm.org/D79219, which just
landed in master.

Patch By: haampie

Differential Revision: https://reviews.llvm.org/D85820
2020-08-31 20:06:21 -07:00
LLVM GN Syncbot
a4b07894ec [gn build] Port f5fd7486d6c 2020-08-31 14:02:39 +00:00
LLVM GN Syncbot
28847d4563 [gn build] Port 14dd0737822 2020-08-31 14:02:39 +00:00
Raphael Isemann
20366c891d Revert "[FileCheck] Move FileCheck implementation out of LLVMSupport into its own library"
This reverts commit e9a3d1a401b07cbf7b11695637f1b549782a26cd. Seems the new
FileCheck library doesn't link on some bots. Reverting for now.
2020-08-31 11:38:40 +02:00
Raphael Isemann
aecb52031b [FileCheck] Move FileCheck implementation out of LLVMSupport into its own library
The actual FileCheck logic seems to be implemented in LLVMSupport. I don't see a
good reason for having FileCheck implemented there as it has a very specific use
while LLVMSupport is a dependency of pretty much every LLVM tool there is. In
fact, the only use of FileCheck I could find (outside the FileCheck tool and the
FileCheck unit test) is a single call in GISelMITest.h.

This moves the FileCheck logic to its own LLVMFileCheck library. This way only
FileCheck and the GlobalISelTests now have a dependency on this code.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D86344
2020-08-31 11:24:41 +02:00
Arthur Eubanks
82da713351 [ObjCARCOpt] Port objc-arc to NPM
Since doInitialization() in the legacy pass modifies the module, the NPM
pass is a Module pass.

Reviewed By: ahatanak, ychen

Differential Revision: https://reviews.llvm.org/D86178
2020-08-28 12:59:33 -07:00
LLVM GN Syncbot
d2d62b4a30 [gn build] Port 94faadaca4e 2020-08-28 18:14:11 +00:00
LLVM GN Syncbot
e68ed0e6bb [gn build] Port b1f4e5979b7 2020-08-28 05:56:49 +00:00
Harmen Stoppels
e6870b67d6 Revert "Use find_library for ncurses"
The introduction of find_library for ncurses caused more issues than it solved problems. The current open issue is it makes the static build of LLVM fail. It is better to revert for now, and get back to it later.

Revert "[CMake] Fix an issue where get_system_libname creates an empty regex capture on windows"
This reverts commit 1ed1e16ab83f55d85c90ae43a05cbe08a00c20e0.

Revert "Fix msan build"
This reverts commit 34fe9613dda3c7d8665b609136a8c12deb122382.

Revert "[CMake] Always mark terminfo as unavailable on Windows"
This reverts commit 76bf26236f6fd453343666c3cd91de8f74ffd89d.

Revert "[CMake] Fix OCaml build failure because of absolute path in system libs"
This reverts commit 8e4acb82f71ad4effec8895b8fc957189ce95933.

Revert "[CMake] Don't look for terminfo libs when LLVM_ENABLE_TERMINFO=OFF"
This reverts commit 495f91fd33d492941c39424a32cf24bcfe192f35.

Revert "Use find_library for ncurses"
This reverts commit a52173a3e56553d7b795bcf3cdadcf6433117107.

Differential revision: https://reviews.llvm.org/D86521
2020-08-27 17:57:26 -07:00
LLVM GN Syncbot
67bc8c2cb7 [gn build] Port 7ed8124d46f 2020-08-27 17:08:02 +00:00
Arthur Eubanks
eaf6c380e3 [gn build] Manually port c9455d3 2020-08-27 10:05:34 -07:00
LLVM GN Syncbot
23d0649d2e [gn build] Port cf918c809bb 2020-08-27 05:59:55 +00:00
LLVM GN Syncbot
752234b1b6 [gn build] Port 7394460d875 2020-08-27 05:59:55 +00:00
LLVM GN Syncbot
98083a3146 [gn build] Port 7a457593efe 2020-08-27 01:24:30 +00:00
Arthur Eubanks
d74ec65308 [ConstProp] Remove ConstantPropagation
As discussed in
http://lists.llvm.org/pipermail/llvm-dev/2020-July/143801.html.

Currently no users outside of unit tests.

Replace all instances in tests of -constprop with -instsimplify.
Notable changes in tests:
* vscale.ll - @llvm.sadd.sat.nxv16i8 is evaluated by instsimplify, use a fake intrinsic instead
* InsertElement.ll - insertelement undef is removed by instsimplify in @insertelement_undef
llvm/test/Transforms/ConstProp moved to llvm/test/Transforms/InstSimplify/ConstProp

Reviewed By: lattner, nikic

Differential Revision: https://reviews.llvm.org/D85159
2020-08-26 15:51:30 -07:00
Arthur Eubanks
314a3e712c [gn build] Manually port ed07e1fe 2020-08-26 11:30:37 -07:00
LLVM GN Syncbot
0a9b110791 [gn build] Port 357dc1ed125 2020-08-26 11:33:42 +00:00
LLVM GN Syncbot
97e8e05e8c [gn build] Port ae6f7882403 2020-08-22 17:32:25 +00:00
LLVM GN Syncbot
50d4259933 [gn build] Port 20bb9fe565a 2020-08-22 13:52:08 +00:00
LLVM GN Syncbot
6ce572d581 [gn build] Port fba06e3c85a 2020-08-22 12:40:06 +00:00
Nico Weber
1bc410be68 [gn build] Port 57903cf0933 -- https://reviews.llvm.org/rG57903cf0933 2020-08-21 12:02:30 -04:00
LLVM GN Syncbot
91886ab6b7 [gn build] Port 1a995a0af3c 2020-08-20 18:24:44 +00:00
LLVM GN Syncbot
4e0cb4ff28 [gn build] Port 7546b29e761 2020-08-19 03:44:19 +00:00
Arthur Eubanks
77e79ccb03 [gn build] Add support for expensive checks
Reviewed By: hans, MaskRay

Differential Revision: https://reviews.llvm.org/D86007
2020-08-18 09:53:39 -07:00
LLVM GN Syncbot
1548f29af9 [gn build] Port 00d7b7d014f 2020-08-18 09:10:43 +00:00
Harmen Stoppels
cca791c2df Use find_library for ncurses
Currently it is hard to avoid having LLVM link to the system install of
ncurses, since it uses check_library_exists to find e.g. libtinfo and
not find_library or find_package.

With this change the ncurses lib is found with find_library, which also
considers CMAKE_PREFIX_PATH. This solves an issue for the spack package
manager, where we want to use the zlib installed by spack, and spack
provides the CMAKE_PREFIX_PATH for it.

This is a similar change as https://reviews.llvm.org/D79219, which just
landed in master.

Differential revision: https://reviews.llvm.org/D85820
2020-08-17 19:52:52 -07:00
LLVM GN Syncbot
8cd39d97f0 [gn build] Port 2f0d755d815 2020-08-17 20:30:41 +00:00
LLVM GN Syncbot
089fe26d78 [gn build] Port c1f6ce0c732 2020-08-17 12:02:24 +00:00
LLVM GN Syncbot
8168a66c45 [gn build] Port 577e58bcc75 2020-08-16 03:17:58 +00:00
LLVM GN Syncbot
b12d110bb3 [gn build] Port 79298a50670 2020-08-15 16:24:37 +00:00
LLVM GN Syncbot
54b9b270ec [gn build] Port 2e4a20fd706 2020-08-14 07:42:49 +00:00
Nico Weber
8418aff331 [gn build] (manually) port d650cbc349ccc4 better 2020-08-13 15:48:03 -04:00
Nico Weber
fc76f2a36b [gn build] (manually) port d650cbc349ccc4 2020-08-13 15:43:43 -04:00
LLVM GN Syncbot
02850b9fd7 [gn build] Port d17437d2bd8 2020-08-13 13:35:44 +00:00
Petr Hosek
6abbc429da [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-11 20:22:11 -07:00
Arthur Eubanks
38b62da11d [gn build] Fix CodeGenTests
Missing dependency required by https://reviews.llvm.org/D67687.

Fixes
lld-link: error: undefined symbol: public: __cdecl llvm::PipelineTuningOptions::PipelineTuningOptions(void)
>>> referenced by C:\src\llvm-project\llvm\unittests\CodeGen\PassManagerTest.cpp:215
>>>               obj/llvm/unittests/CodeGen/CodeGenTests.PassManagerTest.obj:(private: virtual void __cdecl `anonymous namespace'::PassManagerTest_Basic_Test::TestBody(void))

Differential Revision: https://reviews.llvm.org/D85682
2020-08-11 12:31:42 -07:00
LLVM GN Syncbot
8446fc61f4 [gn build] Port db91320a898 2020-08-11 04:32:01 +00:00
LLVM GN Syncbot
4e781c06b8 [gn build] Port e6f8ba12e6e 2020-08-11 04:24:23 +00:00
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