aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-08-11 21:55:30 +0000
committerChris Lattner <sabre@nondot.org>2006-08-11 21:55:30 +0000
commitc9f8f416800784ca6453222b307bc44ad24739b0 (patch)
tree2eda356acce54ed7bb0c845ae03315b028c30c35 /include
parent1e75b7b01502c0660c419ea6cadb92d86cac354d (diff)
downloadexternal_llvm-c9f8f416800784ca6453222b307bc44ad24739b0.zip
external_llvm-c9f8f416800784ca6453222b307bc44ad24739b0.tar.gz
external_llvm-c9f8f416800784ca6453222b307bc44ad24739b0.tar.bz2
Remove 8 more std::map's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29631 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/SelectionDAG.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h
index d84924e..2cc6ba7 100644
--- a/include/llvm/CodeGen/SelectionDAG.h
+++ b/include/llvm/CodeGen/SelectionDAG.h
@@ -111,22 +111,30 @@ public:
SDOperand getTargetConstant(uint64_t Val, MVT::ValueType VT) {
return getConstant(Val, VT, true);
}
- SDOperand getConstantFP(double Val, MVT::ValueType VT);
- SDOperand getTargetConstantFP(double Val, MVT::ValueType VT);
+ SDOperand getConstantFP(double Val, MVT::ValueType VT, bool isTarget = false);
+ SDOperand getTargetConstantFP(double Val, MVT::ValueType VT) {
+ return getConstantFP(Val, VT, true);
+ }
SDOperand getGlobalAddress(const GlobalValue *GV, MVT::ValueType VT,
int offset = 0, bool isTargetGA = false);
SDOperand getTargetGlobalAddress(const GlobalValue *GV, MVT::ValueType VT,
int offset = 0) {
return getGlobalAddress(GV, VT, offset, true);
}
- SDOperand getFrameIndex(int FI, MVT::ValueType VT);
- SDOperand getTargetFrameIndex(int FI, MVT::ValueType VT);
- SDOperand getJumpTable(int JTI, MVT::ValueType VT);
- SDOperand getTargetJumpTable(int JTI, MVT::ValueType VT);
+ SDOperand getFrameIndex(int FI, MVT::ValueType VT, bool isTarget = false);
+ SDOperand getTargetFrameIndex(int FI, MVT::ValueType VT) {
+ return getFrameIndex(FI, VT, true);
+ }
+ SDOperand getJumpTable(int JTI, MVT::ValueType VT, bool isTarget = false);
+ SDOperand getTargetJumpTable(int JTI, MVT::ValueType VT) {
+ return getJumpTable(JTI, VT, true);
+ }
SDOperand getConstantPool(Constant *C, MVT::ValueType VT,
- unsigned Alignment=0, int offset = 0);
+ unsigned Align = 0, int Offs = 0, bool isT=false);
SDOperand getTargetConstantPool(Constant *C, MVT::ValueType VT,
- unsigned Alignment=0, int offset = 0);
+ unsigned Align = 0, int Offset = 0) {
+ return getConstantPool(C, VT, Align, Offset, true);
+ }
SDOperand getBasicBlock(MachineBasicBlock *MBB);
SDOperand getExternalSymbol(const char *Sym, MVT::ValueType VT);
SDOperand getTargetExternalSymbol(const char *Sym, MVT::ValueType VT);
@@ -452,14 +460,6 @@ private:
// Maps to auto-CSE operations.
std::vector<CondCodeSDNode*> CondCodeNodes;
- std::map<std::pair<uint64_t, MVT::ValueType>, SDNode*> ConstantFPs;
- std::map<std::pair<uint64_t, MVT::ValueType>, SDNode*> TargetConstantFPs;
- std::map<int, SDNode*> FrameIndices, TargetFrameIndices, JumpTableIndices,
- TargetJumpTableIndices;
- std::map<std::pair<Constant *,
- std::pair<int, unsigned> >, SDNode*> ConstantPoolIndices;
- std::map<std::pair<Constant *,
- std::pair<int, unsigned> >, SDNode*> TargetConstantPoolIndices;
std::vector<SDNode*> ValueTypeNodes;
std::map<std::string, SDNode*> ExternalSymbols;
std::map<std::string, SDNode*> TargetExternalSymbols;