From c57b9eb58112e576306eb7de1e8eefdc7afa376f Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Mon, 27 Dec 2004 19:05:16 +0000 Subject: Add a note about registering the backend so it's available in LLC and LLI llvm-svn: 19168 --- llvm/docs/WritingAnLLVMBackend.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'llvm/docs') 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:

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 -- cgit v1.2.3