search for: diderivedtyp

Displaying 20 results from an estimated 42 matches for "diderivedtyp".

Did you mean: diderivedtype
2009 Oct 07
2
[LLVMdev] DebugFactory
...ols/clang/lib/CodeGen/CGDebugInfo.cpp:225: error: call of overloaded ‘CreateDerivedType(unsigned int&, llvm::DICompileUnit&, const char [1], llvm::DICompileUnit, int, int, int, int, int, llvm::DIType&)’ is ambiguous llvm/include/llvm/Analysis/DebugInfo.h:530: note: candidates are: llvm::DIDerivedType llvm::DIFactory::CreateDerivedType(unsigned int, llvm::DIDescriptor, llvm::StringRef, llvm::DICompileUnit, unsigned int, uint64_t, uint64_t, uint64_t, unsigned int, llvm::DIType) llvm/include/llvm/Analysis/DebugInfo.h:540: note: llvm::DIDerivedType llvm::DIFactory::CreateDerivedType(unsigned int,...
2018 Jul 24
2
StructType --> DICompositeType?
...foo(S *a) { a->x = 0; a->y = 1; } There are DIType nodes for the struct Type: !6 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "S", file: !3, line: 1, size: 64, flags: DIFlagTypePassByValue, elements: !7, identifier: "_ZTS1S") !7 = !{!8, !10} !8 = !DIDerivedType(tag: DW_TAG_member, name: "x", scope: !6, file: !3, line: 2, baseType: !9, size: 32) !9 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) !10 = !DIDerivedType(tag: DW_TAG_member, name: "y", scope: !6, file: !3, line: 2, baseType: !9, size: 32, offset: 32)...
2017 Oct 01
2
load with alignment of 1 crashes from being unaligned
...ition: 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_TAG_pointer_type, name: "&[]const u8", baseType: !66, size: 64, align: 64) !66 = !DICompositeType(tag: DW_TAG_structure_type, name: "[]u8", size: 128, align: 64, elements: !67) !67 = !{!68, !71} !68 = !DIDerivedType(tag: DW_TAG_member, name: "ptr", scope:...
2017 Nov 15
2
workaround for debug info bug?
...isDefinition: true, scopeLine: 10, isOptimized: false, unit: !1, variables: !17) !5 = !DIFile(filename: "test.zig", directory: "/home/andy/dev/zig/build") !6 = !DISubroutineType(types: !7) !7 = !{!8, !9} !8 = !DIBasicType(name: "void", encoding: DW_ATE_unsigned) !9 = !DIDerivedType(tag: DW_TAG_pointer_type, name: "&[]const u8", baseType: !10, size: 64, align: 64) !10 = !DICompositeType(tag: DW_TAG_structure_type, name: "[]u8", size: 128, align: 64, elements: !11) !11 = !{!12, !15} !12 = !DIDerivedType(tag: DW_TAG_member, name: "ptr", scope:...
2009 Oct 07
0
[LLVMdev] DebugFactory
...ebugInfo.cpp:225: > error: call of overloaded ‘CreateDerivedType(unsigned int&, > llvm::DICompileUnit&, const char [1], llvm::DICompileUnit, int, int, > int, int, int, llvm::DIType&)’ is ambiguous > llvm/include/llvm/Analysis/DebugInfo.h:530: note: candidates are: > llvm::DIDerivedType llvm::DIFactory::CreateDerivedType(unsigned int, > llvm::DIDescriptor, llvm::StringRef, llvm::DICompileUnit, unsigned > int, uint64_t, uint64_t, uint64_t, unsigned int, llvm::DIType) > llvm/include/llvm/Analysis/DebugInfo.h:540: note: > llvm::DIDerivedType llvm::DIFactory::CreateDerive...
2018 Jul 25
2
A question to the DWARF experts on symbol indirection
> -----Original Message----- > From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of Tim > Northover via llvm-dev > Sent: Wednesday, July 25, 2018 3:07 AM > To: Nat! > Cc: LLVM Developers Mailing List > Subject: Re: [llvm-dev] A question to the DWARF experts on symbol > indirection > > Hi Nat!, > > On Wed, 25 Jul 2018 at 01:21, Nat! via
2018 Mar 21
0
lld/lto/win32 crash on DIE code
Yep, it's once again variable and it's type using different scopes. Is there any strong reason why you set scope for global DIDerivedType? ________________________________________ От: Carlo Kok <ck at remobjects.com> Отправлено: 21 марта 2018 г. 18:22 Кому: Evgeny Leviant; llvm-dev at lists.llvm.org Тема: Re: [llvm-dev] lld/lto/win32 crash on DIE code Thanks! Unfortunately this doesn't seem to cause it, because when I fi...
2018 Mar 21
3
lld/lto/win32 crash on DIE code
...марта 2018 г. 12:31 > Кому: Evgeny Leviant; llvm-dev at lists.llvm.org > Тема: Re: [llvm-dev] 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 || isa<DIFile>(Context) || isa<DICompileUnit>(Context)) &...
2016 Apr 30
2
Debug info scope of explicit casting type does not seem correct
...it cast "(T*)", which leads into the following IR: !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 3.9.0 (trunk 267335)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, retainedTypes: !3) !3 = !{!4} !4 = !DIDerivedType(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>", linkag...
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 || isa<DIFile>(Context) || isa<DICompileUnit>(Context)) > > Howeve...
2013 Sep 30
1
[LLVMdev] [patch] Prototype/proof-of-concept for DWARF type units
This isn't a realistic/viable implementation, just a hacked up "can I make it produce the right output" kind of thing, but while I hammer out a few more details (like fixing MC to allow multiple sections with the same name but different comdat groups) I figured I'd throw it out there to have a bit of a chat about it. I've tested simple cases of a single type and they seem to
2020 Mar 25
2
Find uses of Metadata / DITypes
I'm looking for a way to efficiently traverse the Metadata structure in reverse, or otherwise find DITypes that refer to another DIType. As an example, say I have a DICompositeType describing a struct. Now I want to find other DITypes containing this type, e.g. a DIDerivedType describing its pointer type, or another struct containing this struct as one of its fields. Is this possible in LLVM today? Would it be unreasonable to save Metadata to Metadata uses, like what is done for Value to Value uses? Any help would be greatly appreciated, Henrik -------------- next part...
2011 Feb 14
1
[LLVMdev] Introducing LLBrowse: A graphical browser for LLVM modules
...3.png] I've already found at least one bug in my compiler's frontend using this tool :) Oh, and before I forget, I need three small changes to DebugInfo.h: - DebugInfoFinder's 'module' parameter should be const. - isArtificial should return a bool, not an unsigned. - DIDerivedType should have an method that allows access to the 'name' attribute of the DIE. On Sun, Feb 13, 2011 at 2:59 PM, Talin <viridia at gmail.com> wrote: > LLBrowse has now been checked in to the llvm.org subversion repository: > > http://llvm.org/svn/llvm-project/llbrowse/trun...
2016 May 07
2
Debug info scope of explicit casting type does not seem correct
...the explicit cast “(T*)“, which leads into the following IR: !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 3.9.0 (trunk 267335)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, retainedTypes: !3) !3 = !{!4} !4 = !DIDerivedType(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>", linkag...
2017 Jun 19
2
LLVM behavior different depending on function symbol name
...7, isOptimized: true, unit: !1, variables: !33) !27 = !DIFile(filename: "zigrt.zig", directory: "/home/andy/dev/zig/build/lib/zig/std/special") !28 = !DISubroutineType(types: !29) !29 = !{!30, !31, !32} !30 = !DIBasicType(name: "void", encoding: DW_ATE_unsigned) !31 = !DIDerivedType(tag: DW_TAG_pointer_type, name: "&const u8", baseType: !6, size: 64, align: 64) !32 = !DIBasicType(name: "usize", size: 64, encoding: DW_ATE_unsigned) !33 = !{!34, !35} !34 = !DILocalVariable(name: "message_ptr", arg: 1, scope: !26, file: !27, line: 7, type: !31)...
2019 Jan 19
2
What does "preds" mean in a .ll file?
Hi, I see things like this. What does it mean? Is it documented somewhere? Thanks. ; preds = %for.body https://llvm.org/docs/LangRef.html ; <label>:91: ; preds = %88 %92 = load i8**, i8*** @glob_complete_word.matches, align 8, !dbg !99798 %93 = load i32, i32* @glob_complete_word.ind, align 4, !dbg !99799 %94 = sext i32 %93 to i64, !dbg !99798
2009 Oct 10
1
[LLVMdev] DebugFactory
...t;> error: call of overloaded ‘CreateDerivedType(unsigned int&, >> llvm::DICompileUnit&, const char [1], llvm::DICompileUnit, int, int, >> int, int, int, llvm::DIType&)’ is ambiguous >> llvm/include/llvm/Analysis/DebugInfo.h:530: note: candidates are: >> llvm::DIDerivedType llvm::DIFactory::CreateDerivedType(unsigned int, >> llvm::DIDescriptor, llvm::StringRef, llvm::DICompileUnit, unsigned >> int, uint64_t, uint64_t, uint64_t, unsigned int, llvm::DIType) >> llvm/include/llvm/Analysis/DebugInfo.h:540: note: >> llvm::DIDerivedType llvm::DIFacto...
2015 Jun 02
2
[LLVMdev] `Ty && "Trying to add a type that doesn't exist?
...379 5 libc.so.6 0x00007fea3b630d9e 6 libc.so.6 0x00007fea3b630e42 7 clang 0x00000000016b8252 llvm::DwarfUnit::addType(llvm::DIE&, llvm::DIType, llvm::dwarf::Attribute) + 610 8 clang 0x00000000016b9337 llvm::DwarfUnit::constructMemberDIE(llvm::DIE&, llvm::DIDerivedType) + 135 9 clang 0x00000000016ba2ed llvm::DwarfUnit::constructTypeDIE(llvm::DIE&, llvm::DICompositeType) + 2221 10 clang 0x00000000016b7e9c llvm::DwarfUnit::getOrCreateTypeDIE(llvm::MDNode const*) + 412 11 clang 0x00000000016b80a9 llvm::DwarfUnit::addType(llvm::DIE...
2009 Oct 02
0
[LLVMdev] DebugFactory
Here is a patch that does just that. On Wed, Sep 23, 2009 at 3:38 PM, Devang Patel <devang.patel at gmail.com>wrote: > On Wed, Sep 23, 2009 at 2:27 PM, Talin <viridia at gmail.com> wrote: > > On Wed, Sep 23, 2009 at 1:51 PM, Dan Gohman <gohman at apple.com> wrote: > >> > >> On Sep 22, 2009, at 4:49 PM, Talin wrote: > >>> > >>>
2015 Jun 04
2
[LLVMdev] `Ty && "Trying to add a type that doesn't exist?
...libc.so.6 0x00007fea3b630e42 >> 7 clang 0x00000000016b8252 >> llvm::DwarfUnit::addType(llvm::DIE&, llvm::DIType, llvm::dwarf::Attribute) >> + 610 >> 8 clang 0x00000000016b9337 >> llvm::DwarfUnit::constructMemberDIE(llvm::DIE&, llvm::DIDerivedType) + 135 >> 9 clang 0x00000000016ba2ed >> llvm::DwarfUnit::constructTypeDIE(llvm::DIE&, llvm::DICompositeType) + 2221 >> 10 clang 0x00000000016b7e9c >> llvm::DwarfUnit::getOrCreateTypeDIE(llvm::MDNode const*) + 412 >> 11 clang 0x000000...