[Felix-language] LLVM

2012-11-25 Thread john skaller
I've been looking at LLVM as a possible back end for Felix. Unfortunately it seems too C-centric. The basic problem is that LLVM abstracts parameter passing conventions, and provide only one way to transfer control; subroutine call. The requirement for a decent machine is PDP-11 branch and link i

Re: [Felix-language] LLVM code generator support for flxc

2009-08-28 Thread john skaller
On 28/08/2009, at 7:12 PM, Igor Šwarz wrote: > How did you made the spaghetti stack using LLVM ? He probably didn't. Note the simple call: %foo = call i32 @foo(i32 1, i32 2, i32 3) ; [#uses=1] This means closures aren't supported, and therefore also no fthreads. However supporting the

Re: [Felix-language] LLVM code generator support for flxc

2009-08-28 Thread Igor Šwarz
How did you made the spaghetti stack using LLVM ? On Fri, Aug 28, 2009 at 12:04 AM, Erick Tryzelaar wrote: > I've just committed a [LLVM](http://llvm.org) code generator for `flxc`. > >:::felix >#!build/debug/bin/flxc -I build/debug/lib --import nugram.flxh --import > flx.flxh >>>> ty

[Felix-language] LLVM code generator support for flxc

2009-08-27 Thread Erick Tryzelaar
I've just committed a [LLVM](http://llvm.org) code generator for `flxc`. :::felix #!build/debug/bin/flxc -I build/debug/lib --import nugram.flxh --import flx.flxh >>> type int = "int"; ... BOUND SYM: type int<3> = "int"; >>> fun add : int*int -> int = "%add"; ... BOUND

Re: [Felix-language] LLVM Bindings

2008-03-23 Thread john skaller
On 23/03/2008, at 5:39 PM, Erick Tryzelaar wrote: > On Sat, Mar 22, 2008 at 11:04 PM, john skaller > <[EMAIL PROTECTED]> wrote: >> Well, why is this? Seems like a missing header file or something? >> Isn't getBitWidth a 'const' member of llvm::Type? > > Nope, it's just for llvm::IntegerType: > >

Re: [Felix-language] LLVM Bindings

2008-03-22 Thread Erick Tryzelaar
On Sat, Mar 22, 2008 at 11:04 PM, john skaller <[EMAIL PROTECTED]> wrote: > Well, why is this? Seems like a missing header file or something? > Isn't getBitWidth a 'const' member of llvm::Type? Nope, it's just for llvm::IntegerType: http://llvm.org/doxygen/classllvm_1_1IntegerType.html llvm::

Re: [Felix-language] LLVM Bindings

2008-03-22 Thread john skaller
On 23/03/2008, at 3:00 PM, Erick Tryzelaar wrote: > > {{{ > foo.cpp: In function 'void > flxusr::foo::_init_(flxusr::foo::thread_frame_t*)': > foo.cpp:82: error: 'const class llvm::Type' has no member named > 'getBitWidth' > compilation terminated due to -Wfatal-errors. > }}} Well, why is th

[Felix-language] LLVM Bindings

2008-03-22 Thread Erick Tryzelaar
I just posted about my toying around with llvm bindings for felix on felix-lang.org: http://felix-lang.org/blog/2008/mar/22/llvm-bindings/ But since many of you aren't actually subscribed to the google groups list, I've cc'ed it here: For a long time I've wanted to write a [llvm](http://www.llv