Commit Graph

11528 Commits

Author SHA1 Message Date
LLVM GN Syncbot 31049b3d2b [gn build] Port 1dad6247d2 2022-07-21 20:54:39 +00:00
LLVM GN Syncbot f6b5f24c19 [gn build] Port 4fcf8434dd 2022-07-21 00:53:15 +00:00
LLVM GN Syncbot 761e2a3abc [gn build] Port 23cf42e706 2022-07-20 20:02:41 +00:00
LLVM GN Syncbot 7a2a640969 [gn build] Port 857a78c04d 2022-07-20 16:42:40 +00:00
Roman Rusyaev 394a388d14 [TableGen] Add a location for a class definition that was forward-declared
This change improves ctags generation for tablegen files.

For the following example
```
class A;

class A {
  int a;
}
```
Previously, tags were generated only for a forward declaration of class 'A'.

This patch allows generating tags for the forward declarations
and further definition of class 'A'.

Reviewed By: barannikov88

Original patch by: rusyaev-roman (Roman Rusyaev)
Some adjustments by: nhaehnle (Nicolai Hähnle)

Differential Revision: https://reviews.llvm.org/D129935
2022-07-20 15:56:17 +02:00
Carlos Alberto Enciso f8c13754af Update the Windows packaging script.
As discussed on:
  https://discourse.llvm.org/t/build-llvm-release-bat-script-options/63146/6

Giving:
  call :function if errorlevel 1 exit /b 1

Due to a missing new line, the error code returned by the function
is taking as another argument.

Changed to use standard '||' to exit if the errorlevel greater than zero.

  call :function || exit /b 1

Reviewed By: hans

Differential Revision: https://reviews.llvm.org/D130154
2022-07-20 13:22:10 +01:00
Nicolai Hähnle 5a4033c367 update-test-checks: safely handle tests with #if's
There is at least one Clang test (clang/test/CodeGen/arm_acle.c) which
has functions guarded by #if's that cause those functions to be compiled
only for a subset of RUN lines.

This results in a case where one RUN line has a body for the function
and another doesn't. Treat this case as a conflict for any prefixes that
the two RUN lines have in common.

This change exposed a bug where functions with '$' in the name weren't
properly recognized in ARM assembly (despite there being a test case
that was supposed to catch the problem!). This bug is fixed as well.

Differential Revision: https://reviews.llvm.org/D130089
2022-07-20 11:23:49 +02:00
Carlos Alberto Enciso c96ddd7019 Update the Windows packaging script.
As discussed on:
https://discourse.llvm.org/t/build-llvm-release-bat-script-options/63146/6

- In stage1 use the following binaries from stage0:
  lld-link, llvm-lib and llvm-windres

Reviewed By: hans

Differential Revision: https://reviews.llvm.org/D130067
2022-07-20 07:15:13 +01:00
LLVM GN Syncbot 5b0e96a8ff [gn build] Port 5dd19ada57 2022-07-20 03:15:57 +00:00
LLVM GN Syncbot 41f6a21025 [gn build] Port 1b1f1c7786 2022-07-19 22:44:22 +00:00
Nico Weber 374db8fc2e [gn build] (manually) port c91ce94144 (HTMLForestResources.inc) 2022-07-19 16:51:30 -04:00
Nico Weber 6d7455bbcb [gn build] fix typo 2022-07-19 14:23:46 -04:00
Nico Weber 6bf817cf34 [gn build] (manually) port e939bf67e3 2022-07-19 14:23:26 -04:00
Yusra Syeda 6fb27bc2e3 [SystemZ][z/OS] Introduce CCAssignToRegAndStack to calling convention
Differential Revision: https://reviews.llvm.org/D127328
2022-07-19 13:55:25 -04:00
Nico Weber 2d8c74cf49 [gn build] (manually) port 4539b44148 (llvm-dwarfutil) 2022-07-19 11:50:54 -04:00
Nico Weber c46c1a24a4 [gn build] (manually) port 8711fcae27 2022-07-19 11:38:00 -04:00
LLVM GN Syncbot 5114e2c50a [gn build] Port 8ed702b83f 2022-07-19 06:42:58 +00:00
Carlos Alberto Enciso 83e922562f Update the Windows packaging script.
As discussed on:
  https://discourse.llvm.org/t/build-llvm-release-bat-script-options/63146/6

- Refactor the build/test steps into functions.
- Exit the script if the build directory already exists.

Reviewed By: hans

Differential Revision: https://reviews.llvm.org/D129559
2022-07-19 05:55:14 +01:00
LLVM GN Syncbot 42fdb487d7 [gn build] Port e24b390dbc 2022-07-18 17:45:05 +00:00
LLVM GN Syncbot 81a059a8d4 [gn build] Port 0f9d9edd24 2022-07-18 17:45:04 +00:00
LLVM GN Syncbot 429de1437d [gn build] Port 4b03ad6506 2022-07-18 12:40:10 +00:00
Nico Weber a586c15bbb [gn build] (manually) port 70914aa631 2022-07-18 08:06:57 -04:00
Valentin Clement 048aaab194
[flang][openacc] Use TableGen to generate the clause parser
This patch introduce an automatic generation of the clause parser from the TableGen
information.

New information can be stored directly in the TableGen file:
- The different aliases that a clause support.
- prefix before a value.
- whether a prefix is optional or not.

Makes it easier to add new clauses and also avoid some error (`write` clause incorrect until now).

This patch is updating only the OpenACC part. A patch with a modification of the OpenMP clause parser will follow.

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D106968
2022-07-18 09:26:57 +02:00
Yuanfang Chen e97b2d4138 [lit][unit] add a test for sanitizer-only test failures
Follow-up for 6b02c53936.
2022-07-15 18:36:38 -07:00
LLVM GN Syncbot c9e8c690ea [gn build] Port 4162aefad1 2022-07-16 00:15:08 +00:00
Yuanfang Chen ea7968bf76 [lit][test] explicitly use utf-8 encoding to write testing json file
Related test failure:
https://lab.llvm.org/buildbot/#/builders/178/builds/2527/steps/13/logs/FAIL__lit___googletest-timeout_py
2022-07-15 16:42:50 -07:00
Yuanfang Chen 6b02c53936 [lit][unit] make sure to include failed shard in test summary report
For sanitizer only failures, the tests all pass but still need to
put the shard in failed test summary.
2022-07-15 15:43:33 -07:00
Yuanfang Chen f32ccc2cca [lit] fix a bug in 4cd1c96d37
Only report failure for tests that actually runs.
2022-07-15 14:37:06 -07:00
Yuanfang Chen 4cd1c96d37 [reland][lit][unit] makes sure to print stderr when no test failures are found
In some situations, like running tests with sanitizers, all test
passes but the shard could still fail due to memory issues.

Relands 65769429c0
2022-07-15 13:26:30 -07:00
Yuanfang Chen 041bb94b9c Revert "[lit][unit] makes sure to print stderr when no test failures are found"
This reverts commit 65769429c0.

This patch is incomplete.
2022-07-15 13:26:30 -07:00
Yuanfang Chen 65769429c0 [lit][unit] makes sure to print stderr when no test failures are found
In some situations, like running tests with sanitizers, all test passes
but the shard could still fail due to memory issues.
2022-07-15 12:33:11 -07:00
Tom Stellard 51eaaa3092 github: Add a helpful message for issues without milestones
The /branch and /cherry-pick commands only work when an isssue has
a milestone, so give the user a helpful error message when they
try these commands on issue without a milestone.

Reviewed By: thieta, kwk

Differential Revision: https://reviews.llvm.org/D125744
2022-07-15 10:11:40 -07:00
LLVM GN Syncbot ca1cfa3f82 [gn build] Port 32d8d23cd0 2022-07-15 16:46:00 +00:00
LLVM GN Syncbot aff6a022a8 [gn build] Port 263dcf452f 2022-07-15 08:36:57 +00:00
LLVM GN Syncbot bc432c9634 [gn build] Port 7ced9fff95 2022-07-15 04:37:28 +00:00
LLVM GN Syncbot 426d7bc130 [gn build] Port a83004f4ff 2022-07-14 19:46:00 +00:00
LLVM GN Syncbot 728217cd60 [gn build] Port 1a8468ba61 2022-07-14 17:28:37 +00:00
Hans Wennborg 77350198d3 Pass -DLIBXML2_INCLUDE_DIRS in the Windows release package script
As pointed out on https://reviews.llvm.org/D129571 this seems to
be the preferred variable to set.
2022-07-14 19:21:51 +02:00
LLVM GN Syncbot fdcd95994d [gn build] Port 3e9cc543f2 2022-07-14 11:06:28 +00:00
David Green 3e0bf1c7a9 [CodeGen] Move instruction predicate verification to emitInstruction
D25618 added a method to verify the instruction predicates for an
emitted instruction, through verifyInstructionPredicates added into
<Target>MCCodeEmitter::encodeInstruction. This is a very useful idea,
but the implementation inside MCCodeEmitter made it only fire for object
files, not assembly which most of the llvm test suite uses.

This patch moves the code into the <Target>_MC::verifyInstructionPredicates
method, inside the InstrInfo.  The allows it to be called from other
places, such as in this patch where it is called from the
<Target>AsmPrinter::emitInstruction methods which should trigger for
both assembly and object files. It can also be called from other places
such as verifyInstruction, but that is not done here (it tends to catch
errors earlier, but in reality just shows all the mir tests that have
incorrect feature predicates). The interface was also simplified
slightly, moving computeAvailableFeatures into the function so that it
does not need to be called externally.

The ARM, AMDGPU (but not R600), AVR, Mips and X86 backends all currently
show errors in the test-suite, so have been disabled with FIXME
comments.

Recommitted with some fixes for the leftover MCII variables in release
builds.

Differential Revision: https://reviews.llvm.org/D129506
2022-07-14 09:33:28 +01:00
Kazu Hirata 611ffcf4e4 [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
Nico Weber e8388b7542 [gn build] fix building lldb after b5ccfeb6bf 2022-07-13 21:05:36 -04:00
Nico Weber 8b391cd908 [gn build] (semi-manually) Port 5acd471698 2022-07-13 18:37:00 -04:00
LLVM GN Syncbot 50c627b790 [gn build] Port 3ce78cbd23 2022-07-13 20:38:59 +00:00
Ben Langmuir 9044224575 [test] Fix macOS triple check
While the inferred host triple for macOS is something like
<arch>-apple-darwin, it's also valid to have <arch>-apple-macos.
Currently that globally changes whether an SDKROOT is provided in tests,
so make this check more portable.

Differential Revision: https://reviews.llvm.org/D129684
2022-07-13 13:36:16 -07:00
LLVM GN Syncbot cc35aa0d22 [gn build] Port a5c0638dec 2022-07-13 20:25:34 +00:00
Roman Rusyaev 9f70869545 Change shebang from python to python3 in update_cc_test_checks.py
All update_test_checks.py scripts were updated in this revision
https://reviews.llvm.org/D70730 except for update_cc_test_checks.py.

Reviewed By: barannikov88

Differential Revision: https://reviews.llvm.org/D129590
2022-07-13 13:02:54 -07:00
LLVM GN Syncbot 685a3d7b8d [gn build] Port 101d1e9b3c 2022-07-13 18:31:08 +00:00
David Green 95252133e1 Revert "Move instruction predicate verification to emitInstruction"
This reverts commit e2fb8c0f4b as it does
not build for Release builds, and some buildbots are giving more warning
than I saw locally. Reverting to fix those issues.
2022-07-13 13:28:11 +01:00
David Green e2fb8c0f4b Move instruction predicate verification to emitInstruction
D25618 added a method to verify the instruction predicates for an
emitted instruction, through verifyInstructionPredicates added into
<Target>MCCodeEmitter::encodeInstruction. This is a very useful idea,
but the implementation inside MCCodeEmitter made it only fire for object
files, not assembly which most of the llvm test suite uses.

This patch moves the code into the <Target>_MC::verifyInstructionPredicates
method, inside the InstrInfo.  The allows it to be called from other
places, such as in this patch where it is called from the
<Target>AsmPrinter::emitInstruction methods which should trigger for
both assembly and object files. It can also be called from other places
such as verifyInstruction, but that is not done here (it tends to catch
errors earlier, but in reality just shows all the mir tests that have
incorrect feature predicates). The interface was also simplified
slightly, moving computeAvailableFeatures into the function so that it
does not need to be called externally.

The ARM, AMDGPU (but not R600), AVR, Mips and X86 backends all currently
show errors in the test-suite, so have been disabled with FIXME
comments.

Differential Revision: https://reviews.llvm.org/D129506
2022-07-13 12:53:32 +01:00