Commit Graph

10571 Commits

Author SHA1 Message Date
Quinn Pham 5b3b0b355b [llvm][fix] Inclusive language: replace master with main in find_interesting_reviews.py
As part of using inclusive language within the llvm project and to fix
the command because the master branch was renamed, this patch replaces
master with main in `find_interesting_reviews.py`.

Reviewed By: kristof.beyls

Differential Revision: https://reviews.llvm.org/D113918
2021-11-15 14:06:30 -06:00
Zarko Todorovski 691a7feec4 Revert "[llvm][ubsan] Inclusive language: replace use of blacklist HandleLLVMOptions.cmake"
This reverts commit 44a64afd43.
2021-11-15 18:54:15 +00:00
Balazs Benics 0b9d3a6e53 [analyzer][NFC] Separate CallDescription from CallEvent
`CallDescriptions` deserve its own translation unit.
This patch simply moves the corresponding parts.
Also includes the `CallDescription.h` where it's necessary.

Reviewed By: martong, xazax.hun, Szelethus

Differential Revision: https://reviews.llvm.org/D113587
2021-11-15 19:10:46 +01:00
Zarko Todorovski 44a64afd43 [llvm][ubsan] Inclusive language: replace use of blacklist HandleLLVMOptions.cmake
This patch changes it to ignorelist and contains a filename change for the
.txt file that's called.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D113689
2021-11-15 16:22:03 +00:00
LLVM GN Syncbot 5f5f3ac5a3 [gn build] Port 69be352a19 2021-11-14 22:53:50 +00:00
LLVM GN Syncbot ed2b77b068 [gn build] Port f55ba3525e 2021-11-14 08:26:05 +00:00
LLVM GN Syncbot 6a40854ce5 [gn build] Port e1933a0488 2021-11-13 21:44:00 +00:00
Nico Weber a144869384 [gn build] (semi-manually) port cb0e14ce6d 2021-11-12 20:09:01 -05:00
Arthur Eubanks 463ee15e33 [gn build] Fix Android compiler-rt targets
If a sysroot was specified, it would take precedence over the Android
NDK sysroot since it would appear after in the command line.

Also only build runtimes for enabled target arches. Many places have
copied this around so create and use supported_android_toolchains.

Reviewed By: pcc

Differential Revision: https://reviews.llvm.org/D113606
2021-11-11 18:41:18 -08:00
LLVM GN Syncbot 72e947765a [gn build] Port c15f930e96 2021-11-12 02:22:04 +00:00
Nico Weber 96d027b503 [gn build] (manually) port 57c22ade867 2021-11-11 13:07:27 -05:00
Simon Tatham 7ac1fd0da9 [extract_symbols.py] Fix llvm-readobj options.
As of D105532, a couple of llvm-readobj options have slightly changed
their spellings. '-file-headers' has become '--file-header', and
'-symbols' has become '--symbols'. A modern llvm-readobj will respond
to those single-dash spellings by trying to parse them as combinations
of single-letter options, so that you get "unknown argument '-f'" for
-file-headers, and "unknown argument '-y'" for the second letter of
-symbols.

extract_symbols.py was still invoking llvm-readobj with those old
single-dash spellings. Changed them to the newly canonical ones, which
as far as I can tell still work on llvm-readobj from before the
change.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D113556
2021-11-11 09:12:58 +00:00
Quinn Pham 8cd1c2c8d3 [NFC] Inclusive language: replace master with main in benchmark docs
[NFC] As part of using inclusive language within the llvm project and to match
the renamed master branch of `google/benchmark`, this patch replaces master with
main in the benchmark releasing docs.

Reviewed By: kbobyrev

Differential Revision: https://reviews.llvm.org/D113513
2021-11-10 09:24:51 -06:00
LLVM GN Syncbot c98fe04663 [gn build] Port a35efc4dcb 2021-11-10 09:27:55 +00:00
LLVM GN Syncbot a8b2277069 [gn build] Port 737c4a2673 2021-11-09 20:11:28 +00:00
LLVM GN Syncbot a5d6dcbbb2 [gn build] Port 5338629333 2021-11-09 18:38:40 +00:00
Arthur Eubanks 29a8b1fe18 [gn build] Port 299aa4dfa1 2021-11-09 10:21:17 -08:00
Arthur Eubanks 87003cd80d [gn build] Port 22a1aa5a43 2021-11-09 10:21:17 -08:00
LLVM GN Syncbot eaa8533b33 [gn build] Port ef717f3852 2021-11-09 07:11:34 +00:00
LLVM GN Syncbot 4edbc2736e [gn build] Port 81a7cad2ff 2021-11-09 06:54:23 +00:00
LLVM GN Syncbot 3eda87732f [gn build] Port 6cad45d5c6 2021-11-09 04:15:33 +00:00
Nico Weber f006564f42 [gn build] (manually) port 38be8f4057 (llvm-tli-checker) 2021-11-08 23:15:03 -05:00
LLVM GN Syncbot a9e83f27dd [gn build] Port 16b07c866a 2021-11-08 15:59:52 +00:00
David Blaikie baa820c510 Add some support for pretty printing Twines containing std::string in gdb
This isn't perfect, since it doesn't use lazy_string - so if the
std::string does contain unprintable characters it might fail, but seems
better than nothing & LLVM doesn't generally store binary data in
std::strings.
2021-11-05 12:56:40 -07:00
Nico Weber c68183b81e [gn build] Use `=` for of -fdebug-compilation-dir
-f flags usually use the `=` form. -fdebug-compilation-dir= has been
around for a few months now (since 0c2bb6b446, both LLVM 12.0
and 13.0 have it), so using it shouldn't be a big problem -- especially
since use_relative_paths_in_debug_info is opt-in anyways.
2021-11-05 12:43:20 -04:00
Nico Weber cf838ebfa5 [gn build] Reformat all files
Ran `git ls-files '*.gn' '*.gni' | xargs llvm/utils/gn/gn.py format`.
No behavior change.
2021-11-05 10:51:04 -04:00
Nico Weber 565cbc2ca2 [gn build] Use build-machine-independent paths in coverage information
This is possible after D106314 / 8773822c57.

Makes the required prepare-code-coverage-artifact.py invocation a bit longer,
but that seems like a good tradeoff.

Differential Revision: https://reviews.llvm.org/D113282
2021-11-05 10:47:49 -04:00
LLVM GN Syncbot 6cd309bd02 [gn build] Port 7a98761d74 2021-11-05 13:54:25 +00:00
Quinn Pham c71fbdd87b [NFC] Inclusive language: Remove instances of master in URLs
[NFC] This patch fixes URLs containing "master". Old URLs were either broken or
redirecting to the new URL.

Reviewed By: #libc, ldionne, mehdi_amini

Differential Revision: https://reviews.llvm.org/D113186
2021-11-05 08:48:41 -05:00
Nico Weber a160aba95f [gn build] (manually) port df0ba47c36 2021-11-05 09:17:59 -04:00
Markus Lavin 7e34d5ead1 [NPM] Fix bug in llvm/utils/reduce_pipeline.py
Last minute changes in https://reviews.llvm.org/D110908 unfortunately
introduced a bug wrt automatic pipeline expansion. This patch fixes that
as well as gets rid of a few redundant variables.

Reviewed By: aeubanks

Differential Revision: https://reviews.llvm.org/D113177
2021-11-05 08:41:39 +01:00
David Blaikie def232915f Fix some issues with the gdb pretty printers for llvm::Twine
Still some pending bugs, but at least ironed some things out.
2021-11-04 22:50:50 -07:00
Muhammad Omair Javaid cbd215dfe5 [LIT] Add win32 PLATFORM env var to test config
LIT skips various system environment variables while building test
config. It turns out that we require PLATFORM environment variable for
detection of x86 vs Arm windows platform.

This patch adds system environment variable PLATFORM into LIT test
config for detection of win32 Arm platform.

Reviewed By: mstorsjo

Differential Revision: https://reviews.llvm.org/D113165
2021-11-04 17:42:43 +05:00
Qiu Chaofan 741aeda97d [PowerPC] Implement longdouble pack/unpack builtins
Implement two builtins to pack/unpack IBM extended long double float,
according to GCC 'Basic PowerPC Builtin Functions Available ISA 2.05'.

Reviewed By: jsji

Differential Revision: https://reviews.llvm.org/D112055
2021-11-03 17:57:25 +08:00
Yi Kong 803d4f8a35 [ARM][AsmParser] Don't emit "deprecated instruction in IT block" warning if requested
Also fixed formatting in AsmMatcherEmitter because it was confusing.

Differential Revision: https://reviews.llvm.org/D112993
2021-11-03 17:18:04 +08:00
Arthur Eubanks f2e807797e Revert "[gn build] Manually port 6fd2db04"
This reverts commit 43390d38f0.

Corresponding commit was reverted.
2021-11-02 16:51:56 -07:00
Jinsong Ji f1d32a521e [AIX] Avoid depending on objdump
On AIX, we are currently relying on `objdump` to detemine the
is_32_bit_windows.

`objdump` is not installed by default on AIX, it is creating problem to
depend on it, especially just for an always false detection on AIX.

So this patch simply provide a always false function to satify the
detection.

Reviewed By: #powerpc, daltenty

Differential Revision: https://reviews.llvm.org/D112952
2021-11-02 19:15:57 +00:00
Arthur Eubanks 80ba72b07b [llvm-reduce] Reduce some GlobalObject properties
Specifically, the section and the alignment.

Reviewed By: hans

Differential Revision: https://reviews.llvm.org/D112884
2021-11-02 08:47:32 -07:00
Arthur Eubanks 606b5fffe3 [gn build] Add missing llvm-reduce dependency 2021-11-02 08:46:46 -07:00
Arthur Eubanks 43390d38f0 [gn build] Manually port 6fd2db04 2021-11-02 08:42:57 -07:00
LLVM GN Syncbot 95a6d3e831 [gn build] Port 9b5c9c469d 2021-11-02 13:45:10 +00:00
LLVM GN Syncbot ca791f8c9a [gn build] Port fd41738e2c 2021-11-02 09:21:12 +00:00
LLVM GN Syncbot c26649688e [gn build] Port aee7f3384b 2021-11-02 08:41:58 +00:00
LLVM GN Syncbot 0658fb4016 [gn build] Port bc2773cb1b 2021-11-02 08:28:36 +00:00
Nico Weber 5d64bf00ac [gn build] (manually) port d736002e90 2021-10-28 08:48:54 -04:00
Konstantin Schwarz c09f1fc74c [GlobalISel][Tablegen] Fix SameOperandMatcher's isIdentical check
During rule optimization, identical SameOperandMatchers are hoisted into a common group,
however previously only one operand index was considered.
Commutable patterns can introduce SameOperandMatcher checks where the second index is commuted,
resulting in a different check that cannot be hoisted.

Reviewed By: qcolombet

Differential Revision: https://reviews.llvm.org/D111506
2021-10-28 13:37:12 +02:00
Tom Stellard 622346c604 utils/release: Add script for building release documentation
Reviewed By: hans, kuhnel

Differential Revision: https://reviews.llvm.org/D95284
2021-10-27 12:56:55 -07:00
Nico Weber e545e11a9e [gn build] Use LLD as host linker by default on macOS if clang_base_path is set
lld/mac should be stable enough to use it as host linker. I've been
using `use_lld=true` in my local args.gn for many months now and it
works fine (and links much faster than ld64).

Differential Revision: https://reviews.llvm.org/D112622
2021-10-27 09:44:00 -04:00
Nico Weber 0d13c595fc [gn build] Add lldb to default target on Windows
It seems to build fine (even though some tests fail), so might
as well let the bots build it. If it turns out to break a lot,
we can always turn it back off.

Differential Revision: https://reviews.llvm.org/D112620
2021-10-27 09:39:57 -04:00
Nico Weber c1f3d08b06 [gn build] add build rule for llvm-locstats
Needed by tests after 30a3652b6a.
2021-10-27 09:07:33 -04:00