search for: linkagename

Displaying 20 results from an estimated 56 matches for "linkagename".

2017 Jun 15
4
CloneFunctionInto produces invalid debug info
...Class*, align 8 store %struct.MyFunnyClass* %this, %struct.MyFunnyClass** %this.addr, align 8 call void @llvm.dbg.declare(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...
2014 Sep 11
3
[LLVMdev] patch for DragonEgg 3.3
Hi - attached is a patch to enable building DragonEgg (x86_64) for LLVM3.3 and LLVM3.4. That is, add these changes to the 3.3 release, and it becomes possible to build DragonEgg against a llvm3.4 compiler. Regards, Richard Gorton Cognitive Electronics rcgorton at cog-e.com ---------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name:
2014 May 07
5
[LLVMdev] DWARF unmangled subprog name (DW_AT_name)
...an pass this information through DILineInfoSpecifier. In fact, probably it makes sense to change the layout of this structure: there would be 3 types of file/line info (None, Regular, AbsoluteFilePath). (though, probably we may make latter the default) and 3 types of function name info (None, Name, LinkageName). > > > On Wed, May 7, 2014 at 2:36 PM, Alexey Samsonov <samsonov at google.com>wrote: > >> >> On Wed, May 7, 2014 at 11:33 AM, Eric Christopher <echristo at gmail.com>wrote: >> >>> Have you checked out llvm-symbolize? It's what the asan folk...
2017 Jun 15
2
CloneFunctionInto produces invalid debug info
...ss* %this, %struct.MyFunnyClass** %this.addr, > align 8 > call void @llvm.dbg.declare(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: >...
2017 Jun 15
3
CloneFunctionInto produces invalid debug info
...dr, align 8 >>>> call void @llvm.dbg.declare(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: >>&gt...
2020 Sep 01
2
Filename's in DIBuileder
...0 2 0 0 is_stmt 0x000000000000008b 0 0 2 0 0 is_stmt end_sequence the debug info is emitted by the DIBuilder like !3 = !DIFile(filename: "/folk/tmp/test/test.cpp", directory: "/folk/tmp/test") !45 = distinct !DISubprogram(linkageName: "_GLOBAL__sub_I_test.cpp", scope: !3, file: !3, type: !46, flags: DIFlagArtificial, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !2, retainedNodes: !4) !8 = !DIFile(filename: "test.cpp", directory: "/folk/tmp/test") !16 = !DISubprogram(name: "proc&qu...
2018 Mar 21
3
lld/lto/win32 crash on DIE code
Thanks! Unfortunately this doesn't seem to cause it, because when I fix it to match the other files (and pretty much how clang emits it:) !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) !1 = !DIGlobalVariable(name: "IDispatch_UID", linkageName: "f_t2b_RemObjects_d_Elements_d_System_d_____Global.IDispatchUID", scope: !2, file: !3, type: !622, isLocal: false, isDefinition: true) !2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "RemObjects Island", isOptimized: true, runtimeVersion: 0, emissionK...
2017 Jun 16
2
CloneFunctionInto produces invalid debug info
...>>> call void @llvm.dbg.declare(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: &gt...
2020 Sep 01
4
Filename's in DIBuileder
...0 2 0 0 is_stmt 0x000000000000008b 0 0 2 0 0 is_stmt end_sequence the debug info is emitted by the DIBuilder like !3 = !DIFile(filename: "/folk/tmp/test/test.cpp", directory: "/folk/tmp/test") !45 = distinct !DISubprogram(linkageName: "_GLOBAL__sub_I_test.cpp", scope: !3, file: !3, type: !46, flags: DIFlagArtificial, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !2, retainedNodes: !4) !8 = !DIFile(filename: "test.cpp", directory: "/folk/tmp/test") !16 = !DISubprogram(name: "proc&qu...
2018 Mar 21
0
lld/lto/win32 crash on DIE code
...] lld/lto/win32 crash on DIE code Thanks! Unfortunately this doesn't seem to cause it, because when I fix it to match the other files (and pretty much how clang emits it:) !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) !1 = !DIGlobalVariable(name: "IDispatch_UID", linkageName: "f_t2b_RemObjects_d_Elements_d_System_d_____Global.IDispatchUID", scope: !2, file: !3, type: !622, isLocal: false, isDefinition: true) !2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "RemObjects Island", isOptimized: true, runtimeVersion: 0, emissionKind...
2017 Jun 19
2
CloneFunctionInto produces invalid debug info
...dbg.declare(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 clone...
2017 Oct 01
2
load with alignment of 1 crashes from being unaligned
...DIEnumerator(name: "Strong", value: 1) !45 = !DIEnumerator(name: "Weak", value: 2) !46 = !DIEnumerator(name: "LinkOnce", value: 3) !47 = !{!48, !51, !54, !56, !58} !48 = !DIGlobalVariableExpression(var: !49) !49 = distinct !DIGlobalVariable(name: "link_libc", linkageName: "link_libc", scope: !5, file: !5, line: 200, type: !50, isLocal: true, isDefinition: true) !50 = !DIBasicType(name: "bool", size: 8, encoding: DW_ATE_boolean) !51 = !DIGlobalVariableExpression(var: !52) !52 = distinct !DIGlobalVariable(name: "want_main_symbol", linkag...
2017 Jun 20
2
CloneFunctionInto produces invalid debug info
...ta >>>>>>>> %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:...
2014 Oct 24
8
[LLVMdev] First-class debug info IR: MDLocation
...SubroutineType(args: [ !5, !6 ]) !10 = metadata DICompileUnit(file: !0, language: 4, kind: FullDebug, producer: "clang version 3.6.0 ", retainedUniqueTypes: [ !6 ]) !11 = metadata DISubprogram(name: "foo", linkageName: "_Z3foo1T", handle: i32(i32)* @_Z3foo1T, file: !0, type: !9, context: !10) !12 = metadata DIArgVariable(name: "t", arg: 1, line: 2, type: !6, context: !11) !13 = metadata DI...
2020 May 31
2
LLC crash while handling DEBUG info
...warf Version", i32 4} !4 = !{i32 2, !"Debug Info Version", 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 abov...
2017 Jan 26
2
Question about versioning of LVVM IR
...th LLVM IR in the first place so it is often that we encounter errors like the following one when we do things like parseAssemblyString(IR, Err, GlobalCtx);`: ``` test: <string>:7237:187: error: invalid field 'variable' !1526 = distinct !DIGlobalVariable(name: "test_info_", linkageName: "_ZN14Hello_sup_Test10test_info_E", scope: !0, file: !1527, line: 4, type: !1528, isLocal: false, isDefinition: true, variable: %"class.testing::TestInfo"** @_ZN14Hello_sup_Test10test_info_E, declaration: !2817) ``` Quick research of recent LLVM commits reveals that stuff is b...
2018 Mar 21
0
lld/lto/win32 crash on DIE code
Ok, I've done a bit more investigation. I found the module which declares broken DIE (e54b3dc8c0536e29a65f8548b5ae7958-Global.o) and here is what I found there: !2 = !DIFile(filename: "island.windows.elements", ... ... !4 = distinct !DICompileUnit(language: DW_LANG_C99, file: !5, ... !5 = !DIFile(filename: "island.windows.elements-e54b3dc8c0536e29a65f8548b5ae7958-global",
2020 May 31
2
LLC crash while handling DEBUG info
...!"Debug Info Version", 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...
2018 Mar 21
2
lld/lto/win32 crash on DIE code
Op 21-3-2018 om 10:28 schreef Evgeny Leviant: > It looks the problem lies in how your compiler generates debug info. LLVM doesn't > expect DIDerivedType scope to be an instance of DICompileUnit. Here is a quick fix: > > DIE *DwarfUnit::getOrCreateContextDIE(const DIScope *Context) { > - if (!Context || isa<DIFile>(Context)) > + if (!Context ||
2016 Apr 30
2
Debug info scope of explicit casting type does not seem correct
...vedType(tag: DW_TAG_pointer_type, baseType: !5, size: 32, align: 32) <----------------- No Scope, leads to compile unit scope!! !5 = !DIDerivedType(tag: DW_TAG_typedef, name: "T", scope: !7, file: !6, line: 16, baseType: !20) !7 = distinct !DISubprogram(name: "foo<B>", linkageName: "_Z3fooI1BEiPv", scope: !6, file: !6, line: 15, type: !8, isLocal: false, isDefinition: true, scopeLine: 15, flags: DIFlagPrototyped, isOptimized: true, unit: !0, templateParams: !12, variables: !15) Thanks, Amjad --------------------------------------------------------------------- I...