[llvm-commits] CVS: llvm/lib/Target/SparcV9/SparcV9InstrInfo.h
Brian Gaeke
gaeke at cs.uiuc.edu
Sun Apr 25 01:32:07 PDT 2004
Changes in directory llvm/lib/Target/SparcV9:
SparcV9InstrInfo.h updated: 1.4 -> 1.5
---
Log message:
Regularize file header comment and include guard.
Include SparcV9RegisterInfo.h.
Add a getRegisterInfo() accessor and SparcV9RegisterInfo instance, just like
on the X86 target.
---
Diffs of the changes: (+12 -3)
Index: llvm/lib/Target/SparcV9/SparcV9InstrInfo.h
diff -u llvm/lib/Target/SparcV9/SparcV9InstrInfo.h:1.4 llvm/lib/Target/SparcV9/SparcV9InstrInfo.h:1.5
--- llvm/lib/Target/SparcV9/SparcV9InstrInfo.h:1.4 Sat Feb 28 23:58:16 2004
+++ llvm/lib/Target/SparcV9/SparcV9InstrInfo.h Sun Apr 25 01:32:16 2004
@@ -1,4 +1,4 @@
-//===-- SparcV9InstrInfo.h - Define TargetInstrInfo for SparcV9 -----*- C++ -*-===//
+//===-- SparcV9InstrInfo.h - Define TargetInstrInfo for SparcV9 -*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
@@ -14,17 +14,26 @@
//
//===----------------------------------------------------------------------===//
-#ifndef SPARC_INSTRINFO_H
-#define SPARC_INSTRINFO_H
+#ifndef SPARCV9INSTRINFO_H
+#define SPARCV9INSTRINFO_H
#include "llvm/Target/TargetInstrInfo.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "SparcV9Internals.h"
+#include "SparcV9RegisterInfo.h"
namespace llvm {
struct SparcV9InstrInfo : public TargetInstrInfo {
+ const SparcV9RegisterInfo RI;
+public:
SparcV9InstrInfo();
+
+ /// getRegisterInfo - TargetInstrInfo is a superset of MRegister info. As
+ /// such, whenever a client has an instance of instruction info, it should
+ /// always be able to get register info as well (through this method).
+ ///
+ virtual const MRegisterInfo &getRegisterInfo() const { return RI; }
// All immediate constants are in position 1 except the
// store instructions and SETxx.
More information about the llvm-commits
mailing list