[LLVMdev] Stub LLVM backend wanted

David Given dg at cowlark.com
Sat Mar 1 16:41:19 PST 2014


I'm trying to port LLVM to a new architecture. I'm finding that the
initial bootstrapping stage of getting something which will build, even
if it doesn't work, is complex and rather disheartening --- there's this
huge cliff of difficulty in just getting all the boilerplate laid out
correctly, before getting to the fun stuff. The other backends are of
limited use here because, of course, they're cluttered up with code due
to being real backends.

So: does anyone have a stub backend I can use as a starting point?
Something which only has a few registers, implements no instructions
other than the minimum necessary to actually compile an empty function,
contains no custom optimisation passes, etc. From there I can start
incrementally adding features, testing at each stage.

(In addition, if anyone knows of any docs other than 'Writing an LLVM
backend' (which is very short on detail) or 'Creating an LLVM backend
for the Cpu0 architecture' (which is unfinished), I'd be really
interested...)

-- 
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│ "There does not now, nor will there ever, exist a programming
│ language in which it is the least bit hard to write bad programs." ---
│ Flon's Axiom

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: OpenPGP digital signature
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140302/c225c3de/attachment.sig>


More information about the llvm-dev mailing list