10736 Commits

Author SHA1 Message Date
LLVM GN Syncbot
3d7a3888a2 [gn build] Port 56ca11e31e6a 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 68ac7b17016e 2022-01-05 20:03:02 +00:00
Nico Weber
dabc101ec0 [gn build] "port" 027ffb173a68 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 6d722801d1a2 2022-01-04 22:44:20 +00:00
LLVM GN Syncbot
2b1c38f737 [gn build] Port 4dcc47aaeaf0 2022-01-04 14:32:08 +00:00
LLVM GN Syncbot
ba70fb6460 [gn build] Port 4950198116a5 2022-01-04 14:32:07 +00:00
LLVM GN Syncbot
fb7bea0a5a [gn build] Port af7bc39ba17d 2022-01-04 09:23:00 +00:00
LLVM GN Syncbot
a361320d75 [gn build] Port 6f6f88ffdae1 2022-01-03 20:50:31 +00:00
Kazu Hirata
e5947760c2 Revert "[llvm] Remove redundant member initialization (NFC)"
This reverts commit fd4808887ee47f3ec8a030e9211169ef4fb094c3.

This patch causes gcc to issue a lot of warnings like:

  warning: base class ‘class llvm::MCParsedAsmOperand’ should be
  explicitly initialized in the copy constructor [-Wextra]
2022-01-03 11:28:47 -08:00
LLVM GN Syncbot
b9ed95afc4 [gn build] Port fe68088d44f7 2022-01-03 17:01:27 +00:00
LLVM GN Syncbot
3a33c0b1ce [gn build] Port a8ae6828a98d 2022-01-03 15:14:39 +00:00
Kazu Hirata
fd4808887e [llvm] Remove redundant member initialization (NFC)
Identified with readability-redundant-member-init.
2022-01-01 16:18:18 -08:00
LLVM GN Syncbot
ed56007ac5 [gn build] Port 2edcde00cb39 2022-01-01 02:17:49 +00:00
Kazu Hirata
5a667c0e74 [llvm] Use nullptr instead of 0 (NFC)
Identified with modernize-use-nullptr.
2021-12-28 08:52:25 -08:00
LLVM GN Syncbot
0819234033 [gn build] Port b5c5d8912e07 2021-12-28 07:59:27 +00:00
LLVM GN Syncbot
3b4c040cca [gn build] Port 969a51ff3632 2021-12-24 11:05:23 +00:00
Nico Weber
a6114ff0cd [gn build] "port" 71b3bfde9cd2 2021-12-23 19:52:34 -05:00
Nico Weber
ee4bbb50ae [gn build] (manually) port 7cd7b4d2f807 (sanitizer_symbolize_set_demangle) 2021-12-23 18:06:48 -05:00
Nico Weber
5fd328c45f [gn build] (manually) port f103ee2e9e3fc (sanitizer_symbolize_set_inline_frames) 2021-12-23 16:40:13 -05:00
Simon Moll
2810c3403e [VE] Add VE support to update_llc_test_checks
Add VE assembly scrubbing and triple support to update_llc_test_checks.

Reviewed By: kaz7

Differential Revision: https://reviews.llvm.org/D116104
2021-12-23 14:12:44 +01:00
LLVM GN Syncbot
ece75e2035 [gn build] Port cb8a0b07974e 2021-12-22 17:34:39 +00:00
LLVM GN Syncbot
19030717e3 [gn build] Port 7056250f517a 2021-12-22 01:35:25 +00:00
Nico Weber
0e9393f522 [gn build] (manually) port f68e89044a2ee 2021-12-21 18:59:37 -05:00
LLVM GN Syncbot
3ce4b6a599 [gn build] Port f78d49e06883 2021-12-21 18:57:55 +00:00
Nico Weber
f2f6d09185 [gn build] (semiautomatically) port 9b4f179bf8d3 2021-12-21 08:10:52 -05:00
Djordje Todorovic
0e343479a7 [llvm-mca] Compare multiple files
Script (llvm-mca-compare.py) uses llvm-mca tool to print
statistics in console for multiple files.
Script requires specified --llvm-mca-binary option (specified
relative path to binary of llvm-mca).
Options: --args [="-option1=<arg> -option2=<arg> ..."], -v or -h can also be used.

The script is used as follows:
$ llvm-project/llvm/utils/llvm-mca-compare.py file1.s --llvm-mca-binary=build/bin/llvm-mca

Patch by Milica Matic <Milica.Matic@syrmia.com>

Differential Revision: https://reviews.llvm.org/D115138
2021-12-21 11:56:18 +01:00
Sami Tolvanen
5dc8aaac39 [llvm][IR] Add no_cfi constant
With Control-Flow Integrity (CFI), the LowerTypeTests pass replaces
function references with CFI jump table references, which is a problem
for low-level code that needs the address of the actual function body.

For example, in the Linux kernel, the code that sets up interrupt
handlers needs to take the address of the interrupt handler function
instead of the CFI jump table, as the jump table may not even be mapped
into memory when an interrupt is triggered.

This change adds the no_cfi constant type, which wraps function
references in a value that LowerTypeTestsModule::replaceCfiUses does not
replace.

Link: https://github.com/ClangBuiltLinux/linux/issues/1353

Reviewed By: nickdesaulniers, pcc

Differential Revision: https://reviews.llvm.org/D108478
2021-12-20 12:55:32 -08:00
Geoffrey Martin-Noble
e8b5b72182 [lit] Support relative path arguments
Currently the behavior with relative paths is pretty broken. It differs
between external shell and internal shell because the path resolution
is done with a different working directory. With the internal shell,
it's resolved relative to the directory from which lit is executed,
whereas with the external shell it's resolved relative to where the
test case is executed. To make matters worse, using the internal shell
the filepath to binaries looked up with `which` is returned relative
to the directory from which lit is executed, but then executed from
the test execution directory. That means that relative paths with the
internal shell give a `[Errno 2] No such file or directory` error
instead of the expected `command not found`.

To address these issues this patch makes lit interpret relative paths
as relative to the directory from which lit was invoked and modifies
`which` to return absolute paths, matching the behavior of its
namesake unix function.

See https://groups.google.com/g/llvm-dev/c/KzMWlOXR98Y/m/QJoqn0U5HAAJ

Reviewed By: yln

Differential Revision: https://reviews.llvm.org/D115486
2021-12-20 11:49:42 -08:00
Fangrui Song
98e0b2cf70 [Support] Revert posix_fallocate in resize_file
This reverts 3816c53f040cc6aa06425978dd504b0bd5b7899c and removes follow-up
fixups.

The original intention was to show error earlier (posix_fallocate time) than
later for ld.lld but it appears to cause some problems which make it not free.

* FreeBSD ZFS: EINVAL, not too bad.
* FreeBSD UFS: according to khng "devastatingly slow on freebsd because UFS on freebsd does not have preallocation support like illumos. It zero-fills."
* NetBSD: maybe EOPNOTSUPP
* Linux tmpfs: unless tmpfs is set up to use huge pages (requires CONFIG_TRANSPARENT_HUGE_PAGECACHE=y), I can consistently demonstrate ~300ms delay for a 1.4GiB output.
* Linux ext4: I don't measure any benefit, either backed by a hard disk or by a file in tmpfs.
* The current code organization of `defined(HAVE_POSIX_FALLOCATE)` costs us a macro dispatch for AIX.

I think we should just remove it. I think if posix_fallocate ever finds demonstrable benefit,
it is likely Linux specific and will not need HAVE_POSIX_FALLOCATE, and possibly opt-in by some specific programs.

In a filesystem with CoW and compression, the ENOSPC benefit may be lost as well.

Reviewed By: khng300

Differential Revision: https://reviews.llvm.org/D115957
2021-12-20 11:16:03 -08:00
LLVM GN Syncbot
ed086a8dbc [gn build] Port 37e6bd8bc8da 2021-12-20 17:19:51 +00:00
LLVM GN Syncbot
3b2fd945b7 [gn build] Port 754ea6fd4d52 2021-12-20 08:24:56 +00:00
Martin Storsjö
2ec75a0869 [lit] Flush stderr manually on Windows after printing messages
When run in a git bash terminal, sys.stderr isn't flushed implicitly
after printing each line. Manually flush it after each printout,
to avoid getting broken/misordered output.

A similar fix had been done in the old libcxx test config, committed
as part of 7e3ee09ad24cbca3ea7687c50b53be5269127fb1 / D28725; this
generalizes the fix, making it available in the new libcxx test
configs too, and for any other test that uses lit_config.note().

Differential Revision: https://reviews.llvm.org/D115761
2021-12-18 21:41:40 +02:00
LLVM GN Syncbot
7de813e14c [gn build] Port 65d7fd0239bf 2021-12-17 18:52:31 +00:00
Kazu Hirata
2b7be47b22 [llvm] Strip redundant lambda (NFC) 2021-12-17 10:51:40 -08:00
LLVM GN Syncbot
2fefb66e53 [gn build] Port cc324af0d64c 2021-12-17 18:41:48 +00:00
Nico Weber
2438540a4a [gn build] (manually) port fb9a075c813c5 2021-12-17 10:02:26 -05:00
Nico Weber
fc01f85bf3 [gn build] (semiautomatically) port 3f5f687e2e8b 2021-12-17 07:26:34 -05:00
LLVM GN Syncbot
cccc7aed4d [gn build] Port 09103807e7dc 2021-12-17 01:57:11 +00:00
LLVM GN Syncbot
d98f00aa19 [gn build] Port bdc68ee70fa9 2021-12-17 00:28:54 +00:00
Nico Weber
85f799730f [gn build] Port 95946d2f8589 2021-12-16 18:38:32 -05:00
Nico Weber
0a1bcb120f [gn build] port 78523516bc (cut MC->ProfileData dep) 2021-12-16 18:38:32 -05:00
LLVM GN Syncbot
d3208cf1cd [gn build] Port 8a85be807bd4 2021-12-16 21:40:46 +00:00
LLVM GN Syncbot
9043c3d65b [gn build] Port da816ca0cb3b 2021-12-16 19:27:34 +00:00
Nico Weber
35ae37a161 [gn build] port ec37e0bbafab 2021-12-16 14:27:18 -05:00
LLVM GN Syncbot
c42decb033 [gn build] Port db5aceb97939 2021-12-16 07:22:17 +00:00
LLVM GN Syncbot
fd65d39793 [gn build] Port 2b4876157562 2021-12-15 23:47:26 +00:00
Nico Weber
65146382b3 [gn build] Remove unhelpful default for goma_dir
The default hasn't worked in over 9 months now.

Getting a friendly error message if this isn't set is more useful than getting
a bad default value.

Differential Revision: https://reviews.llvm.org/D115833
2021-12-15 18:39:53 -05:00
LLVM GN Syncbot
5949a3d210 [gn build] Port 8179e1fd519d 2021-12-15 19:34:58 +00:00