X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=docs%2FWritingAnLLVMBackend.html;h=909432ef453d74f1276a930a963109a4fac90dd6;hb=52bb2db70998c42c99d22069ac66eb7bbb492f3a;hp=ea5cd9c3da59699e39cc1c41928fa99e8917a488;hpb=c3b05403b753996f6b1db4914df586e4b6b54d3a;p=oota-llvm.git diff --git a/docs/WritingAnLLVMBackend.html b/docs/WritingAnLLVMBackend.html index ea5cd9c3da5..909432ef453 100644 --- a/docs/WritingAnLLVMBackend.html +++ b/docs/WritingAnLLVMBackend.html @@ -61,8 +61,9 @@ convert the LLVM representation to machine assembly code or other languages.

-

In general, you want to follow the format of X86 or PowerPC (in -lib/Target).

+

In general, you want to follow the format of SPARC, X86 or PowerPC (in +lib/Target). SPARC is the simplest backend, and is RISC, so if +you're working on a RISC target, it is a good one to start with.

To create a static compiler (one that emits text assembly), you need to implement the following:

@@ -73,7 +74,7 @@ implement the following:

  • Create a TableGen description of the register set and register classes
  • Implement a subclass of MRegisterInfo
  • + href="CodeGenerator.html#targetregisterinfo">TargetRegisterInfo
  • Describe the instruction set.