[flang-commits] [flang] [mlir] [mlir][debuginfo] Add support for subprogram annotations (PR #110946)

Christian Ulmann via flang-commits flang-commits at lists.llvm.org
Fri Oct 4 12:20:08 PDT 2024


================
@@ -89,7 +89,8 @@ llvm.func @func_no_debug() {
 #spType1 = #llvm.di_subroutine_type<callingConvention = DW_CC_normal>
 #sp1 = #llvm.di_subprogram<
   compileUnit = #cu, scope = #module, name = "empty_types",
-  file = #file, subprogramFlags = "Definition", type = #spType1
+  file = #file, subprogramFlags = "Definition", type = #spType1,
+  annotations = #llvm.di_annotation<name = "foo", value = "bar">
----------------
Dinistro wrote:

Is this not somehow reflected in LLVM IR?

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


More information about the flang-commits mailing list