[clang] [llvm] [AMDGPU] Convert AMDGPUResourceUsageAnalysis pass from Module to MF pass (PR #102913)

Scott Linder via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 23 14:36:29 PDT 2024


================
@@ -1755,6 +1755,56 @@ As part of the AMDGPU MC layer, AMDGPU provides the following target specific
 
      =================== ================= ========================================================
 
+Function Resource Usage
+-----------------------
+
+The function resource information (e.g., number of VGPRs) required depends on
+all of its callees' function resources. The expression to denote these
+resources should, therefore, be described as the propagative of its callees'
+equivalent expressions. Said expressions are generated and emitted (as symbols)
+by the compiler when compiling to either assembly or object format and should
+not be overwritten or redefined.
+
+The following describes all emitted function resource usage information:
----------------
slinder1 wrote:

Here too I think "information" could be replaced with "symbols". Then there are only two terms to keep track of:

* "Resource usage": The concept
* "Resource usage symbols": The interface we expose to access the usage

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


More information about the cfe-commits mailing list