[flang-commits] [flang] [flang][debug] Generate DISubprogramAttr for omp::TargetOp. (PR #138039)

Sergio Afonso via flang-commits flang-commits at lists.llvm.org
Tue May 13 04:30:12 PDT 2025


================
@@ -103,6 +104,37 @@ bool debugInfoIsAlreadySet(mlir::Location loc) {
   return false;
 }
 
+// Generates the name for the artificial DISubprogram that we are going to
+// generate for omp::TargetOp. Its logic is borrowed from
+// getTargetEntryUniqueInfo and
+// TargetRegionEntryInfo::getTargetRegionEntryFnName to generate the same name.
+// But even if there was a slight mismatch, it is not a problem because this
+// name is artifical and not important to debug experience.
----------------
skatrak wrote:

```suggestion
// name is artificial and not important to debug experience.
```

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


More information about the flang-commits mailing list