[llvm-dev] [Attributor] Using Attributor framework for AMDGPU backend

Madhur Amilkanthwar via llvm-dev llvm-dev at lists.llvm.org
Mon Jan 4 11:03:16 PST 2021


Hi Johannes,
I am trying to use the Attributor framework for AMD GPU backend. We have an
attributor called amdgpu-flat-work-group-size which basically specifies the
min and max work group configuration for the kernel. Typically, this
attribute is given on kernels but it can also be present on device
functions. It needs to be propagated across the call graph with a merge
function which does "max" of the all incoming attributes of type
amdgpu-flat-work-group-size.

How do I write an Attributor pass for this?

I do understand that I need to model the attribute as a class (like
AANoUnwind) but I am not sure if I totally understand the significance of
pessimistic/optimistic fixpoint for this attribute.


-- 
*Disclaimer: Views, concerns, thoughts, questions, ideas expressed in this
mail are of my own and my employer has no take in it. *
Thank You.
Madhur D. Amilkanthwar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210105/e1a545bf/attachment.html>


More information about the llvm-dev mailing list