[llvm] [KernelInfo] Implement new LLVM IR pass for GPU code analysis (PR #102944)

Joel E. Denny via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 26 11:10:22 PDT 2024


================
@@ -1788,6 +1788,11 @@ class TargetTransformInfo {
 
   /// @}
 
+  /// For \p F, call \p Body with the name and value of each launch bound.
+  void forEachLaunchBound(
----------------
jdenny-ornl wrote:

> This is a very specific, not general concept. The name and comment needs to elaborate for what the context is.

@jdoerfert Do you have any suggestion about the right way to document this?  Are there any additional attributes you would like for GCNTTIImpl::collectLaunchBounds or NVPTXTTIImpl::collectLaunchBounds to collect?

> Could this be a query to return the set of attributes and values, rather than the callback?

Done.

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


More information about the llvm-commits mailing list