Displaying 20 results from an estimated 27 matches for "debugir".
2013 Sep 22
1
[LLVMdev] DebugIR pass fails with an assert
Hi List,
My IR compiles fine and runs. I've tried to add DebugIR pass so
as to be able to debug and profile it (since source is an SQL query
all that I can debug and profile is IR itself).
When I tried to add it to pass manager I got the following assert:
Program received signal SIGABRT, Aborted.
0x00007ffff3fe4425 in __GI_raise (sig=<optimized out>) at...
2017 Nov 20
4
Debugging LLVM IR - Reviving the DebugIR pass
...ed to have debug info at the LLVM IR level (because
my frontend's semantics vastly differ from IR that it doesn't make much
sense to use it). Asm can sometimes be too "low level", so it's nice to
have the ability to single-step at the IR level.
The pass that used to do this (-debugir) bitrotted and was removed from
tree. I spent the weekend bringing it back: https://reviews.llvm.org/D40207
I'd love to have some help with reviews and tests I should write for this,
because I don't understand the debug info side of LLVM very well.
Also, is there a protocol to have a revi...
2018 Mar 23
0
Reviving the DebugIR pass
Please do take over the pass revival. College hasn't left me with the
bandwidth to continue this side project :)
If there's small things here and there, I'd be happy to pitch in.
However,.whipping the patch into shape is beyond me right now.
Thanks
Siddharth
On Fri 23 Mar, 2018, 00:53 via llvm-dev, <llvm-dev at lists.llvm.org> wrote:
>
> >> This work could also
2018 Mar 23
1
Reviving the DebugIR pass
>> This work could also be used to fix [3]. Although this probably needs
>> more though because there's the question of whether we should preserve
>> existing debug information in an LLVM IR file or write over it when it
>> is given to Clang.
>
>
> If foo.ll contains edited debug info, `clang -g` shouldn't silently drop the
> edits. A warning + no-op
2018 Mar 22
2
Reviving the DebugIR pass
>> This work could also be used to fix [3]. Although this probably needs
>> more though because there's the question of whether we should preserve
>> existing debug information in an LLVM IR file or write over it when it
>> is given to Clang.
>
> If foo.ll contains edited debug info, `clang -g` shouldn't silently drop
> the edits. A warning + no-op seems
2018 Mar 21
0
Reviving the DebugIR pass
...lvm.org>
wrote:
> Hi,
>
> I recently had the need to see the correspondence between some Clang
> generated LLVM IR and the compiled machine code within a debugger
> (lldb in this case). Unfortunately it looks like the functionality to
> do this used to be in a pass called 'DebugIR' but was removed due to
> the lack of a maintainer [1].
>
> It appears an attempt was made [2] to revive this but it appears to
> have stalled.
>
> I am very keen to see this feature land back in LLVM, so I'd either
> like to take over [2] (only if the original author i...
2018 Mar 21
2
Reviving the DebugIR pass
Hi,
I recently had the need to see the correspondence between some Clang
generated LLVM IR and the compiled machine code within a debugger
(lldb in this case). Unfortunately it looks like the functionality to
do this used to be in a pass called 'DebugIR' but was removed due to
the lack of a maintainer [1].
It appears an attempt was made [2] to revive this but it appears to
have stalled.
I am very keen to see this feature land back in LLVM, so I'd either
like to take over [2] (only if the original author is no longer
interested) or rewrit...
2018 Mar 22
0
Reviving the DebugIR pass
...gt; Hi,
>>
>> I recently had the need to see the correspondence between some Clang
>> generated LLVM IR and the compiled machine code within a debugger
>> (lldb in this case). Unfortunately it looks like the functionality to
>> do this used to be in a pass called 'DebugIR' but was removed due to
>> the lack of a maintainer [1].
>>
>> It appears an attempt was made [2] to revive this but it appears to
>> have stalled.
>>
>> I am very keen to see this feature land back in LLVM, so I'd either
>> like to take over [2]...
2013 Aug 20
2
[LLVMdev] Trying to run qt app compiled to bit code Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!")
...x0000000101a6a1ff (anonymous namespace)::DIUpdater::DIUpdater(llvm::Module&, llvm::StringRef, llvm::StringRef, llvm::Module const*, llvm::ValueMap<llvm::Value const*, llvm::WeakVH, llvm::ValueMapConfig<llvm::Value const*> > const*) + 111
27 lli 0x0000000101a6a0e1 llvm::DebugIR::createDebugInfo(llvm::Module&, llvm::OwningPtr<llvm::Module>&) + 497
28 lli 0x0000000101a6a39c llvm::DebugIR::runOnModule(llvm::Module&) + 268
29 lli 0x0000000101563276 main + 790
30 libdyld.dylib 0x00007fff8975c7e1 start + 0
31 libdyld.dylib 0...
2013 Aug 20
0
[LLVMdev] Trying to run qt app compiled to bit code Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!")
Looks like a bug in the DebugIR pass. I imagine that without the -debug–ir flag, you will be able to get a little further.
Nonetheless, can you send me the "bitcodetestqtapp" that you're running, or steps to reproduce? I'd love to take a look.
Thanks,
Dan
From: Shailesh Kumar <shaileshkumar41 at yahoo.com&...
2018 Mar 22
4
Reviving the DebugIR pass
...gt; Hi,
>>
>> I recently had the need to see the correspondence between some Clang
>> generated LLVM IR and the compiled machine code within a debugger
>> (lldb in this case). Unfortunately it looks like the functionality to
>> do this used to be in a pass called 'DebugIR' but was removed due to
>> the lack of a maintainer [1].
>>
>> It appears an attempt was made [2] to revive this but it appears to
>> have stalled.
>>
>> I am very keen to see this feature land back in LLVM, so I'd either
>> like to take over [2]...
2018 Jun 12
4
IR to binary address mapping
Hi
I know that LLVM provide some debug API for us to know the source code
information. For example, every IR instruction's source line number and
column number.
However, are there any method to get a mapping from IR instruction to
binary address directly. I don't want to use dwarf line mapping table as a
bridge. I think the binary is generated by clang and llvm. I think there
definitely
2016 Mar 25
0
[GSoC] First draft project proposal; IR level interpreter debugger
...this has been contributed by someone from Intel
> at some point but got removed later on for reasons I don't recall.
> It might be worth to scan the archives.
>
Thanks for your response, I have searched in archives and I think I
found some references to what you're talking about (DebugIR?). Though,
I haven't been able to find the reason as to why it was removed. My
concern now is whether this GSoC project has become obsolete because
of this.
I'll continue trying to find the reason why this was removed.
Kind regards,
Janek
2018 Jan 04
0
LLVM IR Debugger
You can attach debug info to the Llvm module about LLVM IR, at which point
one can throw the executable into any debugger and get llvm level debugging.
I've started a patch to revive this feature (DebugIR pass). I've been
sidetracked the past month, but I'll come back to it soon :)
https://reviews.llvm.org/D40778
Cheers,
Siddharth
On Thu 4 Jan, 2018, 09:23 Brenda So via llvm-dev, <llvm-dev at lists.llvm.org>
wrote:
> Hi
>
> I am looking at open projects that LLVM want to im...
2016 Mar 25
2
[GSoC] First draft project proposal; IR level interpreter debugger
On 03/25/2016 03:28 AM, Philip Reames via llvm-dev wrote:
> I've scanned over your proposal, but am not quite sure I understand your
> objective. Is your intent to be able to step through IR source in a
> debugger and inspect intermediate state? If so, you may consider
> whether "simply" inserting debug metatadata into your IR which describes
> the IR source, and
2016 Mar 25
2
[GSoC] First draft project proposal; IR level interpreter debugger
...by someone from Intel
>> at some point but got removed later on for reasons I don't recall.
>> It might be worth to scan the archives.
>>
>
> Thanks for your response, I have searched in archives and I think I
> found some references to what you're talking about (DebugIR?). Though,
> I haven't been able to find the reason as to why it was removed. My
> concern now is whether this GSoC project has become obsolete because
> of this.
>
> I'll continue trying to find the reason why this was removed.
IIRC, it was removed because it was buggy, and...
2018 Jan 04
3
LLVM IR Debugger
Hi
I am looking at open projects that LLVM want to implement and it seems to
be a suggestion to write an LLVM IR level debugger. Is there any existing
LLVM projects out there that already does such a thing? If not, I would
like to try implementing one myself.
By debugger, I think it means something like gdb, where you can insert
breakpoints, run code and observe layout of registers and memory at
2014 May 22
4
[LLVMdev] perf tool support in MCJIT
I believe the perf tool cannot profile/analyze the JITed code in MCJIT
model.
Can you please confirm this ? I was working on a patch to fix this.
Another question, is the there any support to map the llvm IR with x86
generated assembly ? so its easier to analyze the code generator.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2015 May 08
4
[LLVMdev] Getting llc to emit debug info into a obj file from source .ll
Hello,
I'm working on a binary translator project that emits an .ll file. I'm
trying to debug it in Visual Studio and would like to be able to step
through and see my generated .ll file in the debugger.
Does LLVM support debug information corresponding to an input .ll
file? My hunch is "no, as it expects debug info to come from Clang."
I assemble it using:
llc -filetype=obj
2016 Mar 25
0
[GSoC] First draft project proposal; IR level interpreter debugger
...gt;>> at some point but got removed later on for reasons I don't recall.
>>> It might be worth to scan the archives.
>>>
>>
>> Thanks for your response, I have searched in archives and I think I
>> found some references to what you're talking about (DebugIR?). Though,
>> I haven't been able to find the reason as to why it was removed. My
>> concern now is whether this GSoC project has become obsolete because
>> of this.
>>
>> I'll continue trying to find the reason why this was removed.
>
> IIRC, it was remo...