search for: isdefinition

Displaying 20 results from an estimated 60 matches for "isdefinition".

2020 Feb 20
3
[LLVM][DISubprogram][LL format updation query] Question regarding moving DISubprogram DIFlags to DISPFlag.
...view request https://reviews.llvm.org/D74470, I am trying to move five of the DIFlags to DISPFlag for the moment namely DIFlagExplicit, DIFlagPrototyped, DIFlagNoReturn, DIFlagThunk, DIFlagAllCallsDescribed. The llvm ir format for DISubprogram currently has backword compatibility where the isLocal, isDefinition, virtuality, isOptimized and SPFlags are mutually exclusive. My question is, is it a good idea to remove the booleans support'(isLocal, isDefinition) and move most of it to spflags and flags in llvm ir? The llvm ir backward compatibility does not list the clear requirements on documentations pa...
2020 Feb 20
3
[LLVM][DISubprogram][LL format updation query] Question regarding moving DISubprogram DIFlags to DISPFlag.
Yes, removing the support for isLocal, isDefinition fields completely from ll files, currently the LLParser still parses it. I want to remove it and update the all the ll files which still uses it. Also the metadata read will support old format, no changes in that. so if ll file has isLocal and isDefinition it will result in parser error. But the b...
2020 Feb 20
2
[LLVM][DISubprogram][LL format updation query] Question regarding moving DISubprogram DIFlags to DISPFlag.
...Chirag Patel <Chirag at raincode.com>; llvm-dev at lists.llvm.org Subject: Re: [llvm-dev] [LLVM][DISubprogram][LL format updation query] Question regarding moving DISubprogram DIFlags to DISPFlag. Hi Chirag, On 20.2.20. 09:57, Chirag Patel wrote: > Yes, removing the support for isLocal, isDefinition fields completely from ll files, currently the LLParser still parses it. I want to remove it and update the all the ll files which still uses it. Could you please describe what is the benefit of that? > Also the metadata read will support old format, no changes in that. > > so if ll file...
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:
2018 Jan 12
2
StripDeadDebugInfo for static inline functions.
...isOptimized: true, runtimeVersion: 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: ....
2017 Oct 01
2
load with alignment of 1 crashes from being unaligned
...alue: 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", linkageName: "want_main_symbol", scope: !53, file: !53, line: 8, type: !50, isLocal: true,...
2017 Jun 15
4
CloneFunctionInto produces invalid debug info
...d @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 uwtable define linkonce_odr void @_ZN12MyFunnyClassC2EvCloned(%struct.MyFunnyClass* %this, { [6 x i8*] }* %...
2018 Jan 12
2
StripDeadDebugInfo for static inline functions.
...isOptimized: true, runtimeVersion: 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: ....
2018 Jan 12
0
StripDeadDebugInfo for static inline functions.
...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 !D...
2018 Feb 02
2
Debug info error on bitcode inline modification
...h SCC Pass Manager 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,...
2018 Jan 14
0
StripDeadDebugInfo for static inline functions.
...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 !D...
2018 Mar 21
3
lld/lto/win32 crash on DIE code
...(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: FullDebug, enums: !4, retainedTypes: !4, globals: !5, imports: !703) !3 = !DIFile(filename: "island.windows.elements-e54b3dc8c053...
2018 Jan 15
1
StripDeadDebugInfo for static inline functions.
...true, runtimeVersion: 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 = di...
2018 Feb 02
0
Debug info error on bitcode inline modification
...er 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...
2018 Feb 05
1
Debug info error on bitcode inline modification
...ctions >> 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* >> getelemen...
2017 Jun 15
2
CloneFunctionInto produces invalid debug info
...nyClass** %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....
2010 Sep 07
0
[LLVMdev] More DIFactory questions - still stumped
On 6 September 2010 01:05, Talin <viridia at gmail.com> wrote: > DISubprogram CodeGenerator::genDISubprogram(const FunctionDefn * fn, (...) >         false /* isDefinition */, (...) Hi Talin, The only difference from what I'm doing is that I only export debug symbols in definitions, not declarations. I may be doing wrong, though, for multi-file compilation (haven't tested thoroughly). > DICompositeType CodeGenerator::genDIFunctionType(const FunctionTy...
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
2010 Sep 07
2
[LLVMdev] More DIFactory questions - still stumped
On Tue, Sep 7, 2010 at 1:56 AM, Renato Golin <rengolin at systemcall.org>wrote: > On 6 September 2010 01:05, Talin <viridia at gmail.com> wrote: > > DISubprogram CodeGenerator::genDISubprogram(const FunctionDefn * fn, > (...) > > false /* isDefinition */, > (...) > > Hi Talin, > > The only difference from what I'm doing is that I only export debug > symbols in definitions, not declarations. I may be doing wrong, > though, for multi-file compilation (haven't tested thoroughly). > > > > > DICompositeType...
2018 Mar 21
0
lld/lto/win32 crash on DIE code
...s (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: FullDebug, enums: !4, retainedTypes: !4, globals: !5, imports: !703) !3 = !DIFile(filename: "island.windows.elements-e54b3dc8c0536e2...