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
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
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
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
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:
>
>
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::
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
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