Janek van Oirschot
bd9145c8c2
Reapply [AMDGPU] Avoid resource propagation for recursion through multiple functions ( #112251 )
...
I was wrong last patch. I viewed the `Visited` set purely as a possible
recursion deterrent where functions calling a callee multiple times are
handled elsewhere. This doesn't consider cases where a function is
called multiple times by different callers still part of the same call
graph. New test shows the aforementioned case.
Reapplies #111004 , fixes #115562 .
2024-11-15 18:40:05 +00:00
Kazu Hirata
be187369a0
[AMDGPU] Remove unused includes (NFC) ( #116154 )
...
Identified with misc-include-cleaner.
2024-11-13 21:10:03 -08:00
Janek van Oirschot
a18826d75c
[AMDGPU] Create local KnownBits in case DenseMap gets invalidated ( #111568 )
...
KnownBits retrieved from DenseMap may invalidate if insertion requires a
(re)growth.
Fixes https://github.com/llvm/llvm-project/issues/110930
2024-10-22 16:05:07 +01:00
Jay Foad
8d13e7b8c3
[AMDGPU] Qualify auto. NFC. ( #110878 )
...
Generated automatically with:
$ clang-tidy -fix -checks=-*,llvm-qualified-auto $(find
lib/Target/AMDGPU/ -type f)
2024-10-03 13:07:54 +01:00
Janek van Oirschot
bfce1aae76
[AMDGPU] MCExpr printing helper with KnownBits support ( #95951 )
...
Walks over the MCExpr and uses KnownBits to deduce whether an expression
is known and if so, prints said known value. Should support the most
common MCExpr cases for AMDGPU metadata.
2024-08-15 13:43:13 +01:00
Fangrui Song
057f28be3e
[MC] Remove unused MCAsmLayout declarations and includes
2024-07-01 17:47:13 -07:00
Fangrui Song
e25e8003ca
MCExpr::evaluateAsRelocatable: replace the MCAsmLayout parameter with MCAssembler
...
Continue the MCAsmLayout removal work started by 67957a45ee1ec42ae1671cdbfa0d73127346cc95.
2024-07-01 16:23:43 -07:00
Fangrui Song
f22af401a4
[MC,AMDGPU] Migrate MCAsmLayout to MCAssembler
2024-07-01 16:07:48 -07:00
Ivan Kosarev
13ed349c44
[AMDGPU][NFC] Rename AMDGPUVariadicMCExpr to AMDGPUMCExpr. ( #96618 )
...
Some of our custom expressions are not variadic and there seems to be
little benefit in mentioning the variadic nature of expression nodes in
the name anyway.
2024-06-25 15:32:09 +01:00
Janek van Oirschot
d86b68afd7
MCExpr-ify SIProgramInfo ( #88257 )
...
Convert members in SIProgramInfo affected by variables provided by AMDGPUResourceUsageAnalysis into MCExprs.
2024-05-09 13:02:32 +01:00
Janek van Oirschot
f7bebc1914
Reland [AMDGPU] Add AMDGPU specific variadic operation MCExprs ( #84562 )
...
Adds AMDGPU specific variadic MCExpr operations 'max' and 'or'.
Relands #82022 with fixes
2024-03-14 14:31:00 +00:00
Florian Mayer
0083c3eb83
Revert "[AMDGPU] Add AMDGPU specific variadic operation MCExprs" ( #84273 )
...
Reverts llvm/llvm-project#82022
Fails on hwasan build bot:
https://lab.llvm.org/buildbot/#/builders/236/builds/9874/steps/10/logs/stdio
2024-03-06 19:37:49 -08:00
Janek van Oirschot
bec2d105c7
[AMDGPU] Add AMDGPU specific variadic operation MCExprs ( #82022 )
...
Adds AMDGPU specific variadic MCExpr operations 'max' and 'or'.
2024-03-06 21:01:54 +00:00