14542 Commits

Author SHA1 Message Date
Jerry Sun
cdacc9b5c7
[TableGen] [NFC] Refine TableGen code to comply with clang-tidy checks (#113318)
Code cleanups for TableGen files, changes includes function names,
variable names and unused imports.

---------

Co-authored-by: Matt Arsenault <Matthew.Arsenault@amd.com>
2024-10-29 11:10:54 -07:00
LLVM GN Syncbot
b0dd368d57 [gn build] Port b510cdb895b9 2024-10-29 18:01:23 +00:00
Brox Chen
528e975ac4
[AMDGPU][test]added unique and sort options for update_mc_test_check script (#111769)
add a unique and a sort option to the update_mc_test_check script.

These mc asm/dasm files are usually large in number of lines, and these
lines are mostly similar to each other. These options can be useful when
maintainer is merging or resolving conflicts by making the file
identifical

Also fixed a small issue in asm/dasm such that the auto generated header
line is
1. asm using ";" instead of "//" as comment marker
2. dasm using ";" instead of "#" as comment marker
2024-10-29 13:48:43 -04:00
Adam Yang
9a5b3a1bbc
[DXIL] Add GroupMemoryBarrierWithGroupSync intrinsic (#111884)
fixes #112974
partially fixes #70103

### Changes
- Added new tablegen based way of lowering dx intrinsics to DXIL ops.
- Added int_dx_group_memory_barrier_with_group_sync intrinsic in
IntrinsicsDirectX.td
- Added expansion for int_dx_group_memory_barrier_with_group_sync in
DXILIntrinsicExpansion.cpp`
- Added DXIL backend test case

### Related PRs
* [[clang][HLSL] Add GroupMemoryBarrierWithGroupSync intrinsic
#111883](https://github.com/llvm/llvm-project/pull/111883)
* [[SPIRV] Add GroupMemoryBarrierWithGroupSync intrinsic
#111888](https://github.com/llvm/llvm-project/pull/111888)
2024-10-29 10:17:35 -07:00
LLVM GN Syncbot
af44976cad [gn build] Port 6128ff663076 2024-10-29 15:18:09 +00:00
LLVM GN Syncbot
f906d765ba [gn build] Port 5ea694816b56 2024-10-29 15:18:08 +00:00
Nico Weber
d43e4ce77d Revert "[gn] port b1be21394e9c"
b1be21394e9c was reverted in 3ac75ee8ec.

This reverts commit 18f4b7e4a862c11816e62cc72fb2a4ca8fac1987, as well
as follow-ups a69d2a18d207947a25838dd01d2116bee384b75b and
4a6b56960f445d111adc9aef799acad8c6ca41f0.
2024-10-29 11:17:11 -04:00
Jerry Sun
00ca2071e0
[TableGen] [NFC] Remove unused includes in TableGen BE (#113725)
split PR as requested from
https://github.com/llvm/llvm-project/pull/113318.

Removes unused imports in TableGen BE
2024-10-28 20:26:10 -07:00
LLVM GN Syncbot
1164bd7747 [gn build] Port e146c1867e8d 2024-10-28 11:56:44 +00:00
LLVM GN Syncbot
2a4bab3fac [gn build] Port cfde4fbccf5d 2024-10-28 11:56:43 +00:00
LLVM GN Syncbot
595ec4e4be [gn build] Port 5aa1275d03b6 2024-10-28 11:56:42 +00:00
LLVM GN Syncbot
cbaecb5d29 [gn build] Port 3d6923dbac16 2024-10-28 11:56:42 +00:00
LLVM GN Syncbot
233e64d8e4 [gn build] Port 0be1883c36fc 2024-10-28 11:56:40 +00:00
Martin Storsjö
ef9629c64a Revert "Add extendhfxf2 into compiler rt (#111099)"
This reverts commit 5f7bad07b9d5b6c5cfa8c16a4e62cf1e128725be.

These tests fail to build in multiple configurations, see
https://github.com/llvm/llvm-project/pull/111099.
2024-10-26 12:34:45 +03:00
B I Mohammed Abbas
5f7bad07b9
Add extendhfxf2 into compiler rt (#111099)
Retry pr #109090 with updated extendhfxf2 test
2024-10-25 20:05:23 -04:00
Abhina Sree
9d88543301
[AIX] Use internal lit shell for TableGen instead of a global setting (#113627)
This is to address the latest lit regressions
https://lab.llvm.org/buildbot/#/builders/64/builds/1285 caused by using
the internal lit shell. This change will limit using the internal lit
shell to TableGen on AIX so we do not hit these regressions.
2024-10-25 13:06:02 -04:00
LLVM GN Syncbot
9ea6fcd02b [gn build] Port 1f2b7ae6d789 2024-10-25 16:47:08 +00:00
LLVM GN Syncbot
a3dd6000a7 [gn build] Port c4248fa3edd3 2024-10-25 13:20:15 +00:00
LLVM GN Syncbot
83e7e6a0ff [gn build] Port 2e43a304f10f 2024-10-25 13:20:14 +00:00
Nico Weber
4a6b56960f [gn] try to port b1be21394e9c even more
Bots are now failing check-hwasan with

    llvm-lit: .../llvm/utils/lit/lit/llvm/subst.py:133: fatal: Did not find
        hwasan_symbolize in .../out/gn/stage2_unix/bin

This time it's the right fix for sure!
2024-10-25 09:19:21 -04:00
Nico Weber
a69d2a18d2 [gn] try to port b1be21394e9c more
Bots are currently failing check-hwasan with

    llvm-lit: .../llvm/utils/lit/lit/llvm/subst.py:133: fatal: Did not find
        hwasan_symbolize in /.../out/gn/lib/clang/20/lib/linux

Maybe this fixes that.

See also llvm/utils/gn/secondary/compiler-rt/lib/hwasan/scripts/BUILD.gn.
2024-10-25 09:05:29 -04:00
Nico Weber
18f4b7e4a8 [gn] port b1be21394e9c 2024-10-25 00:24:42 -07:00
Nico Weber
93ee9d1c54 [gn] port 105d54726b1d7 more
Also, it's really b852fb1ec5f, not 105d54726b1d7.
2024-10-25 00:21:50 -07:00
Nico Weber
5827334ed2 [gn] port 105d54726b1d7 (lldbValueObject) 2024-10-25 00:15:58 -07:00
Nico Weber
8c2e8b5124 [gn] port a14a83d9a102 2024-10-24 16:32:09 -07:00
Nico Weber
6d8d7a3acd [gn] disable building libc++ shared lib
It's currently broken by #91651. Stop buildling libcxx src files
until that is sorted out.
2024-10-24 10:57:44 -07:00
Nico Weber
9a8292f914 [gn build] Port 8a12e0131f3d 2024-10-24 09:20:06 -07:00
Nico Weber
2646ce2a22 [gn] port 522f34cfff693fd3f (PPC AsmMatcher dep)
Similar to 4168a2e9de35f. See also comment on #113482.
2024-10-24 09:09:11 -07:00
Nico Weber
907c136388 [gn] port 6512a8d yet more
Follow-up to a21573bb9973 which had a typo.
2024-10-24 08:58:14 -07:00
Nico Weber
a21573bb99 [gn] port 6512a8d more
24293e690 added the files added there, but didn't do the tblgen changes.
2024-10-24 08:52:23 -07:00
Daniel Paoliello
4583dbc7b8
[lit][aix] Always use internal lit shell on AIX (#113355)
Diff on AIX doesn't have all the required features used in tests (see
<https://github.com/llvm/llvm-project/pull/108871> and
<https://github.com/llvm/llvm-project/pull/112997#issuecomment-2429656192>),
so always use the internal shell.
2024-10-23 12:18:02 -07:00
Rahul Joshi
743f839a88
[NFC][LLVM][TableGen] Change RecordKeeper::getClass to return const pointer (#112261)
Change `RecordKeeper::getClass` to return const record pointer. This is
a part of effort to have better const correctness in TableGen backends:


https://discourse.llvm.org/t/psa-planned-changes-to-tablegen-getallderiveddefinitions-api-potential-downstream-breakages/81089
2024-10-23 11:32:05 -07:00
Arthur Eubanks
62cb1a3b0b [gn build] Port b8930cd13d48 2024-10-22 17:38:21 +00:00
Arthur Eubanks
50df49e02a [gn build] Port 6c4267fb1779 2024-10-22 17:38:11 +00:00
Arthur Eubanks
24293e6900 [gn build] Port 6512a8dd8c0a 2024-10-22 17:32:06 +00:00
Arthur Eubanks
c08a5c15e1 [gn build] Port 470a59919207 2024-10-22 17:32:05 +00:00
Arthur Eubanks
2cbe7c2b9e [gn build] Port 1295d2e6da2f 2024-10-22 17:32:05 +00:00
Rahul Joshi
9de0566fcf
[NFC][TableGen] Delete unused class member (#113165)
Delete unused class member in `SearchableTableEmitter` class.
2024-10-21 14:03:34 -07:00
LLVM GN Syncbot
006fb0904d [gn build] Port 54c93aabec96 2024-10-21 16:26:55 +00:00
David Spickett
08330dba92 [llvm][llvm-lit] Fix missing word in --use-unique-output-file-name help
Fixes 22e21bc1e796406c89e4a24fd81a1623ab2d7d85.
2024-10-21 12:55:25 +00:00
David Spickett
22e21bc1e7 [llvm][llvm-lit] Correct description of --use-unique-output-file-name
The initial version of this feature would use the output file name
if it could, but in switching to temp files I forgot to replicate that
behaviour.

What happens now is we always use a tempfile name and the output
path is a template for that. I think the current behaviour
still makes sense so I'm just correcting the documentation.
2024-10-21 12:44:12 +00:00
David Spickett
8507dbaec3
[llvm][llvm-lit] Add option to create unique result file names if results already exist (#112729)
When running a build like:
```
ninja check-clang check-llvm
```
Prior to my changes you ended up with one results file, in this specific case Junit XML:
```
results.xml
```
This would only include the last set of tests lit ran, which were for
llvm. To get around this, many CI systems will run one check target,
move the file away, then run another, somehow propgating the return code
as well.
```
rectode=0
for target in targets:
  ninja target
  retcode=$?
  mv results.xml results-${target}.xml
<report the overall return code>
```
I want to use something like this Buildkite reporting plugin in CI, which needs to have all the results available:
https://buildkite.com/docs/agent/v3/cli-annotate#using-annotations-to-report-test-results

Modifying CI's build scripts for Windows and Linux is a lot of work. So
my changes instead make lit detect an existing result file and modify
the file name to find a new file to write to. Now you will get:
```
results.xml results.<tempfile generated value>.xml
```
This will work for all result file types since I'm doing it in the base
Report class. Now you've got separate files, it's easy to collect them
with `<path>/*.xml`.

Note that the `<tempfile generated value>` is not ordered.
2024-10-21 10:43:45 +01:00
David Spickett
4f06f79c03 [llvm][llvm-lit] Handle testsuite elapsed time being None
The time for all testsuites will always exist because lit
measures it itself. For a given testsuite, I guess that it
can be None if for example the suite is empty.
2024-10-21 09:10:35 +00:00
LLVM GN Syncbot
a705838394 [gn build] Port 911a6f2fcc71 2024-10-21 09:05:32 +00:00
LLVM GN Syncbot
5a47d48034 [gn build] Port aa7f377c965c 2024-10-20 14:01:29 +00:00
Nico Weber
5aec88f0e6 [hwasan], [gn]: Fix formatting of hwasan cmake; re-sync gn file for b515d9ea1e43 2024-10-19 09:57:56 -04:00
LLVM GN Syncbot
561f9155fb [gn build] Port b515d9ea1e43 2024-10-19 01:37:17 +00:00
Peter Collingbourne
1784aca904 gn build: Sync hwasan assembly file source list. 2024-10-18 18:36:01 -07:00
LLVM GN Syncbot
f5bd36aece [gn build] Port 1d09925b4a6f 2024-10-18 23:18:50 +00:00
Luke Drummond
b55c52c047 Revert "Renormalize line endings whitespace only after dccebddb3b80"
This reverts commit 9d98acb196a40fee5229afeb08f95fd36d41c10a.
2024-10-18 21:16:50 +01:00