Files
clang-p2996/stacker/lib/compiler
Reid Spencer 2341c22ec7 Changes to support making the shift instructions be true BinaryOperators.
This feature is needed in order to support shifts of more than 255 bits
on large integer types.  This changes the syntax for llvm assembly to
make shl, ashr and lshr instructions look like a binary operator:
   shl i32 %X, 1
instead of
   shl i32 %X, i8 1
Additionally, this should help a few passes perform additional optimizations.

llvm-svn: 33776
2007-02-02 02:16:23 +00:00
..
2007-01-17 02:18:44 +00:00
2007-01-17 02:18:44 +00:00
2007-01-17 02:18:44 +00:00
2007-01-17 02:18:44 +00:00
2007-01-17 02:18:44 +00:00
2007-01-17 02:18:44 +00:00
2007-01-17 02:18:44 +00:00
2007-01-17 02:18:44 +00:00
2007-01-17 02:18:44 +00:00
2007-01-17 02:18:44 +00:00
2007-01-17 02:18:44 +00:00

This directory contains a sample language front end for LLVM.

It is a *very* simple/crude implementation of FORTH. It has many
deficiencies but provides enough basics to give you an idea of 
what programming a new language front end for LLVM  looks like.

To keep things simple, Stacker has the following limitations:
1. Only a single, global stack is manipulated.
2. There is no interpretation, everything is compiled.
3. There's no type/bounds checking .. you're on your own.
4. There's no floating point support.
5. Only stdin can be read. Only stdout can be written. No other 
   file I/O is supported.

As such, this isn't a very useful language for anything other than
the most trivial of programs. It is, however, a good learning tool
(for both the author and the student).

Reid Spencer
16 November 2003