diff options
| author | Misha Brukman <brukman+llvm@gmail.com> | 2004-12-27 19:05:16 +0000 |
|---|---|---|
| committer | Misha Brukman <brukman+llvm@gmail.com> | 2004-12-27 19:05:16 +0000 |
| commit | c57b9eb58112e576306eb7de1e8eefdc7afa376f (patch) | |
| tree | ffe198affa2c48fe9a884d843728fe0857ea0df3 /llvm/docs | |
| parent | bb3d4a1b6481309f1a84bcf188ad632baba87a88 (diff) | |
| download | bcm5719-llvm-c57b9eb58112e576306eb7de1e8eefdc7afa376f.tar.gz bcm5719-llvm-c57b9eb58112e576306eb7de1e8eefdc7afa376f.zip | |
Add a note about registering the backend so it's available in LLC and LLI
llvm-svn: 19168
Diffstat (limited to 'llvm/docs')
| -rw-r--r-- | llvm/docs/WritingAnLLVMBackend.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/docs/WritingAnLLVMBackend.html b/llvm/docs/WritingAnLLVMBackend.html index 4066eec1dfa..dcea204e47c 100644 --- a/llvm/docs/WritingAnLLVMBackend.html +++ b/llvm/docs/WritingAnLLVMBackend.html @@ -91,6 +91,18 @@ implement the following:</p> 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 |

