Displaying 20 results from an estimated 105 matches for "difiles".
Did you mean:
difile
2018 Nov 29
2
DIFile filenames containing directories
I noticed that clang produces DIFiles that look like
DIFile(filename: "src/test.c", directory: "/path/to/pwd")
at first I thought this must be a bug, but this could also be a space-saving optimization to unique the redundant $PWD prefix of all paths.
Is this a bug or a feature?
-- adrian
2010 Aug 31
5
[LLVMdev] More DIFactory questions
Here are some issues that I am unclear about. What would be great is if the
answers could be incorporated into the comments and documentation for
DIFactory and DebugInfo.h:
1) What types of DIScope are valid arguments for DebugLoc::get()? The method
takes an MDNode* argument, so looking at the function signature is no help.
For example, DIFile is a subtype of DIScope, however looking
at
2018 Nov 29
2
DIFile filenames containing directories
...m: aprantl at apple.com [mailto:aprantl at apple.com]
> > Sent: Thursday, November 29, 2018 12:02 PM
> > To: llvm-dev
> > Cc: David Blaikie; Robinson, Paul; Davide Italiano
> > Subject: DIFile filenames containing directories
> >
> > I noticed that clang produces DIFiles that look like
> >
> > DIFile(filename: "src/test.c", directory: "/path/to/pwd")
> >
> > at first I thought this must be a bug, but this could also be a space-
> > saving optimization to unique the redundant $PWD prefix of all paths.
> >
&g...
2020 Sep 01
4
Filename's in DIBuileder
Try using $PWD/test.cpp on the clang command line. I am seeing the duplicate DIFile entries, but not yet able to reproduce a .debug_line section with multiple directory entries.
--paulr
From: llvm-dev <llvm-dev-bounces at lists.llvm.org> On Behalf Of Tomar, Sourabh Singh via llvm-dev
Sent: Tuesday, September 1, 2020 1:07 PM
To: Umesh Kalappa <umesh.kalappa0 at gmail.com>; cfe-dev at
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 ||
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:
2018 Nov 29
2
DIFile filenames containing directories
Can't say I know much about -fdebug-prefix-map, but...
On Thu, Nov 29, 2018 at 1:07 PM Adrian Prantl <aprantl at apple.com> wrote:
> Thanks for the feedback! Closely-related follow-up question: Is *this* a
> bug?
>
> llvm/tools/clang/test/CodeGen/debug-prefix-map.c:33:27:
> // CHECK-COMPILATION-DIR: !DIFile(filename:
> "/var/empty{{[/\\]}}Inputs/stdio.h",
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",
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
2020 Sep 01
2
Filename's in DIBuileder
Hi All ,
We have a scenario in our debugger to handle the file index in the
debug_ine info like
$llvm-dwarfdump -debug-line test.o
file_names[ 1]:
name: "test.cpp"
dir_index: 0
mod_time: 0x00000000
length: 0x00000000
file_names[ 2]:
name: "test.cpp"
dir_index: 1
mod_time: 0x00000000
length: 0x00000000
2017 May 03
3
Should it be legal for two functions to have the same !dbg attachment?
I just wrote an IR Verifier check that catches the following situation:
; RUN: not llvm-as %s -disable-output 2>&1 | FileCheck %s
define void @f1() !dbg !4 {
unreachable
}
; CHECK: DISubprogram attached to more than one function
define void @f2() !dbg !4 {
unreachable
}
!llvm.dbg.cu = !{!1}
!1 = distinct !DICompileUnit(language: DW_LANG_C99, file: !2)
!2
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
2015 Oct 28
4
RFC: Supporting macros in LLVM debug info
Hi,
I would like to implement macro debug info support in LLVM.
Below you will find 4 parts:
1. Background on what does it mean to debug macros.
2. A brief explanation on how to represent macro debug info in DWARF 4.0.
3. The suggested design.
4. A full example: Source -> AST -> LLVM IR -> DWARF.
Feel free to skip first two parts if you think you know the background.
2011 Mar 29
1
[LLVMdev] Accessing metadata & creating DIVariable
>>> I am adding local var to existing IR with debug info. I am not using
>>> the Pass infrastructure.
>>>
>>> void InsertDbg(AllocaInst *i, StringRef varname, Instruction, inserbefore)
>>> {
>>>
>>> DIBuilder di(*module);
>>> cu = di.createCU / * How do I get the MDNode of already in the
>>> IR . Instead of
2011 Mar 28
3
[LLVMdev] Accessing metadata & creating DIVariable
Hi,
I am wondering if someone can guide me in adding metadata to IR which
already contains some metadata. I am trying to add dbg.declare inst
for a local variable I added to a function. I used the DIBuilder to
build a DIVariable. When I try to compile llc fails with following
message.
llc: MCAsmStreamer.cpp:273: virtual
void<unnamed>::MCAsmStreamer::EmitLabel(llvm::MCSymbol*): Assertion
2018 Jul 30
2
ThinLTO Bug ?
On Mon, Jul 30, 2018 at 6:52 AM <paul.robinson at sony.com> wrote:
>
>
>
> > -----Original Message-----
> > From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of Xin
> > Tong via llvm-dev
> > Sent: Friday, July 27, 2018 9:33 PM
> > To: llvm-dev
> > Subject: [llvm-dev] ThinLTO Bug ?
> >
> > Hi
> >
> > I
2010 Jul 14
3
[LLVMdev] DIFactory
On 14 July 2010 18:21, Devang Patel <devang.patel at gmail.com> wrote:
> Use Create* methods to create basic debug info. There is not any
> tutorial document explaining how to generated basic debug info.
I got that far... ;)
I could prepare a how-to when I'm finished, if that interests you.
> It is encapsulating how debug info is encoded. Earlier it was using
>
2014 Oct 24
8
[LLVMdev] First-class debug info IR: MDLocation
I've attached a preliminary patch for `MDLocation` as a follow-up to the
RFC [1] last week. It's not commit-ready -- in particular, it squashes
a bunch of commits together and doesn't pass `make check` -- but I think
it's close enough to indicate the direction and work toward consensus.
[1]: http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-October/077715.html
IMO, the files to
2014 Aug 13
2
[LLVMdev] Advice for setting debug locations
Oh, I see. Sorry I misunderstood. I'll try to come up with some
minimal IR. The assertion stems from the fact that getCompileUnitDIE()
returns null and then crashes at DWARFUnit.cpp:301. I admit I don't
know if this problem is on the parsing or the generation side.
While I come up with the IR, basically what I was doing was using a
DebugLoc with scope being a DIFile rather than a
2015 Nov 03
3
RFC: Supporting macros in LLVM debug info
> Do we really need to touch the AST? Or would it be reasonable to wire up the CGDebugInfo directly to the PPCallbacks, if it isn't already? (perhaps it is already wired up for other reasons?)
This sound as a good idea, I will check that approach.
PPCallbacks is only an interface, has nothing connected to it, but we will create a new class, which implement PPCallbacks, for macros. So we can