From: Chris Lattner
Date: Sat, 18 Sep 2004 06:28:07 +0000 (+0000)
Subject: Make this HTML 4.01 strict
X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=7a2fd89ccad1b0d60171f5cafe04f64c711cce84;p=oota-llvm.git
Make this HTML 4.01 strict
Update to reflect changes to the 'Register' tblgen class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16392 91177308-0d34-0410-b5e6-96231b3b80d8
---
diff --git a/docs/WritingAnLLVMBackend.html b/docs/WritingAnLLVMBackend.html
index 1fb88a36332..1a7bc7c428b 100644
--- a/docs/WritingAnLLVMBackend.html
+++ b/docs/WritingAnLLVMBackend.html
@@ -16,7 +16,7 @@
Introduction
Writing a backend
- - Machine backends
+ - Machine backends
- Outline
- Implementation details
@@ -148,15 +148,15 @@ architected registers.
// class Register is defined in Target.td
-class TargetReg : Register {
+class TargetReg<string name> : Register<name> {
let Namespace = "Target";
}
-class IntReg<bits<5> num> : TargetReg {
+class IntReg<bits<5> num, string name> : TargetReg<name> {
field bits<5> Num = num;
}
-def R0 : IntReg<0>;
+def R0 : IntReg<0, "%R0">;
...
// class RegisterClass is defined in Target.td