From: Misha Brukman Date: Mon, 27 Dec 2004 19:05:16 +0000 (+0000) Subject: Add a note about registering the backend so it's available in LLC and LLI X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=93d416f060108c01f4f8af7ba2202c78577ef02b;p=oota-llvm.git Add a note about registering the backend so it's available in LLC and LLI git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19168 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/WritingAnLLVMBackend.html b/docs/WritingAnLLVMBackend.html index 4066eec1dfa..dcea204e47c 100644 --- a/docs/WritingAnLLVMBackend.html +++ b/docs/WritingAnLLVMBackend.html @@ -91,6 +91,18 @@ implement the following:

href="CodeGenerator.html#targetmachine">TargetMachine, which configures TargetData correctly +
  • Register your new target using the RegisterTarget + template:

    +
    +RegisterTarget<MyTargetMachine> M("short_name", "  Target name");
    +
    +
    Here, MyTargetMachine is the name of your implemented + subclass of TargetMachine, + short_name is the option that will be active following + -march= to select a target in llc and lli, and the last string + is the description of your target to appear in -help + listing.
  • Implement the assembly printer for the architecture. Usually, if you have described the instruction set with the assembly printer generator in mind, that