Displaying 20 results from an estimated 20 matches for "leissa".
Did you mean:
rleissa
2012 Apr 13
2
[LLVMdev] gdb + clang/llvm
Hi Eric,
I'm using gcc. My make command is
make -j9
as mentioned earlier, the -cc1 switch did the trick for me. Thanks for helping out.
--
Roland
----- Original Message -----
> From: "Eric Christopher" <echristo at apple.com>
> To: "Roland Leißa" <leissa at cs.uni-saarland.de>
> Cc: LLVMdev at cs.uiuc.edu
> Sent: Freitag, 13. April 2012 14:39:53
> Subject: Re: [LLVMdev] gdb + clang/llvm
>
>
> On Apr 13, 2012, at 2:19 PM, Roland Leißa <leissa at cs.uni-saarland.de>
> wrote:
>
> > Hi all,
>...
2012 Apr 13
0
[LLVMdev] gdb + clang/llvm
On Apr 13, 2012, at 2:19 PM, Roland Leißa <leissa at cs.uni-saarland.de> wrote:
> Hi all,
>
> I currently have a problem setting up gdb with clang/llvm.
>
> I configured llvm/clang (trunk) with:
> ../llvm/configure --prefix=PROJECT_DIR/install_debug --enable-expensive-checks --enable-targets=host --enable-debug-r...
2012 Apr 13
0
[LLVMdev] gdb + clang/llvm
On Apr 13, 2012, at 3:45 PM, Roland Leißa <leissa at cs.uni-saarland.de> wrote:
> Hi Eric,
>
> I'm using gcc. My make command is
> make -j9
>
> as mentioned earlier, the -cc1 switch did the trick for me. Thanks for helping out.
Aha. Yes, that'd do it. Glad you're up and debugging.
-eric
2012 Apr 23
0
[LLVMdev] gdb + clang/llvm
On Apr 23, 2012, at 2:14 PM, Roland Leißa <leissa at cs.uni-saarland.de> wrote:
> As you can see the line is question is executed but the breakpoint is not triggered. Apparently, clang executes the code generation in a different process. What do I have to do in order to debug this process?
What you did before, run it under -cc1....
2012 Apr 13
4
[LLVMdev] gdb + clang/llvm
Hi all,
I currently have a problem setting up gdb with clang/llvm.
I configured llvm/clang (trunk) with:
../llvm/configure --prefix=PROJECT_DIR/install_debug --enable-expensive-checks --enable-targets=host --enable-debug-runtime --enable-shared
Now, when I invoke gdb with the freshly built clang it basically works. I can look at backtraces, set breakpoints and so on but breakpoints are never
2012 Apr 23
1
[LLVMdev] gdb + clang/llvm
...solves the problem for me.
As I learned from the last email, specifying -v is a good starting point in order to see what actually is happening and tackle such problems.
--
Roland
----- Original Message -----
> From: "Jim Grosbach" <grosbach at apple.com>
> To: "Roland Leißa" <leissa at cs.uni-saarland.de>
> Cc: LLVMdev at cs.uiuc.edu
> Sent: Montag, 23. April 2012 14:45:42
> Subject: Re: [LLVMdev] gdb + clang/llvm
>
>
> On Apr 23, 2012, at 2:14 PM, Roland Leißa <leissa at cs.uni-saarland.de>
> wrote:
>
> >>> ok,...
2012 Apr 21
2
[LLVMdev] gdb + clang/llvm
...#39;s say I want to set a breakpoint somewhere in
clang/lib/CodeGen/CGExprScalar.cpp
What do I have to do in order to trigger breakpoints, see backtraces and so on?
--
Roland
----- Original Message -----
> From: "Eric Christopher" <echristo at apple.com>
> To: "Roland Leißa" <leissa at cs.uni-saarland.de>
> Cc: LLVMdev at cs.uiuc.edu
> Sent: Freitag, 13. April 2012 16:43:41
> Subject: Re: [LLVMdev] gdb + clang/llvm
>
>
> On Apr 13, 2012, at 3:45 PM, Roland Leißa <leissa at cs.uni-saarland.de>
> wrote:
>
> > Hi Eric,
&g...
2012 Apr 23
4
[LLVMdev] gdb + clang/llvm
...alar.cpp, line 2742
I put
llvm::errs() << "test\n";
there in order to verify that this line is really getting executed.
Then, I set the breakpoint
break CGExprScalar.cpp :2742
and run clang:
r -std=c++11 simple.cpp
I'm getting this output:
Starting program: /home/rleissa/projects/test/build_debug/Debug+Asserts+Checks/bin/clang -std=c++11 simple.cpp
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
test
clang: /home/rleissa/projects/test/llvm/lib/VMCore/Instructions.cpp:1475: llvm::InsertElementInst::In...
2012 Apr 23
0
[LLVMdev] gdb + clang/llvm
On Apr 23, 2012, at 2:14 PM, Roland Leißa <leissa at cs.uni-saarland.de> wrote:
>>> ok, I now have a problem in the code generator.
>>> Let's say I want to set a breakpoint somewhere in
>>> clang/lib/CodeGen/CGExprScalar.cpp
>>>
>>> What do I have to do in order to trigger breakpoint...
2012 Apr 13
0
[LLVMdev] gdb + clang/llvm
...cpp a Clang source file? If so, make sure you run the compiler
itself with "clang -cc1", not the compiler *driver* with bare "clang".
See here (
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2012-March/020275.html ) for
a similar question.
-Matt
On 04/13/2012 04:19 PM, Roland Leißa wrote:
> Hi all,
>
> I currently have a problem setting up gdb with clang/llvm.
>
> I configured llvm/clang (trunk) with:
> ../llvm/configure --prefix=PROJECT_DIR/install_debug --enable-expensive-checks --enable-targets=host --enable-debug-runtime --enable-shared
>
> Now, wh...
2012 May 03
2
[LLVMdev] emit broken llvm code
Hi all,
I'm currently working on an extension for clang. Apparently, I'm doing sth incorrectly currently. The Verify complains with
Wrong type for attribute signext
<8 x i32> (<256 x i1>, i16, <2 x double>)* @_Z4testsDv2_d
Now, this information is not that useful. Is it possible to emit this "broken" llvm code in order to better understand what went wrong?
--
2012 Apr 30
1
[LLVMdev] Bindings/Ocaml/ext_exc.ml' FAILED
Hi all,
from llvm-trunk I'm getting this failure:
llvm[0]: Running test suite
make[1]: Entering directory `/home/rleissa/projects/llvm/build_debug/test'
Making a new site.exp file...
Making LLVM 'lit.site.cfg' file...
Making LLVM unittest 'lit.site.cfg' file...
make -C /home/rleissa/projects/llvm/build_debug/test/../tools/clang/test lit.site.cfg Unit/lit.site.cfg
make[2]: Entering directory `/home...
2012 Apr 23
0
[LLVMdev] gdb + clang/llvm
On Apr 20, 2012, at 6:35 PM, Roland Leißa <leissa at cs.uni-saarland.de> wrote:
> ok, I now have a problem in the code generator.
> Let's say I want to set a breakpoint somewhere in
> clang/lib/CodeGen/CGExprScalar.cpp
>
> What do I have to do in order to trigger breakpoints, see backtraces and so on?
You set a...
2012 May 18
5
[LLVMdev] Phi + Select Optimization
Hi all,
I've just written a small enhancement to SimplifyPHINode.
The idea is the following:
If we have this:
a = phi(X, X, undef, undef, X, undef)
X = select cond, sth, a
or this:
a = phi(X, X, undef, undef, X, undef)
X = select cond, a, sth
we can replace the phi by 'a' and the select by 'sth'.
Why does this work?
Well, in those cases where control-flow happens to
2012 May 15
1
[LLVMdev] test all ones/zeros in vector
Hi all,
is there a portable and effective way of emitting code which checks whether all vector elements are true or false?
Currently, I'm doing this:
%sext = sext <4 x i1> %my_cmp to <4 x i8>
%bcast = bitcast <4 x i8> %sext to i32
%all_zeros = icmp ne i32 %bcast, 0
br i1 %all_zeros, label %A, label %B
The emitted code works, but it's not great. I'd like
2012 May 19
1
[LLVMdev] Phi + Select Optimization
I consider my patch not mature enough to be committed.
I just wanted to hear what others are saying. I'm not quite sure how to exactly deal with these cascades of selects which induce a cycle via a Phi; I'd like to implement that as well. Also, I'm not sure whether InstructionSimplify.cpp is the proper place for this optimization.
--
Roland
----- Original Message -----
> From:
2012 Dec 23
0
[LLVMdev] Alternative to llvm::TrackingVH
Hi all,
I'm currently using llvm::TrackingVH in order to have a tracking reference to
a definition. Unfortunately, TrackingVHs are incredibly slow. Are there
alternatives?
--
Roland
2013 Feb 26
1
[LLVMdev] passing vector of booleans to functions
Hi Duncan,
thanks for the hint. I tried both variants:
define <4 x float> @masked_add_1(<4 x i1> signext %mask, <4 x float> %a, <4 x
float> %b)
define <4 x float> @masked_add_32(<4 x i32> %mask, <4 x float> %a, <4 x float> %b)
Unfortunately, this will raise an assertion:
Wrong types for attribute: zeroext signext noalias nocapture sret byval nest
2013 Dec 19
0
[LLVMdev] data layout of host machine
Hi all,
how can I retrieve the data layout of the host machine?
Thanks for helping out,
Roland
2013 Feb 26
2
[LLVMdev] passing vector of booleans to functions
Hi all,
I'm currently trying to figure out the best way to pass vector of
booleans to other functions. Take this small example:
define <4 x float> @vcmp_add(<4 x float> %a, <4 x float> %b) {
entry:
%cmp = fcmp olt <4 x float> %a, %b
%add = fadd <4 x float> %a, %b
%sel = select <4 x i1> %cmp, <4 x float> %add, <4 x float> %a
ret <4 x