Hi All,
I was hoping that someone would help me understand why TVM adds debug info to the generated LLVM IR since there is no source file/code it can be attached to. Given this limitation, the debug info is of very little use for actual debugging purpose. Does it serve any other purpose? Is there an option to not emit debug info at all?
This is all I see being captured in the debug info:
`!1 = !DIFile(filename: "IRModule.CodeGenLLVM", directory: ".")
!2 = distinct !DISubprogram(name: "tvmgen_default_fused_layout_transform", scope: !1, file: !1, type:
!3, flags: DIFlagPrototyped, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !8)
...
!9 = !DILocalVariable(name: "args", arg: 1, scope: !2, file: !1, type: !6)
!10 = !DILocalVariable(name: "arg_type_ids", arg: 2, scope: !2, file: !1, type: !7)
...
!15 = !DILocation(line: 0, scope: !2) <=== Line number is always set to 0 for obvious reasons
Thanks, Jyotsna