search for: tbaldridge

Displaying 20 results from an estimated 21 matches for "tbaldridge".

Did you mean: baldridge
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
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...
2007 Jun 03
0
[LLVMdev] timothy b has sent you a private message
...<div style="padding-left: 20px; padding-top: 20px"> <font face="Verdana, Arial, Helvetica, sans-serif" size="2"> <a href="http://www.flixster.com/servlet/invite/782344948gerA817234459Btlk9norCm">http://www.flixster.com/user/tbaldridge/connect</a><br/><br/> timothy b </font> <br/><br/> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr><td bgcolor="#cccccc" height=&quo...
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
2011 Jul 02
0
[LLVMdev] Pointer Constant?
...the generated X86 code doesn't treat the resulting pointer as a constant... for instance, if you use it as a function pointer, the X86 code ends up being an indirect call through a function pointer in a register, rather than a direct call. On Fri, Jul 1, 2011 at 9:30 AM, Timothy Baldridge <tbaldridge at gmail.com> wrote: > 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 fun...
2011 May 12
0
[LLVMdev] Vtables for non c++ languages
On Wed, May 11, 2011 at 8:54 PM, Timothy Baldridge <tbaldridge at gmail.com>wrote: > 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 implemen...
2011 May 12
0
[LLVMdev] Pre-built LLVM shared libs for Windows?
Timothy Baldridge <tbaldridge at gmail.com> writes: >> > 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? >> >> Building LLVM as DLL's on Visual Studio is not supported. > > I didn&...
2012 Dec 26
1
[LLVMdev] Proper values for LLVMCreateTargetMachine
I can't seem to get LLVMCreateTargetMachine to work on my box (MBP i7 OS X 10.8). What should the values of triple, cpu and features be? I'm just looking for a way to get this up and going for now, I don't need specific optimizations. No matter what I send the function, I always get nil back. I'm giving it LLVMGetFirstTarget as the target value. Thanks for the help, Timothy
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
2014 Jan 17
2
[LLVMdev] Invalid RegNum error
I'm writing a compiler using LLVM, and suddenly today I started to get this error, when emitting to a .s file. Assertion failed: (I != M+Size && I->FromReg == RegNum && "Invalid RegNum"), function getLLVMRegNum, file MCRegisterInfo.cpp, line 78. I'm emitting using x86_64-apple-darwin. Any thoughts about what could be causing this? LLVM validation does not
2013 Jan 22
1
[LLVMdev] Compiling to NVPTX
I'm in the process of writing a library and giving a talk about writing compilers using LLVM (llvm-c) and Clojure. As part of my talk I'd like to give an example of a program running on CUDA. Are there any papers, tutorials, examples, on writing a custom frontend for NVPTX? For instance, I'm trying to figure out how to get access to "global" variables like blockidx. I know
2013 Mar 01
0
[LLVMdev] NVPTX CUDA_ERROR_NO_BINARY_FOR_GPU
...Timothy, I'm not sure what you mean by this working for other intrinsics, but in this case, I think you want the intrinsic name llvm.nvvm.read.ptx.sreg.tid.x. For me, this looks like: %x = call i32 @llvm.nvvm.read.ptx.sreg.tid.x() Pete On Fri, Mar 1, 2013 at 11:51 AM, Timothy Baldridge <tbaldridge at gmail.com> wrote: > I'm building this with llvm-c, and accessing these intrinsics via calling > the intrinsic as if it were a function. > > class F_SREG<string OpStr, NVPTXRegClass regclassOut, Intrinsic IntOp> : > NVPTXInst<(outs regclassOut:$dst), (ins), &g...
2013 Mar 01
1
[LLVMdev] NVPTX CUDA_ERROR_NO_BINARY_FOR_GPU
...is working for other intrinsics, but > in this case, I think you want the intrinsic name > llvm.nvvm.read.ptx.sreg.tid.x. > > For me, this looks like: > %x = call i32 @llvm.nvvm.read.ptx.sreg.tid.x() > > Pete > > > On Fri, Mar 1, 2013 at 11:51 AM, Timothy Baldridge <tbaldridge at gmail.com> > wrote: > > I'm building this with llvm-c, and accessing these intrinsics via calling > > the intrinsic as if it were a function. > > > > class F_SREG<string OpStr, NVPTXRegClass regclassOut, Intrinsic IntOp> : > > NVPTXInst<(out...
2011 Jun 28
2
[LLVMdev] Box removal
In the creation of dynamic languages we often have to box values together. For instance, take the following expression: IntObj c = sqrt((a*a)+(b*b)); Here, most likely, a bytecode interpreter would execute this as "mul_ints", "add_ints", "sqrt", etc. Inside these primitive functions we would have to unwrap our IntObj types, add the values, allocate a new object and
2013 Mar 01
4
[LLVMdev] NVPTX CUDA_ERROR_NO_BINARY_FOR_GPU
I'm building this with llvm-c, and accessing these intrinsics via calling the intrinsic as if it were a function. class F_SREG<string OpStr, NVPTXRegClass regclassOut, Intrinsic IntOp> : NVPTXInst<(outs regclassOut:$dst), (ins), OpStr, [(set regclassOut:$dst, (IntOp))]>; def INT_PTX_SREG_TID_X : F_SREG<"mov.u32 \t$dst, %tid.x;",
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
2008 Dec 16
2
[LLVMdev] OpenCL Frontend
Awesome, is the development of this being tracked somewhere? And is there a way I can get involved? Timothy On Tue, Dec 16, 2008 at 11:52 AM, Zack Rusin <zack at tungstengraphics.com> wrote: > On Tuesday 16 December 2008 12:21:24 Timothy Baldridge wrote: >> There seems to be some interest these days in OpenCL. However for some >> projects, a issue they face to adopting
2006 Aug 22
1
[LLVMdev] Porting LLVM to irix.
Greetings! As part of a compiler project I am working on, I am interested in porting LLVM to Irix/MIPS. I figure I could start by working with the bytecode to C translation part of LLVM. However, when I run configure, llvm is saying that it does not recognize the host I am working with. Are there any documents about how to port to a new OS/Instruction set? Thanks, Timothy -- "... one of
2006 Aug 22
1
[LLVMdev] Bug with AutoConfig.sh
Maybe I'm not doing something right here, but there is a rather simple bug in the Autoconfig.sh script. It currently checks for the version numbers in aclocal and libtool. However it only accepts a certain value, instead of that version and all newer versions. Is there a reason for this? Or is this a bug? Timothy -- "... one of the main causes of the fall of the Roman Empire was that,
2007 Jun 03
0
[LLVMdev] Flixster Spam Apology
This morning a company known as Flixster got a hold of my address book an mass mailed all my contacts in my e-mail account. They did this without my permission, and am the e-mails you have received from them are not from me. I apologize for the spam this has caused. Please ignore the message you received from me this morning. If any of you continue to get messages from Flixster please let me know