[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:25:37 PDT 2024


================
@@ -338,6 +338,11 @@ class TargetSubtargetInfo : public MCSubtargetInfo {
   /// the pass, with architecture specific overrides providing the information
   /// where they are implemented.
   virtual bool supportsInitUndef() const { return false; }
+
+  /// For \p F, call \p Body with the name and value of each launch bound.
+  virtual void forEachLaunchBound(
+      const Function &F,
+      std::function<void(StringRef Name, unsigned Value)> Body) const {}
----------------
jdenny-ornl wrote:

Everything appears to be addressed except [the part that continues here](https://github.com/llvm/llvm-project/pull/102944#discussion_r1773738493).  Resolving.

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


More information about the llvm-commits mailing list