summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2003-05-31 07:43:41 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2003-05-31 07:43:41 +0000
commit2263df029af68d3498099cc95276bbe2efab2204 (patch)
tree3da29f6b6f3c150fe59b86a1a45c2177355ddb1d
parent9f495b54fa94dba4e0be59ba9736c7cf18d996d9 (diff)
downloadllvm-2263df029af68d3498099cc95276bbe2efab2204.tar.gz
llvm-2263df029af68d3498099cc95276bbe2efab2204.tar.bz2
llvm-2263df029af68d3498099cc95276bbe2efab2204.tar.xz
Renamed a variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6472 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/MachineInstrAnnot.h18
-rw-r--r--lib/Target/SparcV9/MachineInstrAnnot.h18
2 files changed, 20 insertions, 16 deletions
diff --git a/include/llvm/CodeGen/MachineInstrAnnot.h b/include/llvm/CodeGen/MachineInstrAnnot.h
index d206c6be87..e1902e77b3 100644
--- a/include/llvm/CodeGen/MachineInstrAnnot.h
+++ b/include/llvm/CodeGen/MachineInstrAnnot.h
@@ -8,6 +8,7 @@
#define MACHINE_INSTR_ANNOT_h
#include "llvm/CodeGen/MachineInstr.h"
+#include "llvm/Target/TargetRegInfo.h"
class Value;
class TmpInstruction;
@@ -19,23 +20,24 @@ class CallArgInfo {
static const unsigned char FPArgReg = 0x2;
static const unsigned char StackSlot = 0x4;
- const Value* argVal; // this argument
- const Value* argValCopy; // second copy of arg. when multiple
- // copies must be passed in registers
- unsigned char passingMethod; // flags recording passing methods
+ const Value* argVal; // this argument
+ int argCopyReg; // register used for second copy of arg. when
+ // multiple copies must be passed in registers
+ unsigned char passingMethod; // flags recording passing methods
public:
// Constructors
CallArgInfo(const Value* _argVal)
- : argVal(_argVal), argValCopy(NULL), passingMethod(0x0) {}
+ : argVal(_argVal), argCopyReg(TargetRegInfo::getInvalidRegNum()),
+ passingMethod(0x0) {}
CallArgInfo(const CallArgInfo& obj)
- : argVal(obj.argVal), argValCopy(obj.argValCopy),
+ : argVal(obj.argVal), argCopyReg(obj.argCopyReg),
passingMethod(obj.passingMethod) {}
// Accessor methods
const Value* getArgVal() { return argVal; }
- const Value* getArgCopy() { return argValCopy; }
+ int getArgCopy() { return argCopyReg; }
bool usesIntArgReg() { return (bool) (passingMethod & IntArgReg);}
bool usesFPArgReg() { return (bool) (passingMethod & FPArgReg); }
bool usesStackSlot() { return (bool) (passingMethod & StackSlot);}
@@ -45,7 +47,7 @@ public:
void setUseIntArgReg() { passingMethod |= IntArgReg; }
void setUseFPArgReg() { passingMethod |= FPArgReg; }
void setUseStackSlot() { passingMethod |= StackSlot; }
- void setArgCopy(const Value* tmp) { argValCopy = tmp; }
+ void setArgCopy(int copyReg) { argCopyReg = copyReg; }
};
diff --git a/lib/Target/SparcV9/MachineInstrAnnot.h b/lib/Target/SparcV9/MachineInstrAnnot.h
index d206c6be87..e1902e77b3 100644
--- a/lib/Target/SparcV9/MachineInstrAnnot.h
+++ b/lib/Target/SparcV9/MachineInstrAnnot.h
@@ -8,6 +8,7 @@
#define MACHINE_INSTR_ANNOT_h
#include "llvm/CodeGen/MachineInstr.h"
+#include "llvm/Target/TargetRegInfo.h"
class Value;
class TmpInstruction;
@@ -19,23 +20,24 @@ class CallArgInfo {
static const unsigned char FPArgReg = 0x2;
static const unsigned char StackSlot = 0x4;
- const Value* argVal; // this argument
- const Value* argValCopy; // second copy of arg. when multiple
- // copies must be passed in registers
- unsigned char passingMethod; // flags recording passing methods
+ const Value* argVal; // this argument
+ int argCopyReg; // register used for second copy of arg. when
+ // multiple copies must be passed in registers
+ unsigned char passingMethod; // flags recording passing methods
public:
// Constructors
CallArgInfo(const Value* _argVal)
- : argVal(_argVal), argValCopy(NULL), passingMethod(0x0) {}
+ : argVal(_argVal), argCopyReg(TargetRegInfo::getInvalidRegNum()),
+ passingMethod(0x0) {}
CallArgInfo(const CallArgInfo& obj)
- : argVal(obj.argVal), argValCopy(obj.argValCopy),
+ : argVal(obj.argVal), argCopyReg(obj.argCopyReg),
passingMethod(obj.passingMethod) {}
// Accessor methods
const Value* getArgVal() { return argVal; }
- const Value* getArgCopy() { return argValCopy; }
+ int getArgCopy() { return argCopyReg; }
bool usesIntArgReg() { return (bool) (passingMethod & IntArgReg);}
bool usesFPArgReg() { return (bool) (passingMethod & FPArgReg); }
bool usesStackSlot() { return (bool) (passingMethod & StackSlot);}
@@ -45,7 +47,7 @@ public:
void setUseIntArgReg() { passingMethod |= IntArgReg; }
void setUseFPArgReg() { passingMethod |= FPArgReg; }
void setUseStackSlot() { passingMethod |= StackSlot; }
- void setArgCopy(const Value* tmp) { argValCopy = tmp; }
+ void setArgCopy(int copyReg) { argCopyReg = copyReg; }
};