1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

8260 Commits

Author SHA1 Message Date
Nico Weber
7a428c30fb Revert "Use InitLLVM to setup a pretty stack printer"
This reverts commit 3f76260dc0674cc0acb25f550a0f0c594cf537ea.
Breaks at least these tests on Windows:
    Clang :: Driver/clang-offload-bundler.c
    Clang :: Driver/clang-offload-wrapper.c
2019-11-25 21:06:56 -05:00
Rui Ueyama
6f29971fe5 Use InitLLVM to setup a pretty stack printer
InitLLVM does not only save a few lines from main() but also makes the
commands do the right thing for multibyte character pathnames on
Windows (i.e. canonicalize argv's to UTF-8) because of the code we
have in this file:

https://github.com/llvm/llvm-project/blob/master/llvm/lib/Support/InitLLVM.cpp#L32

For many LLVM commands, we already have calls of InitLLVM, but there
are still remainings.

Differential Revision: https://reviews.llvm.org/D70702
2019-11-26 10:56:10 +09:00
Nico Weber
bb2c702ebb gn build: (manually) merge 9e676d9c7e 2019-11-25 18:48:10 -05:00
Dávid Bolvanský
aa49d2f39e [TableGen] Fixed 'unused but set variable' warning. NFCI 2019-11-24 20:04:03 +01:00
Dávid Bolvanský
8887a4c2ae Fixed -Wdeprecated-copy warnings in gtest. NFCI. 2019-11-24 09:42:28 +01:00
Dávid Bolvanský
0fcaad5414 Reland 'Fixed -Wdeprecated-copy warnings. NFCI.'
Fixed hashtable copy ctor.
2019-11-23 23:09:39 +01:00
Nico Weber
ffc9527e43 gn build: set HAVE_VCS_VERSION_INC while building Version.cpp
And belatedly merge r353268 / r353269.

test/Driver/wasm-toolchain-lto.c currently requires getLLVMRevision()
to return something non-empty to pass. That's hopefully temporary,
but making Version.cpp work is probalby a good idea regardless.
(Note its contents will by default usually be out-of-date, because
llvm_allow_tardy_revision defaults to false.)
2019-11-23 16:11:11 -05:00
Dávid Bolvanský
0154fb24b2 Revert 'Fixed -Wdeprecated-copy warnings. NFCI.'
pdbutil's test is failing.
2019-11-23 21:31:27 +01:00
Dávid Bolvanský
3298e73cdd Fixed -Wdeprecated-copy warnings. NFCI. 2019-11-23 21:05:07 +01:00
Peter Collingbourne
52da15c594 gn build: Reland c52efdc5, "gn build: (manually) merge b5913e6d2f"
Because b5913e6d2f landed again as c54959c0.
2019-11-22 18:13:58 -08:00
LLVM GN Syncbot
283a691725 gn build: Merge 64ada7accbc 2019-11-22 22:15:40 +00:00
Jonas Devlieghere
70be4d27b2 [TableGen] Add backend to generate command guide for tools using libOption.
For lldb and dsymutil, the command guide is essentially a copy of its
help output generated by libOption. Making sure the two stay in sync is
tedious and error prone. Given that we already generate the help from a
tablegen file, we might as well generate the RST as well.

This adds a tablegen backend for generating Sphinx/RST command guides
from the tablegen file.

Differential revision: https://reviews.llvm.org/D70610
2019-11-22 14:10:17 -08:00
Petr Hosek
3ba73f04c0 Reland "[CMake] Support installation of InstrProfData.inc"
This header fragment is useful on its own for any consumer that wants
to use custom instruction profile runtime with the LLVM instrumentation.
The concrete use case is in Fuchsia's kernel where we want to use
instruction profile instrumentation, but we cannot use the compiler-rt
runtime because it's not designed for use in the kernel environment.
This change allows installing this header as part of compiler-rt.

Differential Revision: https://reviews.llvm.org/D64532
2019-11-22 14:09:46 -08:00
LLVM GN Syncbot
c6064e5a55 gn build: Merge ae8a8c2db6c 2019-11-22 21:49:47 +00:00
Julian Lettner
e9ff04cb02 [lit] Attempt to print test summary on CTRL+C 2019-11-22 10:57:33 -08:00
LLVM GN Syncbot
275824733a gn build: Merge f7170d17a84 2019-11-22 08:12:49 +00:00
LLVM GN Syncbot
942208e867 gn build: Merge aa981c1802d 2019-11-22 08:12:48 +00:00
LLVM GN Syncbot
dde6d8f10b gn build: Merge 95fe54931fd 2019-11-22 08:12:48 +00:00
Nico Weber
e851862563 gn build: (manually) merge dep from f65cfff6 2019-11-22 03:12:25 -05:00
Hiroshi Yamauchi
639311db31 [PGO][PGSO] DAG.shouldOptForSize part.
Summary:
(Split of off D67120)

SelectionDAG::shouldOptForSize changes for profile guided size optimization.

Reviewers: davidxl

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D70095
2019-11-21 14:16:00 -08:00
Peter Collingbourne
f0d31eaac6 gn build: check-clang depends on llvm-cxxfilt. 2019-11-20 16:25:54 -08:00
Evgenii Stepanov
60a4b60e92 Cherry-pick gtest fix for asan tests.
Summary:
681454dae4

Clone+exec death test allocates a single page of stack to run chdir + exec on.
This is not enough when gtest is built with ASan and run on particular
hardware.

With ASan on x86_64, ExecDeathTestChildMain has frame size of 1728 bytes.

Call to chdir() in ExecDeathTestChildMain ends up in
_dl_runtime_resolve_xsavec, which attempts to save register state on the stack;
according to cpuid(0xd) XSAVE register save area size is 2568 on my machine.

This results in something like this in all death tests:
  Result: died but not with expected error.
  ...
  [  DEATH   ] AddressSanitizer:DEADLYSIGNAL
  [  DEATH   ] =================================================================
  [  DEATH   ] ==178637==ERROR: AddressSanitizer: stack-overflow on address ...

PiperOrigin-RevId: 278709790

Reviewers: pcc

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D70332
2019-11-20 14:12:51 -08:00
LLVM GN Syncbot
7cb6af25c8 gn build: Merge a03435ec8e2 2019-11-20 15:28:09 +00:00
LLVM GN Syncbot
52ebfb3921 gn build: Merge 72d2929c52a 2019-11-20 14:15:38 +00:00
Alex Richardson
14c4d851d4 [update_cc_test_checks.py] Add the --function-signature flag
Summary:
This was added to update_test_checks.py in D68819 and I believe having it
in update_cc_test_checks.py is also useful.

Reviewers: jdoerfert, MaskRay

Reviewed By: MaskRay

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D70429
2019-11-20 13:23:26 +00:00
Alex Richardson
b8a003f5ca [UptestTestChecks][NFC] Share some common command line options code
Summary:
Add a function common.parse_commandline_args() that adds options common
to all tools (--verbose and --update-only) and returns the parsed
commandline arguments. I plan to use the shared parsing of --verbose in a
follow-up commit to remove most of the `if args.verbose:` checks in the
scripts.

Reviewers: xbolva00, MaskRay

Reviewed By: MaskRay

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D70428
2019-11-20 13:23:26 +00:00
LLVM GN Syncbot
0075942ee9 gn build: Merge 089c0f58149 2019-11-20 12:30:58 +00:00
LLVM GN Syncbot
46efcbce37 gn build: Merge ea8678d1c78 2019-11-20 12:10:51 +00:00
Tom Stellard
49241eb38d test-release.sh: Update to fetch source from GitHub
Summary:
This also changes the test-release.sh script to build using the monorepo
layout instead of copying sub-projects into llvm/tools or llvm/projects.

Reviewers: jdoerfert, hans

Reviewed By: hans

Subscribers: hans, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D70353
2019-11-19 11:13:05 -08:00
LLVM GN Syncbot
298b2eff0e gn build: Merge 7fe9435dc88 2019-11-19 16:34:22 +00:00
LLVM GN Syncbot
3ae6437414 gn build: Merge 765b1250f68 2019-11-19 15:33:25 +00:00
LLVM GN Syncbot
8d49aea2ea gn build: Merge e8a4c74f115 2019-11-19 10:34:24 +00:00
LLVM GN Syncbot
0f5b4869fb gn build: Merge c0fc29c4684 2019-11-19 09:55:01 +00:00
LLVM GN Syncbot
95b601a26f gn build: Merge 39285a0f02c 2019-11-19 09:55:01 +00:00
Sven van Haastregt
b2a53de233 [kate] Add various missing keywords
Patch by Pedro Olsen Ferreira.
2019-11-19 09:54:07 +00:00
Nico Weber
fd27d21be7 Revert "gn build: (manually) try to merge 1689ad27af"
This reverts commit e4ec2ecf6d4768d681a89263c0a4d29a7b7761ad.
1689ad27af was reverted as well.
2019-11-19 04:40:10 -05:00
LLVM GN Syncbot
d620a40a1a gn build: Merge 30e7ee3c4ba 2019-11-18 23:33:25 +00:00
Nico Weber
eadb59b6ec gn build: (manually) try to merge 1689ad27af 2019-11-18 18:33:04 -05:00
LLVM GN Syncbot
41ccf4a62c gn build: Merge 2054ed052f1 2019-11-18 15:48:35 +00:00
Graham Hunter
6e15087bc5 [SVE][CodeGen] Scalable vector MVT size queries
* Implements scalable size queries for MVTs, split out from D53137.

* Contains a fix for FindMemType to avoid using scalable vector type
  to contain non-scalable types.

* Explicit casts for several places where implicit integer sign
  changes or promotion from 32 to 64 bits caused problems.

* CodeGenDAGPatterns will treat scalable and non-scalable vector types
  as different.

Reviewers: greened, cameron.mcinally, sdesmalen, rovka

Reviewed By: rovka

Differential Revision: https://reviews.llvm.org/D66871
2019-11-18 12:30:59 +00:00
LLVM GN Syncbot
9763668ba8 gn build: Merge 631be5c0d41 2019-11-15 21:34:55 +00:00
LLVM GN Syncbot
c2abc2b10a gn build: Merge d6de5f12d48 2019-11-15 20:50:43 +00:00
LLVM GN Syncbot
8daa578612 gn build: Merge e6584b2b7b2 2019-11-15 12:57:26 +00:00
Alex Richardson
3e9ad7eb0a [update_cc_test_checks.py] Use -ast-dump=json to get mangled name
Summary:
Using c-index-test is fragile since it does not parse all the clang
arguments that are used in the RUN: line. This can result in incorrect
mangled names that do not match any of the generated IR.
For example macOS triples include a leading underscore (which was handled
with a hack in the current script). For the CHERI target we have added
new qualifiers which affect C++ name mangling, but will be included added
by update_cc_test_checks since it parses the source file with the host
triple because it ignores the -triple= argument passed to clang -cc1.

Using the new feature of including the mangled name in the JSON AST dump
(see D69564), we can parse the output of the RUN: command with
"-fsyntax-only -ast-dump=json" appended.
This should make the script less fragile and also forks one process less.

Reviewers: MaskRay, xbolva00

Reviewed By: MaskRay

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D69565
2019-11-15 12:52:57 +00:00
LLVM GN Syncbot
78beec860a gn build: Merge 16f38dda292 2019-11-15 05:27:58 +00:00
Paul Robinson
d53523508c Fix up lit's tests to run in a multi-config build environment.
Differential Revision: https://reviews.llvm.org/D70239
2019-11-14 11:24:41 -08:00
Sumanth Gundapaneni
a15681f3b2 Update lit infra to detect "MemoryWithOrigins' sanitizer build.
Differential Revision: https://reviews.llvm.org/D68399
2019-11-14 12:57:17 -06:00
Julian Lettner
95339f1d20 [lit] Better/earlier errors for empty runs
Fail early, when we discover no tests at all, or filter out all of them.

There is also `--allow-empty-runs` to disable test to allow workflows
like `LIT_FILTER=abc ninja check-all`.  Apparently `check-all` invokes
lit multiple times if certain projects are enabled, which would produce
unwanted "empty runs". Specify via `LIT_OPTS=--allow-empty-runs`.

There are 3 causes for empty runs:
1) No tests discovered.  This is always an error.  Fix test suite config
   or command line.
2) All tests filtered out.  This is an error by default, but can be
   suppressed via `--alow-empty-runs`.  Should prevent accidentally
   passing empty runs, but allow the workflow above.
3) The number of shards is greater than the number of tests.  Currently,
   this is never an error.  Personally, I think we should consider
   making this an error by default; if this happens, you are doing
   something wrong. I added a warning but did not change the behavior,
   since this warrants more discussion.

Reviewed By: atrick, jdenny

Differential Revision: https://reviews.llvm.org/D70105
2019-11-12 09:11:36 -08:00
LLVM GN Syncbot
b3ae00c383 gn build: Merge e9a06e06064 2019-11-12 03:49:52 +00:00
Nick Desaulniers
0bb73bce11 change LLVM_VERSION_SUFFIX default from svn to git
Summary:
Sayonara SVN!

Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>

Reviewers: tstellar, jyknight, lebedev.ri, smeenai, mgorny, hans, mclow.lists

Reviewed By: mgorny, hans

Subscribers: christof, libcxx-commits, llvm-commits, srhines

Tags: #libc, #llvm

Differential Revision: https://reviews.llvm.org/D70019
2019-11-11 09:10:20 -08:00