Commit Graph

10780 Commits

Author SHA1 Message Date
LLVM GN Syncbot 5fa40fb293 [gn build] Port db2944e34b 2022-01-24 17:15:34 +00:00
LLVM GN Syncbot a922324590 [gn build] Port 787ccd345c 2022-01-24 17:15:33 +00:00
LLVM GN Syncbot 54f1d95066 [gn build] Port 3696c70e67 2022-01-24 12:06:49 +00:00
LLVM GN Syncbot 631f3e6215 [gn build] Port d2e8fb3318 2022-01-23 16:30:34 +00:00
Arthur Eubanks 6df05697ca [gn build] Set HAVE_MALLINFO2=1
I'm seeing deprecated warnings due to using mallinfo() instead of
mallinfo2().

  ../../llvm/lib/Support/Unix/Process.inc:98:10: warning: 'mallinfo' is deprecated [-Wdeprecated-declarations]
    mi = ::mallinfo();

mallinfo2() is part of glibc 2.33 which was released in Feb 2021, which
is fairly recent but I think gn users should be using fairly up to date
glibcs.

If this breaks people we could make this a gn arg instead.

Differential Revision: https://reviews.llvm.org/D117916
2022-01-21 14:02:42 -08:00
Arthur Eubanks e39c262979 Revert "[gn build] Set HAVE_MALLINFO2=1"
This reverts commit 9f4cc5a6bb.

Breaks http://45.33.8.238/macm1/26108/step_4.txt.
2022-01-21 13:53:03 -08:00
Arthur Eubanks 9f4cc5a6bb [gn build] Set HAVE_MALLINFO2=1
I'm seeing deprecated warnings due to using mallinfo() instead of
mallinfo2().

../../llvm/lib/Support/Unix/Process.inc:98:10: warning: 'mallinfo' is deprecated [-Wdeprecated-declarations]
  mi = ::mallinfo();

mallinfo2() is part of glibc 2.33 which was released in Feb 2021, which
is fairly recent but I think gn users should be using fairly up to date
glibcs.

If this breaks people we could make this a gn arg instead.

Differential Revision: https://reviews.llvm.org/D117916
2022-01-21 13:38:27 -08:00
LLVM GN Syncbot a65934241c [gn build] Port 1755f5b1d7 2022-01-21 02:11:31 +00:00
LLVM GN Syncbot 14a2964698 [gn build] Port 83d59e05b2 2022-01-20 20:02:50 +00:00
LLVM GN Syncbot 608a9c0e79 [gn build] Port 63a991d035 2022-01-20 20:02:49 +00:00
Nico Weber 91eca967b9 [gn build] (manually) port f29256a64a 2022-01-20 11:02:06 -05:00
Nico Weber 70002a7a62 [gn build] (manually) port 30c17e70a4 2022-01-19 21:15:31 -05:00
Nico Weber cc639dde8c [gn build] port c22329972f (lldb REPL/Clang)
Fixes `lldb-shell :: REPL/Basic.test` in the gn build, making
check-lldb pass (on Linux) again.
2022-01-19 11:32:53 -05:00
Nico Weber 7260a926cf [gn build] link lldb-vscode against ws2_32.lib
Necessary after aaa50e54e6.
2022-01-19 11:06:55 -05:00
Lukáš Zaoral 14a793ab05 [lit] Fix compatibility with upstream gtest
Upstream gtest now prints 'Running main() from FILE' instead of
plain 'Running main() from gtest_main.cc'. Thus, all such tests
ended-up being mistakenly marked as UNRESOLVED.

Patch by @lzaoral

Differential Revision: https://reviews.llvm.org/D100043
2022-01-19 08:02:28 -08:00
Nico Weber aaa50e54e6 [gn build] port b2a162e63b (liblldb.dll)
This requires making liblldb a dll on Windows.
Things still work with a static lib on non-Windows, so keep it a
static lib there for now.
2022-01-19 10:50:08 -05:00
LLVM GN Syncbot c2e8b54d59 [gn build] Port df51be85e4 2022-01-18 17:28:57 +00:00
Jan Svoboda 5f4ae56457 [llvm] Remove uses of `std::vector<bool>`
LLVM Programmer’s Manual strongly discourages the use of `std::vector<bool>` and suggests `llvm::BitVector` as a possible replacement.

This patch does just that for llvm.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D117121
2022-01-18 18:20:45 +01:00
Tim Northover 51f743db08 TableGen: sort SearchableTable emission order by fields, not top-level name
This is often used for anonymous definitions, so we were sorting by
"anonymous_1234" record names, which while less bad than pointers can be easily
perturbed by adding code even in completely unrelated systems. That causes test
failures on AArch64 when sysregs with multiple valid names suddenly start
printing a different one.
2022-01-18 12:59:41 +00:00
Shao-Ce SUN efd72ee23b [NFC][SDNode] Use `StringSwitch` instead of `if`
Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D117448
2022-01-18 08:12:26 +08:00
LLVM GN Syncbot bc17de79ee [gn build] Port e69a3d18f4 2022-01-17 21:32:04 +00:00
LLVM GN Syncbot b50c10fe59 [gn build] Port e6b153947d 2022-01-16 16:03:49 +00:00
LLVM GN Syncbot 9a0e6b2abd [gn build] Port f860fe3622 2022-01-16 13:58:27 +00:00
Tom Stellard a2adebf409 workflows: Make issue-subscriber more robust for labels with special characters
Also, replace the existing actionscript implementation with a python
script that can be run outside of GitHub Actions.  The intention is
that going forward, all github action functionality would be implemented
in this script.

Reviewed By: kwk

Differential Revision: https://reviews.llvm.org/D116762
2022-01-14 22:04:54 -08:00
LLVM GN Syncbot 538ffd4a24 [gn build] Port 5726e55981 2022-01-14 15:05:57 +00:00
LLVM GN Syncbot b8367518e7 [gn build] Port d3729bb384 2022-01-14 01:58:03 +00:00
Julian Lettner 0f6f6284d7 [lit] Make sure our test temp directory is actually used by tests
All credit to Martin Storsjö (mstorsjo) who describes the issue here:
https://github.com/llvm/llvm-project/issues/53167

Differential Revision: https://reviews.llvm.org/D117179
2022-01-13 11:23:32 -08:00
LLVM GN Syncbot e2c78f99c4 [gn build] Port 67151d029b 2022-01-13 17:34:38 +00:00
LLVM GN Syncbot 32d5634b1a [gn build] Port b9bc3c107c 2022-01-13 00:08:45 +00:00
Leonard Grey 6db04b97e6 [lld-macho] Port CallGraphSort from COFF/ELF
Depends on D112160

This adds the new options `--call-graph-profile-sort` (default),
`--no-call-graph-profile-sort` and `--print-symbol-order=`. If call graph
profile sorting is enabled, reads `__LLVM,__cg_profile` sections from object
files and uses the resulting graph to put callees and callers close to each
other in the final binary via the C3 clustering heuristic.

Differential Revision: https://reviews.llvm.org/D112164
2022-01-12 10:47:04 -05:00
LLVM GN Syncbot de05128eae [gn build] Port 35cca45b09 2022-01-12 11:14:10 +00:00
Simon Tatham 42f90a28a3 [extract_symbols.py] Fix line-splitting of tool output.
Two functions in the `is_32bit_windows` family were retrieving the
output of a tool via `subprocess.check_output`, and then iterating
over it using `for line in output`. But in Python, that gets you the
output one //character// at a time, not a line at a time. So the
regexes that looked for a platform name were never matching.

(This is a mistake that Python makes uniquely easy, because iterating
over a file and over a string have different default behaviour, and
because the element type of a string is still a string so you don't
even get a type mismatch error to warn you about it!)

Reviewed By: michaelplatings

Differential Revision: https://reviews.llvm.org/D117030
2022-01-12 09:06:56 +00:00
Nico Weber 37fc1a29cb [gn build] minor comment tweaks, no behavior change 2022-01-11 22:05:44 -05:00
Nico Weber bf95d5e334 [gn build] (manually) port 85e6e748d4 (llvm/lib/Target/X86/MCA) 2022-01-11 21:44:53 -05:00
Nico Weber fce1c6fb67 [gn build] (manually) port f77d115cc1 more 2022-01-11 14:49:14 -05:00
LLVM GN Syncbot 1088376630 [gn build] Port f77d115cc1 2022-01-11 17:12:28 +00:00
Nico Weber 5fc9abe474 [gn build] (manually) port 8503c688d5 2022-01-11 09:47:28 -05:00
LLVM GN Syncbot 04867c3c51 [gn build] Port 8d23b7420c 2022-01-11 06:50:34 +00:00
LLVM GN Syncbot 38916195c9 [gn build] Port c0fdc74887 2022-01-10 08:36:39 +00:00
Kazu Hirata f44473ec4e [llvm] Remove redundant member initialization (NFC)
Identified with readability-redundant-member-init.
2022-01-08 11:56:44 -08:00
Kazu Hirata 435a5a3652 [llvm] Fix bugprone argument comments (NFC)
Identified with bugprone-argument-comment.
2022-01-08 11:56:38 -08:00
Kazu Hirata 4e2ec7e38d [llvm] Remove unused forward declarations (NFC) 2022-01-07 20:00:34 -08:00
Nico Weber 19c37223d7 [gn build] (manually) port feeff8a37c
This reverts commit 3ca6928344.
492de35df4 relanded in feeff8a37c.
The reland only uses CMAKE_INSTALL_INCLUDEDIR and not CMAKE_INSTALL_BINDIR
in llvm-config, so this reland reflects that.
2022-01-07 21:22:08 -05:00
Kazu Hirata 2aed08131d [llvm] Use true/false instead of 1/0 (NFC)
Identified with modernize-use-bool-literals.
2022-01-07 00:39:14 -08:00
LLVM GN Syncbot 3d7a3888a2 [gn build] Port 56ca11e31e 2022-01-06 16:28:57 +00:00
Chuanqi Xu bbce75e352 Update Bug report URL to Github Issues
Although we moved to Github Issues. The bug report message refers to
Bugzilla still. This patch tries to update these URLs.

Reviewed By: MaskRay, Quuxplusone, jhenderson, libunwind, libc++

Differential Revision: https://reviews.llvm.org/D116351
2022-01-06 17:33:25 +08:00
LLVM GN Syncbot a881215821 [gn build] Port 68ac7b1701 2022-01-05 20:03:02 +00:00
Nico Weber dabc101ec0 [gn build] "port" 027ffb173a 2022-01-05 12:57:18 -05:00
Zi Xuan Wu 6025ee79ae [CSKY] Add python script of CSKY asm update test check 2022-01-05 15:59:03 +08:00
LLVM GN Syncbot f61b658d7d [gn build] Port 6d722801d1 2022-01-04 22:44:20 +00:00