[llvm] [DebugInfo][NVPTX] Adding support for `inlined_at` debug directive in NVPTX backend (PR #170239)

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 2 10:45:44 PST 2025


================
@@ -722,6 +717,18 @@ class DwarfDebug : public DebugHandlerBase {
 
   void skippedNonDebugFunction() override;
 
+  /// Target-specific hook for custom initialization,
+  /// default implementation is empty, only being used for NVPTX target
+  virtual void beginFunctionHook(const MachineFunction &MF) {}
----------------
dwblaikie wrote:

We don't /usually/ use the term `Hook` in callbacks - ideally we can find some generalization where the function does the work, and just does different work for Nvidia targets. In the case of "it's no work on non-nvidia" it can just be called `beginFunction` and sometimes nothing happens and that's OK.



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


More information about the llvm-commits mailing list