Displaying 20 results from an estimated 900 matches similar to: "[LLVMdev] Box removal"
2012 Feb 02
3
[LLVMdev] Why extra 4 bytes on stack ???
Hi There ,
Again ,I'm newbie to LLVM  and please pardon me ..if you guys  feel that
,the below question is very basic :)
Here i go ,compiled the below sample with clang i.e *clang enum.c -S
-emit-llvm* and there respective file are
$ cat enum.c
int main()
{
 enum type{one=1,two,three} s;
 s = one;
 return s;
}
$ cat enum.s
; ModuleID = 'enum.c'
target datalayout =
2012 Feb 02
0
[LLVMdev] Why extra 4 bytes on stack ???
On Thu, Feb 2, 2012 at 12:25 PM, Umesh Kalappa <umesh.kalappa0 at gmail.com> wrote:
> Hi There ,
>
> Again ,I'm newbie to LLVM  and please pardon me ..if you guys  feel that
> ,the below question is very basic :)
>
> Here i go ,compiled the below sample with clang i.e clang enum.c -S
> -emit-llvm and there respective file are
>
> $ cat enum.c
> int main()
2007 Nov 29
2
[LLVMdev] Boxing and vectors
So I now have a working first-order language that uses conventional boxing to 
handle polymorphism and with ints, floats and ('a -> 'a) functions.
After a huge amount of detailed benchmarking in OCaml and F# I have decided 
that it is very important to be able to unbox complex numbers but no other 
compound types. As LLVM provides a vector type for power-of-two 
dimensionalities that
2011 Jul 25
3
[LLVMdev] function failing to run in Jit
Is there any reason this generated code won't run in the Jit?
I've pretty much got everything else working for my front end 
which all runs fin in the Jit but I can't get global arrays to work. 
; ModuleID = 'test'
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
target triple
2011 Jul 01
3
[LLVMdev] Pointer Constant?
I'm writing a JIT for my toy language, and I'm confused by one thing.
How do I, with IR Builder, Insert a pointer constant? For the first
version of my jit, I really only need LLVM to pass around opaque types
and then pass those variables to C functions that return other opaque
types. So for instance, I have a Int object that wraps the GNU GMP
routines. A want to be able to tell IRBuilder
2008 Dec 16
2
[LLVMdev] OpenCL Frontend
There seems to be some interest these days in OpenCL. However for some
projects, a issue they face to adopting OpenCL is requirements of
maintaining two source trees: one for normal C code (for use on
systems without OpenCL support or poor OpenCL performance) and another
for OpenCL.
I am interested in using LLVM to create a OpenCL frontend for
multicore CPUs. Now that the spec is out, we have a
2011 May 12
2
[LLVMdev] Pre-built LLVM shared libs for Windows?
I'd like to do some simple C# -> LLVM C API bindings for windows. Is there a
place I can get pre-built LLVM .dlls for windows?
Thanks
Timothy
-- 
“One of the main causes of the fall of the Roman Empire was that–lacking
zero–they had no way to indicate successful termination of their C
programs.”
(Robert Firth)
-------------- next part --------------
An HTML attachment was scrubbed...
2013 Mar 05
2
[LLVMdev] Bad Instruction 4 with fastcc
On OSX I thought I'd try to optimize my compiler a bit by switching some of
the calling conventions from CCallingConv to FastCC. The compiler ran fine,
but when I executed the code, I got "Bad Instruction 4". I'm seeing some
other mentions on this mailing list of issues like this on OSX (I'm using
10.8). Is there anything I need to change to enable fastcc with my
compiler? I
2011 May 12
3
[LLVMdev] Vtables for non c++ languages
I'm working on implementing a simple functional language in LLVM. It's
statically typed, but I'd like to a have some simple multimethods involved.
Does LLVM have some intrinsics for handling something like C++ vtables? Or
do I need to implement my own way of handling single-dispatch functions?
Thanks,
Timothy
-- 
“One of the main causes of the fall of the Roman Empire was
2004 Jul 10
6
How can Windows 2000 mount a share as a service?
I've asked every M$ expert I know, trolled through M$ TechNet, experimented
with SRVANY/INSTSRV login scripts which hard-code username/passwords to
login to a Samba 2.2.8a SMB server.  I've experiment with and without the
"Allow service to interact with Desktop" switch turned on.
I am stuck. :(   I can find no way to mount a share as a service, so that
IIS can serve web-pages
2004 Apr 13
6
NUA + MYSQL?
Hello all.  I just joined the list, because I am interested in NUA
features of Samba3.  I got the MySQL passdb backend working, but it
still requires a Unix System account.  I need to use fully virtualized
user accounts.
Re: the release of Samba3 and NUA capabilities I have found this:
<snip>
In the development of Samba-3, a number of requests were received to
provide the ability to
2007 Nov 30
0
[LLVMdev] Boxing and vectors
On Nov 29, 2007, at 16:06, Jon Harrop wrote:
> So I now have a working first-order language that uses conventional  
> boxing to handle polymorphism and with ints, floats and ('a -> 'a)  
> functions.
Cool.
> After a huge amount of detailed benchmarking in OCaml and F# I have  
> decided that it is very important to be able to unbox complex  
> numbers but no other
2004 Mar 26
2
Automount from Windows w/o logging in first?
I am trying to do something which should seem very straightforward,
not to mention, not unusual for load-balanced web servers, namely:
providing a faceless/login-less mounting of SMB shares from NT4 and
Win2K servers.
Yes, I accept that I will need to stash a plaintext login key in some
script or registry key.  The security impacts are acceptable.
I have the latest Samba 2.2.x server, and a
2011 Aug 18
2
[LLVMdev] Accessing arguments in a caller
I need some advice on "forwarding" arguments to a callee. Suppose I have 
a function F that is called at the beginning of all other functions in 
the module. From F I need to access (read) the arguments passed to its 
immediate caller. Right now I do something like boxing all arguments in 
the caller inside a struct and passing a pointer to the struct to F, 
alongside an identifier
2013 Apr 25
1
[LLVMdev] Allocate memory for a class
Hi!
When I allocate memory for a structure, in _Znwm (operator new) function I
need to specify size. How can I determine this information dynamically?
; ModuleID = '/tmp/webcompile/_12211_0.bc'
target datalayout =
"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
target triple =
2007 Feb 05
1
[LLVMdev] Misc optimization issue
This is from 'early JIT tests' thread on comp.lang.misc.
Given :-
int ltst(int x)
{
int i, j;
j=0;
for(i=0; i<x; i++)j++;
return(j);
}
This is from the online LLVM compiler. AND It does not seem to optimize it down !
; ModuleID = '/tmp/webcompile/_24843_0.bc'
target datalayout = "e-p:32:32"
target endian = little
target pointersize = 32
target triple =
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 = 
2011 Aug 22
2
[LLVMdev] Accessing arguments in a caller
Hi Carlo, rather than declaring individual stack variables
   int x;
   int y;
   int z;
and so on, which requires you to pass each one, or a pointer to each one,
to your function, declare one stack variable of struct type that holds
them all:
   struct StackObjects {
     int x;
     int y;
     int z;
     ...
   };
...
   struct StackObjects stack;
then pass the address of stack to your
2011 Jul 25
0
[LLVMdev] function failing to run in Jit
Try using i64 indices with GEP
> Is there any reason this generated code won't run in the Jit?
> I've pretty much got everything else working for my front end
> which all runs fin in the Jit but I can't get global arrays to work.
>
> ; ModuleID = 'test'
> target datalayout =
>
2009 May 30
3
[LLVMdev] Getting started (Windows)
Hi,
I'm just trying to get started with a simple example with LLVM under
windows. I downloaded the mingw binaries from the website and would
like to compile a program. (PS: The mingw binaries did not come with
any documentation on what they are and how to use them)
I used the online code generator (http://llvm.org/demo/index.cgi) to
compile hello world:
#include <stdio.h>
int main() {