From da47e6e0d003c873da960361549e57ee4617c301 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Sat, 15 Mar 2008 00:03:38 +0000 Subject: Replace all target specific implicit def instructions with a target independent one: TargetInstrInfo::IMPLICIT_DEF. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48380 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/AsmPrinter.h | 8 ++++++++ include/llvm/Target/TargetInstrInfo.h | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index d134685..ddd9162 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -66,6 +66,10 @@ namespace llvm { /// const TargetAsmInfo *TAI; + /// Target Register Information. + /// + const TargetRegisterInfo *TRI; + /// Name-mangler for global names. /// Mangler *Mang; @@ -318,6 +322,10 @@ namespace llvm { /// printInlineAsm - This method formats and prints the specified machine /// instruction that is an inline asm. void printInlineAsm(const MachineInstr *MI) const; + + /// printImplicitDef - This method prints the specified machine instruction + /// that is an implicit def. + virtual void printImplicitDef(const MachineInstr *MI) const; /// printBasicBlockLabel - This method prints the label for the specified /// MachineBasicBlock diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index d19ca12..d6acc63 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -49,7 +49,8 @@ public: LABEL = 2, DECLARE = 3, EXTRACT_SUBREG = 4, - INSERT_SUBREG = 5 + INSERT_SUBREG = 5, + IMPLICIT_DEF = 6 }; // Target independent implict values for use with subreg insert. All targets -- cgit v1.1