[llvm] [AMDGPU][Attributor] Infer `inreg` attribute in `AMDGPUAttributor` (PR #101609)

Sameer Sahasrabuddhe via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 4 18:47:52 PDT 2024


================
@@ -1014,6 +1015,100 @@ struct AAAMDGPUNoAGPR
 
 const char AAAMDGPUNoAGPR::ID = 0;
 
+struct AAAMDGPUInreg
----------------
ssahasra wrote:

I am also in favour calling it Uniform. It's an interesting choice. The attribute itself may be called ``inreg``, but it is merely an implementation of what is actually uniformity. But then, later if we want to infer ``inreg`` for some other reason Foo, I am not sure if that should be a yet another AAFoo, or it should be unified with AAUniform under a single AAInreg.

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


More information about the llvm-commits mailing list