[llvm] [AMDGPU] Introduce ABI occupancy for object linking (PR #199475)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Fri May 29 19:57:21 PDT 2026


================
@@ -553,6 +553,12 @@ static cl::opt<bool, true> EnableObjectLinking(
     cl::location(AMDGPUTargetMachine::EnableObjectLinking), cl::init(false),
     cl::Hidden);
 
+static cl::opt<unsigned, true>
+    ABIWavesPerEU("amdgpu-abi-waves-per-eu",
+                  cl::desc("Override ABI occupancy in waves per EU"),
+                  cl::location(AMDGPUTargetMachine::ABIWavesPerEU), cl::init(0),
+                  cl::Hidden);
----------------
shiltian wrote:

Done. The clang driver override will be in a follow-up.

https://github.com/llvm/llvm-project/pull/199475


More information about the llvm-commits mailing list