14947 Commits

Author SHA1 Message Date
LLVM GN Syncbot
9738f20bb0 [gn build] Port cf50936b23ac 2025-02-21 17:56:55 +00:00
wanglei
89e80abbc5
[lldb][LoongArch] Complete register alias name in AugmentRegisterInfo
Fixes: https://github.com/llvm/llvm-project/issues/123903

Reviewed By: DavidSpickett, SixWeining

Pull Request: https://github.com/llvm/llvm-project/pull/124059
2025-02-21 10:59:27 +08:00
LLVM GN Syncbot
6d84fae60e [gn build] Port 19af8581d51b 2025-02-20 19:07:06 +00:00
kper
c48e0c182c
[lldb][RISC-V] Extended if conditions to support alias names for registers (#124475)
Extending the conditionals in `AugmentRegisterInfo` to support
alternative names for lldb.

Fixes #124023

There is an exception with register `X8` which is not covered here but
more details can be found in the issue
https://github.com/llvm/llvm-project/issues/127900.
2025-02-20 16:23:53 +00:00
Hans Wennborg
6e047a5ab4
Add Wasm, RISC-V, BPF, and NVPTX targets back to Windows release packaging (#127794)
In #106059 we reduced the targets to those supported by Windows (X86 and
ARM) to avoid running into size limitations of the NSIS compiler.

Since then, people complained about the lack of Wasm [1], RISC-V [2],
BPF [3], and NVPTX [4]. These do seem to fit in the installer (at least
for 20.1.0-rc2), so let's add them back.

[1]
https://discourse.llvm.org/t/llvm-19-x-release-third-party-binaries/80374/26
[2]
https://discourse.llvm.org/t/llvm-19-x-release-third-party-binaries/80374/53
[3] https://github.com/llvm/llvm-project/issues/127120
[4]
https://github.com/llvm/llvm-project/pull/127794#issuecomment-2668677203
2025-02-20 11:02:33 +01:00
LLVM GN Syncbot
44dc5729b0 [gn build] Port 507e413a2d85 2025-02-20 08:12:26 +00:00
Jinsong Ji
5d4998bc02
UpdateTestChecks: Don't check meta details in func definition w/--global none (#124205)
When --check-globals none, we skipped all the globals in check lines.
However, we are still checking the meta info in function defintion.

The generated checks are still sensitive to metadata changes.

This is to scrub the meta info and match them with {{.*}} instead.
2025-02-19 20:29:51 -05:00
LLVM GN Syncbot
84eacd302e [gn build] Port 26e375046dbd 2025-02-19 20:12:30 +00:00
LLVM GN Syncbot
738f3a1493 [gn build] Port 02c9dae81497 2025-02-19 00:30:15 +00:00
LLVM GN Syncbot
beaca53947 [gn build] Port 0f6c18e8c65b 2025-02-18 21:44:34 +00:00
LLVM GN Syncbot
8983d7a521 [gn build] Port 5ecce45ea298 2025-02-18 20:53:56 +00:00
Nico Weber
78703c176f [gn] port e235fcb582ee more (bolt TargetConfig.def) 2025-02-18 15:53:31 -05:00
Rahul Joshi
1fd06001a9
[NFC][TableGen] Cleanup iterators in CodeGenSchedule.h (#127401)
- Use range for loops for processor models and schedule classes.
- Cleanup duplicated or unused iterators in CodeGenSchedule.h
2025-02-18 08:57:22 -08:00
Nico Weber
09c2441037 [gn] port e235fcb582ee (bolt TargetConfig.def) 2025-02-18 08:41:49 -05:00
Nico Weber
e5ce1d3a56 [gn] Move write_target_def_file to its own .gni file 2025-02-18 08:41:17 -05:00
Matt Arsenault
ab2d330fea
TableGen: Generate reverseComposeSubRegIndices (#127050)
This is necessary to enable composing subregisters in peephole-opt.
For now use a brute force table to find the return value. The worst
case target is AMDGPU with a 399 x 399 entry table.
2025-02-17 22:11:26 +07:00
Ricardo Jesus
80b08d1bb8
[TableGen] Add support for per-write cycle tunables (#125870)
This patch adds support for describing per-write resource cycle counts
for ReadAdvance records via a new optional field called `tunables`.
    
This makes it possible to declare ReadAdvance records such as:
    
      def : ReadAdvance<Read_C, 1, [Write_A, Write_B], [2]>;
    
The above will effectively declare two entries in the ReadAdvance
table for Read_C, one for Write_A with a cycle count of 1+2, and one for
Write_B with a cycle count of 1+0 (omitted values are assumed 0).
    
The field `tunables` provides a list of deltas relative to the base
`cycle` count of the ReadAdvance. Since the field is optional and
defaults to a list of 0's, this change doesn't affect current targets.
2025-02-17 11:32:47 +00:00
Kazu Hirata
e81f7ca637
[TableGen] Avoid repeated hash lookups (NFC) (#127373) 2025-02-16 08:16:10 -08:00
Aiden Grossman
344058d490 [Github] Delete count_running_jobs.py script
This patch deletes the count_running_jobs.py script. Its functionality has
been mostly subsumed by the metrics container running in the new premerge
infra. This script also has not been used in a while.
2025-02-14 21:42:25 +00:00
LLVM GN Syncbot
ec17161c6e [gn build] Port b41b86a907f6 2025-02-14 17:39:54 +00:00
LLVM GN Syncbot
b5aa1c4783 [gn build] Port 63c1be724924 2025-02-13 19:42:26 +00:00
Arthur Eubanks
7d9a12cec2 [gn build] Manually port 89d636ba 2025-02-13 18:18:30 +00:00
Matt Arsenault
48897774a5 TableGen: Add missing consts to CodeGenSubRegIndex 2025-02-13 16:49:24 +07:00
LLVM GN Syncbot
37952ef75f [gn build] Port 92f916faba13 2025-02-12 22:22:01 +00:00
Rahul Joshi
bee9664970
[TableGen] Emit OpName as an enum class instead of a namespace (#125313)
- Change InstrInfoEmitter to emit OpName as an enum class
  instead of an anonymous enum in the OpName namespace.
- This will help clearly distinguish between values that are 
  OpNames vs just operand indices and should help avoid
  bugs due to confusion between the two.
- Rename OpName::OPERAND_LAST to NUM_OPERAND_NAMES.
- Emit declaration of getOperandIdx() along with the OpName
  enum so it doesn't have to be repeated in various headers.
- Also updated AMDGPU, RISCV, and WebAssembly backends
  to conform to the new definition of OpName (mostly
  mechanical changes).
2025-02-12 08:19:30 -08:00
Nico Weber
e5268191e6 [gn] port fc4d87100a0 2025-02-12 09:50:32 -05:00
LLVM GN Syncbot
caa9fae2e7 [gn build] Port cc7e83601d75 2025-02-12 04:14:13 +00:00
Aaron Siddhartha Mondal
55ae118db7
[GitHub] Skip undefcheck if no relevant files changed (#126749)
If the list of filtered files was empty the check would process every
file in the diff.
2025-02-11 18:43:27 +01:00
Rahul Joshi
dbe1dafdbd
[NFC][TableGen] Code cleanup in InstrInfoEmitter.cpp (#126578)
- Use range for loops and `enumerate` in a few places.
- Use `StringRef` for `TargetName` in `InstrInfoEmitter::run`.
- Use `\n` character for new line instead of string.
- Use StringRef in `InstrNames` (instead of std::string) and 
  avoid string copies.
2025-02-11 07:02:37 -08:00
LLVM GN Syncbot
d89c23b487 [gn build] Port bf2d4eb7030b 2025-02-11 14:23:29 +00:00
David Spickett
19fc8e3846 [GitHub] Correct word in commit access request greeting 2025-02-11 10:28:31 +00:00
Rahul Joshi
0f674cce82
[NFC][LLVM] Remove unused TargetIntrinsicInfo class (#126003)
Remove `TargetIntrinsicInfo` class as its practically unused (its pure
virtual with no subclasses) and its references in the code.
2025-02-10 14:56:30 -08:00
Tom Stellard
cd26c112b2
[llvm][GitHub] Move PR project status to Done once backport PR is made (#126374)
It's common to use the /cherry-pick command on a PR to create a backport
request. However, this creates a lot of clutter in the LLVM Release
Status project, because we end up with two items in the project, one for
the original PR and one for the new PR.

This change will set the status of the original PR to Done once the new
PR (for the release branch) is created. This will save release managers
a lot of work of having to manually updated the status for PRs that
contain backport requests.
2025-02-10 13:06:51 -08:00
LLVM GN Syncbot
d11b9b7275 [gn build] Port f332455dd9a2 2025-02-10 20:26:39 +00:00
Rahul Joshi
55015e150b
[NFC][TableGen] Delete getLogicalOperandType from InstrInfoEmitter (#125951)
Delete `getLogicalOperandType` function from InstrInfoEmitter as no
backend seems to use it.
2025-02-10 09:08:49 -08:00
Rahul Joshi
8380b5c749
[TableGen][InstrInfo] Cull mapping that have not been enabled/not needed (#126137)
- Detect whether logical operand mapping/named operand mappings have 
  been enabled in a previous pass over instructions and execute the
  relevant emission code only if those mappings are enabled.
- For these mappings, skip the fixed set of predefined instructions as
  they won't have these mappings enabled.
- Emit operand type mappings only for X86 target, as they are only used
  by X86 and look for X86 specific `X86MemOperand`.
- Cleanup `emitOperandTypeMappings` code: remove code to handle empty
  instruction list and use range for loops.
2025-02-10 08:16:12 -08:00
David Spickett
83af335ea4
[llvm][lit] Update regexes in Xunit test (#126527)
I got a report that downstream this test failed and the cause was that
it took longer than the 1 second we expected to run one of the test
cases.

This test doesn't need to be that specific, so I am updating all the
time regexes to be the same one that allows 0-9 any number of digits,
requires a decimal point, then 0-9 any number of digits for the final
part.
2025-02-10 16:07:57 +00:00
Donát Nagy
729416e586
[analyzer][NFC] Remove "V2" from ArrayBoundCheckerV2.cpp (#126094)
Previously commit 6e17ed9b04e5523cc910bf171c3122dcc64b86db deleted the
obsolete checker `alpha.security.ArrayBound` which was implemented in
`ArrayBoundChecker.cpp` and renamed the checker
`alpha.security.ArrayBoundV2` to `security.ArrayBound`.

This commit concludes that consolidation by renaming the source file
`ArrayBoundCheckerV2.cpp` to `ArrayBoundChecker.cpp` (which was "freed
up" by the previous commit).
2025-02-10 13:25:07 +01:00
Craig Topper
04e5ea5237 [TableGen] Remove recursive walk of linked list from ContractNodes. NFC
After f9250401ef120a4605ad67bb43d3b25500900498, this function is
tail recursive so it was straightforward to convert this to iteratively
walk the linkd list.
2025-02-09 14:23:34 -08:00
Kazu Hirata
af6c6992cf
[TableGen] Avoid repeated hash lookups (NFC) (#126433) 2025-02-09 13:35:58 -08:00
Kazu Hirata
87ae9547ea
[TableGen] Avoid repeated hash lookups (NFC) (#126405) 2025-02-09 08:56:17 -08:00
Craig Topper
4aa71f0d4c [TableGen] Fix an unused variable warning. NFC 2025-02-08 16:03:44 -08:00
Craig Topper
f9250401ef [TableGen] Move formation of MoveSiblingMatcher earlier in ContractNodes. NFC
ContractNodes recursively walks forward through a linked list. During
this recursion, Matchers are combined into other Matchers.

Previously the formation of MoveSiblingMatcher was after the
recursive call so it occurred as we were unwinding. If a
MoveSiblingMatcher was formed, we would recursively walk forward
to the end of the linked list again which isn't efficient.

To make this more efficient, move the formation of MoveSiblingMatcher
to the forward pass. Add additional rules to unfold MoveSiblingMatcher
if it would be more efficient to use CheckChildType, CheckChildInteger,
CheckChildSame, etc.

As an added benefit, this makes the function tail recursive which
the compiler can better optimize.
2025-02-08 15:58:12 -08:00
LLVM GN Syncbot
40ce8fd843 [gn build] Port 69b8cf4f0621 2025-02-08 16:35:01 +00:00
Kazu Hirata
dbe812220c
[TableGen] Avoid repeated hash lookups (NFC) (#126344) 2025-02-08 00:48:30 -08:00
LLVM GN Syncbot
756dab4c25 [gn build] Port 76985fd7cafd 2025-02-07 22:19:30 +00:00
Nico Weber
2e0c0931bc [gn] fix bug in bfba6215cec2 2025-02-07 16:14:40 -05:00
Rahul Joshi
d705e7e9eb
[NFC][TableGen] Code cleanup in CodeGenMapTable EmitMapTable (#126157)
- Emit C++17 nested namespaces.
- Shorten the binary search table name to just `Table` since its
declared in the scope of each search function.
- Use `using namespace XXX` in the search function to avoid emitting the
Target Inst Namespace prefix in the table entries.
- Add short-cut handling of `TableSize` == 0 case (verified in Hexagon
target).
- Use `SetVector` in `ColFieldValueMap` to get automatic deduplication
and eliminate manual deduplication code.
- Use range for loops.
2025-02-07 11:47:49 -08:00
Nick Sarnie
bfba6215ce
[clang-linker-wrapper][lit] Fix OpenMP SPIR-V ELF test again (#126142)
I was able to reproduce the issue with the sanitizer buildbot scripts
and confirmed this fixes it.

The issue was the quotes, `"0"` is true in Python so we incorrectly
added the `spirv-tools` feature even when the CMake variable was false.
I don't know why it didn't always fail.

Also add the var to clang's `BUILD.gn` which matches what we do for
other similar variables, however I don't think it has any effect on CI
here.

Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
2025-02-07 18:02:48 +00:00
Kazu Hirata
0afbefa282
[TableGen] Avoid repeated hash lookups (NFC) (#126190) 2025-02-07 08:00:21 -08:00