[Mlir-commits] [flang] [mlir] [mlir][debuginfo] Add support for subprogram annotations (PR #110946)
Christian Ulmann
llvmlistbot at llvm.org
Mon Oct 7 04:14:17 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:
Nit: This is missing a check that attempts to find this in the produced LLVM IR.
https://github.com/llvm/llvm-project/pull/110946
More information about the Mlir-commits
mailing list