aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-09-26 21:38:03 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-09-26 21:38:03 +0000
commit8ed3ffee53105275ca03f06ba0195bc6008477fa (patch)
treee9a6a81f001d987d657a68ba257fe942d72d5f99 /include/llvm
parent42d60274eaa70f8cdbed76d04d25d7a8fc1237cb (diff)
downloadexternal_llvm-8ed3ffee53105275ca03f06ba0195bc6008477fa.zip
external_llvm-8ed3ffee53105275ca03f06ba0195bc6008477fa.tar.gz
external_llvm-8ed3ffee53105275ca03f06ba0195bc6008477fa.tar.bz2
Oops. Forgot this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42377 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/CodeGen/ScheduleDAG.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/ScheduleDAG.h b/include/llvm/CodeGen/ScheduleDAG.h
index ad44b24..9bf0834 100644
--- a/include/llvm/CodeGen/ScheduleDAG.h
+++ b/include/llvm/CodeGen/ScheduleDAG.h
@@ -33,6 +33,7 @@ namespace llvm {
class TargetInstrInfo;
class TargetInstrDescriptor;
class TargetMachine;
+ class TargetRegisterClass;
/// HazardRecognizer - This determines whether or not an instruction can be
/// issued this cycle, and whether or not a noop needs to be inserted to handle
@@ -124,6 +125,8 @@ namespace llvm {
unsigned Cycle; // Once scheduled, the cycle of the op.
unsigned Depth; // Node depth;
unsigned Height; // Node height;
+ const TargetRegisterClass *CopyDstRC; // Is a special copy node if not null.
+ const TargetRegisterClass *CopySrcRC;
SUnit(SDNode *node, unsigned nodenum)
: Node(node), InstanceNo(0), NodeNum(nodenum), Latency(0),
@@ -131,7 +134,8 @@ namespace llvm {
NumChainPredsLeft(0), NumChainSuccsLeft(0),
isTwoAddress(false), isCommutable(false), hasImplicitDefs(false),
isPending(false), isAvailable(false), isScheduled(false),
- CycleBound(0), Cycle(0), Depth(0), Height(0) {}
+ CycleBound(0), Cycle(0), Depth(0), Height(0),
+ CopyDstRC(NULL), CopySrcRC(NULL) {}
/// addPred - This adds the specified node as a pred of the current node if
/// not already. This returns true if this is a new pred.
@@ -332,6 +336,8 @@ namespace llvm {
///
void EmitNoop();
+ void EmitCrossRCCopy(SUnit *SU, DenseMap<SUnit*, unsigned> &VRBaseMap);
+
/// EmitCopyFromReg - Generate machine code for an CopyFromReg node or an
/// implicit physical register output.
void EmitCopyFromReg(SDNode *Node, unsigned ResNo, unsigned InstNo,