Displaying 20 results from an estimated 60000 matches similar to: "[LLVMdev] LLVM +stdcxx"
2009 Mar 10
1
[LLVMdev] llvm + stdcxx
I tried to compile LLVM + stdcxx and I got a lot of compiling errors.
Did anyone got that?
Manoel Teixeira
2009 Jun 08
3
[LLVMdev] Structure alignment
%FIRSTSTRU = type { i32, double, i32, i8* }
struct {
int var1;
double var2;
int var3;
char *var4;
}firstStru ;
Could someone help?
If, running a application in windows with MSVC, I allocate a memmory buffer and call a LLVM
function with such buffer, there's a structure alignment problem.
If the LLVM function call a C function using the same buffer, it runs fine.
Any ideas?
2009 Jun 04
1
[LLVMdev] Structure Alignment
struct xfirstStru
{
int var1;
double var2;
int var3;
char *var4;
};
%FIRSTSTRU_PLUSPLUS_TOTVS. = type { i32, double, i32, i8* }
Hi,
I had not applied the layout at run time, only during the emission of the .bc.
Now it's running ok when I allocate the structure point at LLVM side, but, when I allocate the structure pointer in the C
2009 Jan 08
0
[LLVMdev] LLVMdev Digest, Vol 55, Issue 16
1. Re: LLVM optmization (Bill Wendling)
Hi,
The IR is not wrong. I said that the assembler generated by MSVC is quicker. We can see that the for loop, in the TESTE function, is done without jump's in the MSVC and with jumps in LLVM. I think thats the point.
If we don't use threads, the result is the same. My test were done with one billion interactions in the for loop. The MSVC
2009 Jun 09
1
[LLVMdev] Structure alignment
Hi,
It's not ok yet.
When a C function calls a LLVM function, or a LLVM function calls a C function, the offset of the variables are wrong.
When a don't mix LLVM with C, it's ok, but I need call extern functions using structs.
Ciao
Manoel
Subject: Re: [LLVMdev] Structure alignment
To: LLVM Developers Mailing List <llvmdev at cs.uiuc.edu>
Message-ID:
2009 Jan 06
2
[LLVMdev] LLVM Optmizer
The following C code :
#include <stdio.h>
#include <stdlib.h>
int TESTE2( int parami , int paraml ,double paramd )
{
int varx=0,vary;
int nI =0;
//varx= parami;
if( parami > 0 )
{
varx = parami;
vary = varx + 1;
}
else
{
varx = vary + 1;
vary = paraml;
}
varx = varx + parami + paraml;
for( nI = 1 ; nI <= paraml; nI++)
{
varx =
2009 Jan 07
3
[LLVMdev] LLVM optmization
The following C test program was compiled using LLVM with -O3 option and MSVC with /O2.
The MSVC one is about 600 times faster than the one compiled with the LLVM.
We can see that the for loop in MSVC assembler is solved in the optimization pass more efficiently than that in LLVM.
Is there an way to get a optimization result in LLVM like that of the MSVC?
Manoel Teixeira
#include
2009 May 15
1
[LLVMdev] Intrinsic
Hi,
I'm trying to use exception control by LLVM.
In the demo page, I got :
declare i8* @llvm.eh.exception() nounwind
But, when a try to emit the code by llvm engine, the name is generate with the sufix .132
( llvm.eh.exception.132 ) and the Function::getIntrinsicID abort the program.
It was so :
Intrinsic::getDeclaration(llvm_module,Intrinsic::memset,&Tys,1);
Now, it's
2013 Jan 13
0
[LLVMdev] Using C++'11 language features in LLVM itself
Hello all,
Using the Apache Wiki [1] I summed up what can be used simultaneously by gcc,
MSVC and clang.
I mostly considered only the latest versions of the proposals where there were
several, where not there is a link to a note at the bottom. Furthermore I did
not scourge through 3 bug databases and I implicitly trusted the wiki page.
I drew up a list of profiles, listing the base
2009 Jun 04
0
[LLVMdev] Structure Alignment
Hi,
I have a problem using structs, when calling a function written in C from
a LLVM function or calling a LLVM function from a C one.
I noticed that the LLVM align double with 4 bytes and our run time routines
use 8, in MS Windows.
If a use #pragma pack(4) in my C programs, the routines run fine, but
I must ensure that all external call should use the #pragma directive.
If I change the llvm
2013 Jan 13
0
[LLVMdev] Using C++'11 language features in LLVM itself
On Sun, Jan 13, 2013 at 9:57 AM, David Blaikie <dblaikie at gmail.com> wrote:
> On Sun, Jan 13, 2013 at 5:18 AM, Matthieu M. <matthieu.monrocq at gmail.com> wrote:
>> Hello all,
>>
>> Using the Apache Wiki [1] I summed up what can be used simultaneously by gcc,
>> MSVC and clang.
>>
>> I mostly considered only the latest versions of the proposals
2013 Jan 13
2
[LLVMdev] Using C++'11 language features in LLVM itself
On Sun, Jan 13, 2013 at 5:18 AM, Matthieu M. <matthieu.monrocq at gmail.com> wrote:
> Hello all,
>
> Using the Apache Wiki [1] I summed up what can be used simultaneously by gcc,
> MSVC and clang.
>
> I mostly considered only the latest versions of the proposals where there were
> several, where not there is a link to a note at the bottom. Furthermore I did
> not
2013 Jan 13
2
[LLVMdev] Using C++'11 language features in LLVM itself
On Sun, Jan 13, 2013 at 7:00 PM, David Blaikie <dblaikie at gmail.com> wrote:
> On Sun, Jan 13, 2013 at 9:57 AM, David Blaikie <dblaikie at gmail.com> wrote:
> > On Sun, Jan 13, 2013 at 5:18 AM, Matthieu M. <matthieu.monrocq at gmail.com>
> wrote:
> >> Hello all,
> >>
> >> Using the Apache Wiki [1] I summed up what can be used
2009 Mar 24
0
[LLVMdev] va_start
Hi,
When I try to use va_start(ptr), I got the following problem :
Type *Tys = PointerType::get(IntegerType::get(8), 0);
return Intrinsic::getDeclaration(llvm_module,Intrinsic::vastart,&Tys,1);
...............
The Name generated is "llvm.va_start.p0i8", so, it's not found, abending the process.
and Len = 18
In intrinsics.gen :
if (Len == 13 && !memcmp(Name,
2009 Mar 24
0
[LLVMdev] va_start
Hi,
When I try to use va_start(ptr), I got the following problem :
Type *Tys = Type::VoidTy;
Or
Type *Tys = PointerType::get(IntegerType::get(8), 0);
return Intrinsic::getDeclaration(llvm_module,Intrinsic::vastart,&Tys,1);
...............
The Name generated is "llvm.va_start.p0i8", so, it's not found, abending the process.
and Len = 18
In intrinsics.gen :
if (Len == 13
2009 May 15
0
[LLVMdev] LLVMdev Digest, Vol 59, Issue 25
I'm trying to use exception control by LLVM.
In the demo page, I got :
declare i8* @llvm.eh.exception() nounwind
But, when a try to emit the code by llvm engine, the name is generate with the sufix .132
( llvm.eh.exception.132 ) and the Function::getIntrinsicID abort the program.
Could some one help me?
Manoel Teixeira
2009 Jan 14
0
[LLVMdev] LLVM optmization
Hi Manoel,
> Hi, Duncan.
>
> Here an example :
> #include <stdio.h>
> #include <stdlib.h>
> //
> int TESTE ( int parami ,int paraml )
> {
> int varx=0;
> int nI =0;
>
> if( parami > 0 )
> {
> varx = parami;
> }
> else
> {
> varx = 1;
> }
>
> for( nI = 1 ; nI <= paraml;
2011 Aug 05
0
[LLVMdev] [cfe-dev] Undefined reference cross-compiling shared llvm/clang for mingw
Il 02/08/2011 13:02, NAKAMURA Takumi ha scritto:
> Abramo, it must be the query for llvmdev, not for cfe-dev.
>
> 2011/7/28 Abramo Bagnara <abramo.bagnara at gmail.com>:
>> ../llvm-r136065/configure --host=i586-mingw32msvc
>> --enable-targets=host-only --disable-jit --enable-bindings=none
>> --enable-shared --disable-threads --disable-pthreads
>>
2011 Aug 02
2
[LLVMdev] [cfe-dev] Undefined reference cross-compiling shared llvm/clang for mingw
Abramo, it must be the query for llvmdev, not for cfe-dev.
2011/7/28 Abramo Bagnara <abramo.bagnara at gmail.com>:
> ../llvm-r136065/configure --host=i586-mingw32msvc
> --enable-targets=host-only --disable-jit --enable-bindings=none
> --enable-shared --disable-threads --disable-pthreads
> --disable-assertions --disable-optimized
I added --enable-shared for cygming a year ago.
2013 Jan 11
4
[LLVMdev] Using C++'11 language features in LLVM itself
On Fri, Jan 11, 2013 at 11:32 AM, Sebastian Redl
<sebastian.redl at getdesigned.at> wrote:
>
> On 11.01.2013, at 20:08, Eli Bendersky wrote:
>
>>>> I suppose this tradeoff can be evaluated by looking at the delta
>>>> between 4.5 and 4.6 which is actually supported by MSVC 2010 and Clang
>>>> 3.1
>>>
>>> Makes perfect sense to