[llvm-commits] CVS: llvm/docs/WritingAnLLVMBackend.html
Misha Brukman
brukman at cs.uiuc.edu
Mon Dec 27 11:05:27 PST 2004
Changes in directory llvm/docs:
WritingAnLLVMBackend.html updated: 1.3 -> 1.4
---
Log message:
Add a note about registering the backend so it's available in LLC and LLI
---
Diffs of the changes: (+13 -1)
Index: llvm/docs/WritingAnLLVMBackend.html
diff -u llvm/docs/WritingAnLLVMBackend.html:1.3 llvm/docs/WritingAnLLVMBackend.html:1.4
--- llvm/docs/WritingAnLLVMBackend.html:1.3 Wed Dec 1 13:12:27 2004
+++ llvm/docs/WritingAnLLVMBackend.html Mon Dec 27 13:05:16 2004
@@ -91,6 +91,18 @@
href="CodeGenerator.html#targetmachine">TargetMachine</a></tt>, which
configures <tt><a href="CodeGenerator.html#targetdata">TargetData</a></tt>
correctly</li>
+ <li>Register your new target using the <tt>RegisterTarget</tt>
+ template:<br><br>
+<div class="doc_code"><pre>
+RegisterTarget<<em>MyTargetMachine</em>> M("short_name", " Target name");
+</pre></div>
+ <br>Here, <em>MyTargetMachine</em> is the name of your implemented
+ subclass of <tt><a
+ href="CodeGenerator.html#targetmachine">TargetMachine</a></tt>,
+ <em>short_name</em> is the option that will be active following
+ <tt>-march=</tt> to select a target in llc and lli, and the last string
+ is the description of your target to appear in <tt>-help</tt>
+ listing.</li>
</ul></li>
<li>Implement the assembly printer for the architecture. Usually, if you have
described the instruction set with the assembly printer generator in mind, that
@@ -237,7 +249,7 @@
<a href="http://misha.brukman.net">Misha Brukman</a><br>
<a href="http://llvm.cs.uiuc.edu">The LLVM Compiler Infrastructure</a>
<br>
- Last modified: $Date: 2004/12/01 19:12:27 $
+ Last modified: $Date: 2004/12/27 19:05:16 $
</address>
</body>
More information about the llvm-commits
mailing list