aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-03-15 00:03:38 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-03-15 00:03:38 +0000
commitda47e6e0d003c873da960361549e57ee4617c301 (patch)
tree7aeba4e0c14a734364886783388f965e5854d4d9 /include
parentaf59b105bb3f9a31f1812e470eb9db28a8a1b491 (diff)
downloadexternal_llvm-da47e6e0d003c873da960361549e57ee4617c301.zip
external_llvm-da47e6e0d003c873da960361549e57ee4617c301.tar.gz
external_llvm-da47e6e0d003c873da960361549e57ee4617c301.tar.bz2
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h8
-rw-r--r--include/llvm/Target/TargetInstrInfo.h3
2 files changed, 10 insertions, 1 deletions
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