search for: dw_tag_subroutine_type

Displaying 20 results from an estimated 47 matches for "dw_tag_subroutine_type".

2010 Dec 06
4
[LLVMdev] question on generating dwarf metadata
...Line number where defined > metadata ;; Type descriptor > } > > > - > Devang Correct: I'm not interested in 'how to use DIFactory', and yes, I do want to know what the fields of metadata encode in somewhat more detail. For example, I am struggling with the 'DW_TAG_subroutine_type' now. There is a field that is labeled: metadata, ;; Reference to array of member descriptors Now I figured out that this array contains the types of the formal parameters, but it also appears the first (and only the first) in the array is the returned value type of the function. Sinc...
2011 Dec 16
2
[LLVMdev] LLVM 2.9 metadata
...tadata !"clang version 2.9 (tags/RELEASE_29/final)", i1 true, i1 false, metadata !"", i32 0} ; [ DW_TAG_compile_unit ] > > !3 = metadata !{i32 589845, metadata !1, metadata !"", metadata !1, i32 0, i64 0, i64 0, i32 0, i32 0, i32 0, metadata !4, i32 0, i32 0} ; [ DW_TAG_subroutine_type ] > !4 = metadata !{null} > ... > > As you can see metadata definition !0 doesn't match documentation. What is the correct definition (CLANG or LLVM documentation ?). > > Thanks for your answer > Seb > > > > _______________________________________________ >...
2015 Apr 29
2
[LLVMdev] Assertion failure (Bug 21609) in DwarfFile.cpp
...nstrumentation/AddressSanitizer/debug_info.ll +++ b/test/Instrumentation/AddressSanitizer/debug_info.ll @@ -41,9 +41,9 @@ declare void @llvm.dbg.declare(metadata, metadata, metadata) nounwind readnone !7 = !{!"0x15\00\000\000\000\000\000\000", i32 0, null, null, !8, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] !8 = !{!9, !9} !9 = !{!"0x24\00int\000\0032\0032\000\000\005", null, null} ; [ DW_TAG_base_type ] [int] [line 0, size 32, align 32, offset 0, enc DW_ATE_signed] -!10 = !{!"0x101\00p\0016777217\000", !5, !6, !9} ; [ DW_TAG_arg_varia...
2010 Sep 06
2
[LLVMdev] More DIFactory questions - still stumped
...List & params = type->params(); for (ParameterList::const_iterator it = params.begin(); it != params.end(); ++it) { const ParameterDefn * param = *it; args.push_back(genDIParameterType(param->type())); } DICompositeType fnType = dbgFactory_.CreateCompositeType( dwarf::DW_TAG_subroutine_type, dbgCompileUnit_, "", dbgFile_, 0, // Source line 0, // Size 0, // Align 0, // Offset 0, // Flags DIType(), dbgFactory_.GetOrCreateArray(args.data(), args.size())); dbgTypeMap_[type] = fnType; DASSERT(fnType.Verify()); ret...
2010 Dec 06
0
[LLVMdev] question on generating dwarf metadata
On Dec 4, 2010, at 1:16 PM, Bagel wrote: > On 12/03/2010 06:28 PM, Devang Patel wrote: >> We are working on a document. Here is current draft: >> http://wiki.llvm.org/Debug_Information >> >> - >> Devang > > While this is great news, it doesn't completely satisfy my needs. Your documentation assumes one is going to use the LLVM provided functions
2010 Dec 09
0
[LLVMdev] question on generating dwarf metadata
...descriptor > > } > > > > > > - > > Devang > > Correct: I'm not interested in 'how to use DIFactory', and yes, I do want > to > know what the fields of metadata encode in somewhat more detail. > > For example, I am struggling with the 'DW_TAG_subroutine_type' now. There > is a > field that is labeled: > metadata, ;; Reference to array of member descriptors > Now I figured out that this array contains the types of the formal > parameters, > but it also appears the first (and only the first) in the array is the > returned &g...
2010 Dec 10
0
[LLVMdev] question on generating dwarf metadata
...ta ;; Type descriptor >> } >> >> >> - >> Devang > > Correct: I'm not interested in 'how to use DIFactory', and yes, I do want to know what the fields of metadata encode in somewhat more detail. > > For example, I am struggling with the 'DW_TAG_subroutine_type' now. There is a field that is labeled: > metadata, ;; Reference to array of member descriptors > Now I figured out that this array contains the types of the formal parameters, but it also appears the first (and only the first) in the array is the returned value type of the function....
2011 Dec 15
2
[LLVMdev] LLVM 2.9 metadata
...", metadata !"clang version 2.9 (tags/RELEASE_29/final)", i1 true, i1 false, metadata !"", i32 0} ; [ DW_TAG_compile_unit ] !3 = metadata !{i32 589845, metadata !1, metadata !"", metadata !1, i32 0, i64 0, i64 0, i32 0, i32 0, i32 0, metadata !4, i32 0, i32 0} ; [ DW_TAG_subroutine_type ] !4 = metadata !{null} ... As you can see metadata definition !0 doesn't match documentation. What is the correct definition (CLANG or LLVM documentation ?). Thanks for your answer Seb -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pi...
2010 Sep 07
0
[LLVMdev] More DIFactory questions - still stumped
...params.end(); ++it) { >     const ParameterDefn * param = *it; >     args.push_back(genDIParameterType(param->type())); >   } Don't do that. I know it looks right, but it's broken in DIFactory. >   DICompositeType fnType = dbgFactory_.CreateCompositeType( >       dwarf::DW_TAG_subroutine_type, >       dbgCompileUnit_, I use the file here, not the compile unit... But again, I could be wrong. Hope that puts you in the right direction. -- cheers, --renato http://systemcall.org/ Reclaim your digital rights, eliminate DRM, learn more at http://www.defectivebydesign.org/what_is_drm
2011 Dec 07
2
[LLVMdev] Generating DWARF information that pretends an outparam is the return value
...!2, i32 2, metadata !3, i1 false, i1 true, i32 0, i32 0, i32 0, i32 0, i1 f\ > alse, i32 ()* @foo, null, null} ; [ DW_TAG_subprogram ] > > !3 = metadata !{i32 589845, metadata !2, metadata !"", metadata !2, i32 0, i64 0, i64 0, i32 0, i32 0, i32 0, metadata !4, i32 0, i32 0} ; [ DW_TAG_subroutine_type ] !4 = metadata !{metadata !8} > > > !8 = metadata !{i32 589860, metadata !0, metadata !"char", null, i32 0, i64 8, i64 8, i64 0, i32 0, i32 6} ; [ DW_TAG_base_type ] > > Next, when you generate metadat...
2015 Apr 29
2
[LLVMdev] Assertion failure (Bug 21609) in DwarfFile.cpp
...>> +++ b/test/Instrumentation/AddressSanitizer/debug_info.ll >> @@ -41,9 +41,9 @@ declare void @llvm.dbg.declare(metadata, metadata, >> metadata) nounwind readnone >> !7 = !{!"0x15\00\000\000\000\000\000\000", i32 0, null, null, !8, >> null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align >> 0, offset 0] [from ] >> !8 = !{!9, !9} >> !9 = !{!"0x24\00int\000\0032\0032\000\000\005", null, null} ; [ >> DW_TAG_base_type ] [int] [line 0, size 32, align 32, offset 0, enc >> DW_ATE_signed] >> -!10 = !{!"0x101\00p\...
2010 Dec 04
4
[LLVMdev] question on generating dwarf metadata
On 12/03/2010 06:28 PM, Devang Patel wrote: > We are working on a document. Here is current draft: > http://wiki.llvm.org/Debug_Information > > - > Devang While this is great news, it doesn't completely satisfy my needs. Your documentation assumes one is going to use the LLVM provided functions (such as DIFactory::). My front-end can't use them because it is not
2011 Dec 07
0
[LLVMdev] Generating DWARF information that pretends an outparam is the return value
...uot;, metadata !2, i32 2, metadata !3, i1 false, i1 true, i32 0, i32 0, i32 0, i32 0, i1 f\ alse, i32 ()* @foo, null, null} ; [ DW_TAG_subprogram ] !3 = metadata !{i32 589845, metadata !2, metadata !"", metadata !2, i32 0, i64 0, i64 0, i32 0, i32 0, i32 0, metadata !4, i32 0, i32 0} ; [ DW_TAG_subroutine_type ] !8 = metadata !{i32 589860, metadata !0, metadata !"char", null, i32 0, i64 8, i64 8, i64 0, i32 0, i32 6} ; [ DW_TAG_base_type ] Next, when you generate metadata nodes for arguments, slide argument numbers by 1. (http...
2010 May 13
4
[LLVMdev] How to get the variable mapping between the source and llvm bytecode
...metadata !"4.2.1 (Based on Apple Inc. build 5658) (LLVM build)", i1 true, i1 false, metadata !"", i32 0} ; [ DW_TAG_compile_unit ] !3 = metadata !{i32 458773, metadata !2, metadata !"", metadata !2, i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !4, i32 0, null} ; [ DW_TAG_subroutine_type ] !4 = metadata !{metadata !5, metadata !5, metadata !5} !5 = metadata !{i32 458788, metadata !2, metadata !"int", metadata !2, i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ] !6 = metadata !{i32 1, i32 0, metadata !1, null} !7 = metadata !{i32 459009, metadata !1, meta...
2011 Dec 05
2
[LLVMdev] Generating DWARF information that pretends an outparam is the return value
The Rust compiler defines all functions as returning void, with the first parameter being an outparam of the declared return type, ie. fn foo2() -> int { ret 5; } becomes define void @_ZN4foo217_5cb557d30658848cE(i64*, { i64, { %tydesc*, i1, {} } }*) uwtable { store i64 5, i64* %0 ret void } I'm working on generating debug information for Rust, and I'm currently stumped on how
2010 May 14
2
[LLVMdev] How to get the variable mapping between the sourceandllvm bytecode
...metadata !"4.2.1 (Based on Apple Inc. build 5658) (LLVM build)", i1 true, i1 true, metadata !"", i32 0} ; [ DW_TAG_compile_unit ] !4 = metadata !{i32 458773, metadata !3, metadata !"", metadata !3, i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !5, i32 0, null} ; [ DW_TAG_subroutine_type ] !5 = metadata !{metadata !6, metadata !6, metadata !6} !6 = metadata !{i32 458788, metadata !3, metadata !"int", metadata !3, i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ] !7 = metadata !{i32 4, i32 0, metadata !1, null} +++++++++++++++++++++++++++++++++++++ Now th...
2010 Jul 14
2
[LLVMdev] Trying to access the user defined variable name
...testadd.c", metadata !".", metadata !"clang 2.0", i1 true, i1 false, metadata !"", i32 0} ; [ DW_TAG_compile_unit ] !4 = metadata !{i32 524309, metadata !2, metadata !"", metadata !2, i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !5, i32 0, null} ; [ DW_TAG_subroutine_type ] !5 = metadata !{metadata !6} !6 = metadata !{i32 524324, metadata !2, metadata !"long", metadata !2, i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ] !7 = metadata !{i32 524545, metadata !1, metadata !"y", metadata !2, i32 1, metadata !6} ; [ DW_TAG_arg_varia...
2011 Dec 15
0
[LLVMdev] LLVM 2.9 metadata
...adata !"clang version 2.9 (tags/RELEASE_29/final)", i1 true, i1 false, metadata !"", i32 0} ; [ DW_TAG_compile_unit ] > > !3 = metadata !{i32 589845, metadata !1, metadata !"", metadata !1, i32 0, i64 0, i64 0, i32 0, i32 0, i32 0, metadata !4, i32 0, i32 0} ; [ DW_TAG_subroutine_type ] > !4 = metadata !{null} > ... > > As you can see metadata definition !0 doesn't match documentation. What is the correct definition (CLANG or LLVM documentation ?). > > Thanks for your answer > Seb > > > > _______________________________________________ &...
2011 Dec 07
0
[LLVMdev] Generating DWARF information that pretends an outparam is the return value
...adata !3, i1 false, i1 true, > i32 0, i32 0, i32 0, i32 0, i1 f\ > alse, i32 ()* @foo, null, null} ; [ DW_TAG_subprogram ] > > !3 = metadata !{i32 589845, metadata !2, metadata !"", metadata !2, i32 0, > i64 0, i64 0, i32 0, i32 0, i32 0, metadata !4, i32 0, i32 0} ; [ > DW_TAG_subroutine_type ] > > > > !4 = metadata !{metadata !8} > > > > !8 = metadata !{i32 589860, metadata !0, metadata !"char", null, i32 0, i64 > 8, i64 8, i64 0, i32 0, i32 6} ; [ DW_TAG_base_type ] > > > Next, when you generate metadata nodes for arguments, slide argument...
2010 May 13
0
[LLVMdev] How to get the variable mapping between the source andllvm bytecode
...ata !"4.2.1 (Based on Apple Inc. build 5658) (LLVM build)", i1 true, i1 false, metadata !"", i32 0} ; [ DW_TAG_compile_unit ] > !3 = metadata !{i32 458773, metadata !2, metadata !"", metadata !2, i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !4, i32 0, null} ; [ DW_TAG_subroutine_type ] > !4 = metadata !{metadata !5, metadata !5, metadata !5} > !5 = metadata !{i32 458788, metadata !2, metadata !"int", metadata !2, i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ] > !6 = metadata !{i32 1, i32 0, metadata !1, null} > !7 = metadata !{i32 45900...