search for: scopelin

Displaying 20 results from an estimated 57 matches for "scopelin".

Did you mean: scopeline
2018 Jan 12
2
StripDeadDebugInfo for static inline functions.
...untimeVersion: 0, emissionKind: 1, enums: !2, retainedTypes: !3, subprograms: !12, globals: !73) ... !12 = !{!13, !54, !57, !60, !61, !62, !65, !66, !67, !68, !69} !13 = distinct !DISubprogram(name: "main", scope: !14, file: !14, line: 15, type: !15, isLocal: false, isDefinition: true, scopeLine: 15, isOptimized: true, variables: !17) ... !54 = distinct !DISubprogram(name: ... !57 = distinct !DISubprogram(name: ... !60 = distinct !DISubprogram(name: ... !61 = distinct !DISubprogram(name: ... !62 = distinct !DISubprogram(name: ... !65 = distinct !DISubprogram(name: ... !66 = distin...
2017 Jun 15
4
CloneFunctionInto produces invalid debug info
...metadata %struct.MyFunnyClass** %this.addr, metadata !49, metadata !31), !dbg !50 ... rest of function code } !46 = distinct !DISubprogram(name: "MyFunnyClass", linkageName: "_ZN12MyFunnyClassC2Ev", scope: !15, file: !1, line: 1, type: !25, isLocal: false, isDefinition: true, scopeLine: 1, flags: DIFlagArtificial | DIFlagPrototyped, isOptimized: false, unit: !0, declaration: !47, variables: !2) and the cloned function: ; Function Attrs: noinline nounwind uwtable define linkonce_odr void @_ZN12MyFunnyClassC2EvCloned(%struct.MyFunnyClass* %this, { [6 x i8*] }* %newparam) unname...
2018 Jan 12
2
StripDeadDebugInfo for static inline functions.
...untimeVersion: 0, emissionKind: 1, enums: !2, retainedTypes: !3, subprograms: !12, globals: !73) ... !12 = !{!13, !54, !57, !60, !61, !62, !65, !66, !67, !68, !69} !13 = distinct !DISubprogram(name: "main", scope: !14, file: !14, line: 15, type: !15, isLocal: false, isDefinition: true, scopeLine: 15, isOptimized: true, variables: !17) ... !54 = distinct !DISubprogram(name: ... !57 = distinct !DISubprogram(name: ... !60 = distinct !DISubprogram(name: ... !61 = distinct !DISubprogram(name: ... !62 = distinct !DISubprogram(name: ... !65 = distinct !DISubprogram(name: ... !66 = distin...
2018 Jan 12
0
StripDeadDebugInfo for static inline functions.
...ums: !2, retainedTypes: !3, subprograms: !12, globals: > !73) > > ... > > !12 = !{!13, !54, !57, !60, !61, !62, !65, !66, !67, !68, !69} > > !13 = distinct !DISubprogram(name: "main", scope: !14, file: !14, line: > 15, type: !15, isLocal: false, isDefinition: true, scopeLine: 15, > isOptimized: true, variables: !17) > > ... > > !54 = distinct !DISubprogram(name: ... > > !57 = distinct !DISubprogram(name: ... > > !60 = distinct !DISubprogram(name: ... > > !61 = distinct !DISubprogram(name: ... > > !62 = distinct !DISubprogram(name...
2018 Feb 02
2
Debug info error on bitcode inline modification
...Inliner for always_inline functions FunctionPass Manager Module Verifier Bitcode Writer !dbg attachment points at wrong subprogram for function !16 = distinct !DISubprogram(name: "caller", scope: !1, file: !1, line: 11, type: !17, isLocal: false, isDefinition: true, scopeLine: 12, flags: DIFlagPrototyped, isOptimized: true, variables: !19) void ()* @caller %call.i = call i32 (i32, i8*, i8*, ...) @__android_log_print(i32 3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1.4, i32 0, i32 0),...
2018 Jan 14
0
StripDeadDebugInfo for static inline functions.
...ums: !2, retainedTypes: !3, subprograms: !12, globals: > !73) > > ... > > !12 = !{!13, !54, !57, !60, !61, !62, !65, !66, !67, !68, !69} > > !13 = distinct !DISubprogram(name: "main", scope: !14, file: !14, line: > 15, type: !15, isLocal: false, isDefinition: true, scopeLine: 15, > isOptimized: true, variables: !17) > > ... > > !54 = distinct !DISubprogram(name: ... > > !57 = distinct !DISubprogram(name: ... > > !60 = distinct !DISubprogram(name: ... > > !61 = distinct !DISubprogram(name: ... > > !62 = distinct !DISubprogram(name...
2018 May 30
1
LLVM IR source line error
Hi David Thank you very much for your suggestions. ScopeLine works well. It could represent the start of a function. Do you know whether I can get the start column of this function? Many Thanks Regards Muhui 2018-05-30 3:25 GMT+08:00 David Blaikie <dblaikie at gmail.com>: > > > On Tue, May 29, 2018 at 5:25 AM Muhui Jiang via llvm-dev <...
2018 Jan 15
1
StripDeadDebugInfo for static inline functions.
...n: 0, emissionKind: 1, enums: !2, retainedTypes: !3, subprograms: !12, globals: !73) > ... > !12 = !{!13, !54, !57, !60, !61, !62, !65, !66, !67, !68, !69} > !13 = distinct !DISubprogram(name: "main", scope: !14, file: !14, line: 15, type: !15, isLocal: false, isDefinition: true, scopeLine: 15, isOptimized: true, variables: !17) > ... > !54 = distinct !DISubprogram(name: ... > !57 = distinct !DISubprogram(name: ... > !60 = distinct !DISubprogram(name: ... > !61 = distinct !DISubprogram(name: ... > !62 = distinct !DISubprogram(name: ... > !65 = distinct !DISubpro...
2018 Feb 02
0
Debug info error on bitcode inline modification
...functions > FunctionPass Manager > Module Verifier > Bitcode Writer > !dbg attachment points at wrong subprogram for function > !16 = distinct !DISubprogram(name: "caller", scope: !1, file: !1, line: > 11, type: !17, isLocal: false, isDefinition: true, scopeLine: 12, flags: > DIFlagPrototyped, isOptimized: true, variables: !19) > void ()* @caller > %call.i = call i32 (i32, i8*, i8*, ...) @__android_log_print(i32 3, i8* > getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* > getelementptr inbounds ([9 x i8], [9 x i8]* @...
2018 Feb 05
1
Debug info error on bitcode inline modification
...FunctionPass Manager >> Module Verifier >> Bitcode Writer >> !dbg attachment points at wrong subprogram for function >> !16 = distinct !DISubprogram(name: "caller", scope: !1, file: !1, line: >> 11, type: !17, isLocal: false, isDefinition: true, scopeLine: 12, flags: >> DIFlagPrototyped, isOptimized: true, variables: !19) >> void ()* @caller >> %call.i = call i32 (i32, i8*, i8*, ...) @__android_log_print(i32 3, i8* >> getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* >> getelementptr inbounds ([...
2017 Jun 15
2
CloneFunctionInto produces invalid debug info
..., > metadata !49, metadata !31), !dbg !50 > > ... rest of function code > > } > > !46 = distinct !DISubprogram(name: "MyFunnyClass", linkageName: > "_ZN12MyFunnyClassC2Ev", scope: !15, file: !1, line: 1, type: !25, isLocal: > false, isDefinition: true, scopeLine: 1, flags: DIFlagArtificial | > DIFlagPrototyped, isOptimized: false, unit: !0, declaration: !47, > variables: !2) > > > and the cloned function: > > ; Function Attrs: noinline nounwind uwtable > define linkonce_odr void @_ZN12MyFunnyClassC2EvCloned(%struct.MyFunnyClass* &g...
2018 Jan 12
0
StripDeadDebugInfo for static inline functions.
I'm not as familiar with all the ins and outs of metadata as maybe I should be, but ultimately the inlined function should have a DWARF description contained within the description of the caller (which is why you're seeing the call to constructAbstractSubprogramScopeDIE). That suggests that the DISubprogram for the inlined function ought to remain, and its scope should be the
2017 Jun 15
3
CloneFunctionInto produces invalid debug info
...!31), !dbg !50 >>>> ... rest of function code >>>> } >>>> >>>> !46 = distinct !DISubprogram(name: "MyFunnyClass", linkageName: "_ZN12MyFunnyClassC2Ev", scope: !15, file: !1, line: 1, type: !25, isLocal: false, isDefinition: true, scopeLine: 1, flags: DIFlagArtificial | DIFlagPrototyped, isOptimized: false, unit: !0, declaration: !47, variables: !2) >>> >>> and the cloned function: >>> >>>> ; Function Attrs: noinline nounwind uwtable >>>> define linkonce_odr void @_ZN12MyFunnyCla...
2018 Jan 12
2
StripDeadDebugInfo for static inline functions.
Hi all, I would like to understand the strip-dead-debug-info transformation. In my test case there is a static inline function with two local variables. It appears that the function is already inlined before strip-dead-debug-info starts its work. As a result the DICompileUnit is cleaned and its subprograms list has no reference to the DISubprogram for the inlined function, but as there is
2017 Aug 03
2
Why LLVM doesn't have debug information of function right parentheses?
Simple Case: 1.int main() 2.{ 3. int i = 0; 4. return 0; 5.} compile command: clang -g a.c In LLVM IR, we have one attribute named "scopeLine" to indicate the left parentheses. But we don't have one attribute to indicate the right parentheses (line 5 in this example). So if we use gdb to debug it: (gdb) b main Breakpoint 1 at 0x100005c8: file a.c, line 3. (gdb) r Breakpoint 1, main () at a.c:3 3 int i = 0; Missing separat...
2017 Oct 01
2
load with alignment of 1 crashes from being unaligned
...ct !DIGlobalVariable(name: "is_windows", linkageName: "is_windows", scope: !53, file: !53, line: 13, type: !50, isLocal: true, isDefinition: true) !60 = distinct !DISubprogram(name: "panic", scope: !61, file: !61, line: 47, type: !62, isLocal: true, isDefinition: true, scopeLine: 47, isOptimized: false, unit: !1, variables: !73) !61 = !DIFile(filename: "test.zig", directory: "/home/andy/dev/zig/build") !62 = !DISubroutineType(types: !63) !63 = !{!64, !65} !64 = !DIBasicType(name: "void", encoding: DW_ATE_unsigned) !65 = !DIDerivedType(tag: DW...
2017 Jun 19
2
LLVM behavior different depending on function symbol name
...", scope: !5, file: !5, line: 189, type: !15, isLocal: true, isDefinition: true) !15 = !DIBasicType(name: "bool", size: 8, encoding: DW_ATE_boolean) !16 = distinct !DISubprogram(name: "do_test", scope: !17, file: !17, line: 46, type: !18, isLocal: false, isDefinition: true, scopeLine: 46, isOptimized: true, unit: !1, variables: !20) !17 = !DIFile(filename: "test.zig", directory: "/home/andy/dev/zig/build") !18 = !DISubroutineType(types: !19) !19 = !{!15} !20 = !{} !21 = !DILocation(line: 47, column: 16, scope: !22) !22 = distinct !DILexicalBlock(scope: !16,...
2018 May 29
0
LLVM IR source line error
...than 612 or 613. > The first instruction is the call to gettext (presumably expressed by the _ macro) that is on line 614. Doesn't look like there's any instruction that could/should be attributed to 612 or 613. The DISubprogram describing the function should probably have some a "scopeLine" attribute of 613, which might be what you want. > Is it a bug or any other meaning resulting in such case. Below is the IR. > The first IR's source line if 614. > > %call = call i8* @gettext(i8* getelementptr inbounds ([221 x i8], [221 x > i8]* @.str.42, i32 0 , i32...
2020 Apr 30
2
Mapping a retained DILocalVariable back to its Function
...dso_local i32 @foobar(i32) local_unnamed_addr #0 !dbg !13 { ; no calls to llvm.dbg.* for the locals in this func } With the corresponding debug nodes: !13 = distinct !DISubprogram(name: "foobar", scope: !1, file: !1, line: 7, type: !14, isLocal: false, isDefinition: true, scopeLine: 7, flags: DIFlagPrototyped, isOptimized: true, unit: !0, retainedNodes: !16) !14 = !DISubroutineType(types: !15) !15 = !{!4, !4} !16 = !{!17, !18} !17 = !DILocalVariable(name: "x", arg: 1, scope: !13, file: !1, line: 7, type: !4) ; this one in particular, since it...
2020 May 31
2
LLC crash while handling DEBUG info
...i32 3} !5 = !{i32 1, !"wchar_size", i32 4} !6 = !{!"clang version 11.0.0 (https://github.com/llvm/llvm-project 9e0b52e2e68412a9a2add18697f4246e5e5ee5e3)"} !7 = distinct !DISubprogram(name: "foo", linkageName: "_Z3foov", scope: !1, file: !1, line: 1, type: !8, scopeLine: 1, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2) !8 = !DISubroutineType(types: !9) !9 = !{null} !10 = !DILocation(line: 2, column: 1, scope: !7) ----------- Now, let's say, in the above IR file, I intentionally make debug info metadata, a kind of invalid,...