Displaying 20 results from an estimated 2000 matches similar to: "[LLVMdev] Debug Info Documentation State"
2013 Mar 20
0
[LLVMdev] Debug Info Documentation State
On Wed, Mar 20, 2013 at 2:21 PM, Erkki Lindpere <villane at gmail.com> wrote:
> Hi,
>
> I wanted to add debug info to my language (compiler written in Scala,
> outputs .ll files), but I found it really hard to do based on the
> documentation provided at http://llvm.org/docs/SourceLevelDebugging.html(I looked at the specific doc for LLVM 3.0 though)
>
> With LLVM 3.0, DI
2013 Mar 20
1
[LLVMdev] Debug Info Documentation State
Thanks for the quick reply! I will keep the DIBuilder and Clang's
CGDebugInfo as my reference for now.
At the moment I want to stick with generating .ll -- it's somewhat easier
for me to debug the output of my compiler that way, and I haven't
programmed much in C/C++ for years -- mostly been a JVM guy. But at one
point I may want to look into bindings or even creating a bootstrapped
2013 Apr 23
3
[LLVMdev] Optimize away sqrt in simple cases?
hi!
I'm using LLVM 3.2. Does it optimize away llvm.pow(llvm.sqrt(x), 2) to `x`
with any settings? I tried with llc -O3, but that didn't do it.
Would be nice to write |v|² in my language ('v' being a 2D vector say and
|...| and ...² being two separate infix "operators") -- when I could
compare squares of lengths as well as lengths, and know that the sqrt is
optimized
2011 Jul 28
4
[LLVMdev] Is using lots of in-register values in IR bad?
Hi,
I'm a newbie when it comes to compilers (and even close-to-machine coding),
but recently started working on my own language and am using LLVM as the
mid/backend. Currently I'm generating .ll files from a front-end written in
Scala. The language is not really serious, just a way to learn more about
compilers (and LLVM) and maybe serve as a base for further experiments. It's
2013 Apr 23
0
[LLVMdev] Optimize away sqrt in simple cases?
That's a pretty seriously unsafe floating point optimization. It could be done in fast-math mode, but I doubt we currently do it.
--Owen
On Apr 23, 2013, at 1:12 PM, Erkki Lindpere <villane at gmail.com> wrote:
> hi!
>
> I'm using LLVM 3.2. Does it optimize away llvm.pow(llvm.sqrt(x), 2) to `x` with any settings? I tried with llc -O3, but that didn't do it.
>
2011 Jul 29
1
[LLVMdev] Is using lots of in-register values in IR bad?
Thanks for the reply
On Fri, Jul 29, 2011 at 2:06 AM, David A. Greene <greened at obbligato.org>wrote:
> Erkki Lindpere <villane at gmail.com> writes:
> Ok. Do you ever need to grab the address of something on the stack? If
> so you're going to need an alloca. AFAIK, it's the only way to generate
> an address for a local object. This is by design of the IR and
2011 Jul 28
0
[LLVMdev] Is using lots of in-register values in IR bad?
Erkki Lindpere <villane at gmail.com> writes:
> I want to experiment with avoiding mutable state as far as I can. At
> the moment there are no mutable variables -- only immutable value
> types (numerics, bool, vectors, tuples) and I've been doing everything
> in LLVM registers. The compiler doesn't generate a single alloca, load
> or store at the moment.
Ok. Do you
2011 Dec 29
2
[LLVMdev] DW_AT_location not getting generated for local variables
I figured out my previous problem with DIBuilder. However, now I can't seem
to get the compiler to emit location information for local variables.
Here's how my IR looks:
---
define i32 @"\01_main"() {
init:
%exception1 = alloca i8*
%0 = alloca i32
%"bar:Int32" = alloca i32
%1 = alloca i32
%2 = alloca i32*
br label %code
code:
2010 Apr 26
3
[LLVMdev] Does llvm-gcc emit column # info?
Hi,
I tried llvm-gcc -g -O0 on several cases, but the column field of meta data
always shows zero in created ll code.
Does llvm-gcc emit column # info ? Or I should add some option?
Thanks in advance.
Sheng.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100426/76b52b1f/attachment.html>
2012 Jan 02
0
[LLVMdev] DW_AT_location not getting generated for local variables
I found the problem. The llvm.dbg.declare call must have a !dbg tag,
otherwise the location info is not generated. Changing the invocation
in my original example to "call void @llvm.dbg.declare(metadata !{i32*
%"bar:Int32"}, metadata !13), !dbg !16" causes MC to generate the
local location as expected.
-Joe
On Thu, Dec 29, 2011 at 12:41 PM, Joe Groff <arcata at
2012 Jul 27
2
[LLVMdev] llvm dwarf debug info for locals with llvm.dbg.define
Hi,
I had a problem with LLVM not emitting local variable info, even though
I had calls to llvm.dbg.define. After some tracking I found that the
llvm.dbg.declare (and probably value too) have to have a !dbg !nr after
them to get emitted at all. maybe someone can adjust
http://llvm.org/docs/SourceLevelDebugging.html#format_common_declare
that the two llvm.dbg. functions need a !dbg line info
2011 Apr 30
2
[LLVMdev] DWARF not being generated for local variable, though MD looks right(?)
I'm running into a problem with generating debugging information that I'm not sure how to debug; I'd be happy to have some suggestions about where to start digging in.
In short, I believe that I'm correctly generating debug info (with DIBuilder, which has so far been quite nice!), and a scan of the meta-data in the IR looks generally right. However, if I run dwarfdump on my
2013 Apr 23
2
[LLVMdev] Optimize away sqrt in simple cases?
Hello,
Am Dienstag, 23. April 2013, 13:26:19 schrieb Owen Anderson:
> That's a pretty seriously unsafe floating point optimization. It could be
> done in fast-math mode, but I doubt we currently do it.
I just saw this thread and wonder why it's "seriously" unsafe? I see only one
problematic corner case.
For x >= 0.0 the result cannot lose precision.
For x = NaN the
2013 Aug 29
3
[LLVMdev] outdated debug metamata doc?
Is anyone maintaining this page?
http://llvm.org/docs/SourceLevelDebugging.html#composite-type-descriptors
DIBuilder::createSubroutineType seems to generate metadatas with a different format.
Thanks!
Wei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130829/70facf50/attachment.html>
2013 Feb 11
1
[LLVMdev] Is there a way to verify that debug info metadata are correct ?
On Mon, Feb 11, 2013 at 9:42 AM, David Blaikie <dblaikie at gmail.com> wrote:
> On Thu, Feb 7, 2013 at 3:12 AM, Sebastien DELDON-GNB
> <sebastien.deldon at st.com> wrote:
>> Hi all,
>>
>> I'm using my own front-end that generates LLVM debug info metadata. I was using LLVM 2.9 debug version and I'm moving to LLVM 3.2 debug version of metadata.
>
>
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
2012 Aug 21
1
[LLVMdev] Dwarf debug info misses while clang codegen
I'm trying to write a llvm pass to add debug info into a non-debug-info bitcode
file. I have been read http://llvm.org/docs/SourceLevelDebugging.html. And I use
DIBuilder to produce the debug metadata. I know I can't get all information form
ir code . So I add some manual info as test data. After executing my pass, I can
find debug info metadata in my generated bitcode. Those metadata
2010 Jul 14
2
[LLVMdev] Trying to access the user defined variable name
Dear all,
I have the following source code:
long f(long x, long y)
{
long u;
u = x+y;
return u;
};
After clang (with debug option set) and llvm opt using mem2reg, I get
the following .ll file
***************************************************************************
; ModuleID = '<stdin>'
target datalayout =
2011 Dec 07
2
[LLVMdev] Generating DWARF information that pretends an outparam is the return value
On Dec 6, 2011, at 4:13 PM, Devang Patel wrote:
> Hi Josh,
>
> On Dec 4, 2011, at 9:33 PM, Josh Matthews wrote:
>
>> I'm working on generating debug information for Rust, and I'm
>> currently stumped on how to generate DWARF output via LLVM that will
>> correctly represent this (eg. when exiting from foo2(), I'd like to
>> see "Value returns
2010 Dec 15
3
my scala markdown implementation
Hi,
I have written my own implementation of markdown in Scala. I only later
realized there is already one
( <http://tristanhunt.com/projects/knockoff/> ), but I put quite some
work into mine and I think it is never bad to have alternatives, so I
wanted to release it anyway. I want to use the same BSD License as the
original markdown, but before I put it out into the wild I wanted to ask