diff options
author | Dan Gohman <gohman@apple.com> | 2008-06-25 16:07:49 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-06-25 16:07:49 +0000 |
commit | fd4418fc9b4725c44210c169c4d6500be468ca70 (patch) | |
tree | 09b2f9af6cb1c7dcc96d57e36b44724a5e3e87e5 /include/llvm/CodeGen/SelectionDAGNodes.h | |
parent | 21b9d283eae05e1e50d011c9038d77eb7bf02f49 (diff) |
Remove the OrigVT member from AtomicSDNode, as it is redundant with
the base SDNode's VTList.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52722 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SelectionDAGNodes.h')
-rw-r--r-- | include/llvm/CodeGen/SelectionDAGNodes.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index 67daaafd32..2e27455813 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -1491,7 +1491,6 @@ public: class AtomicSDNode : public MemSDNode { virtual void ANCHOR(); // Out-of-line virtual method to give class a home. SDUse Ops[4]; - MVT OrigVT; public: // Opc: opcode for atomic @@ -1500,13 +1499,12 @@ class AtomicSDNode : public MemSDNode { // Ptr: address to update as a SDOperand // Cmp: compare value // Swp: swap value - // VT: resulting value type // SrcVal: address to update as a Value (used for MemOperand) // Align: alignment of memory AtomicSDNode(unsigned Opc, SDVTList VTL, SDOperand Chain, SDOperand Ptr, - SDOperand Cmp, SDOperand Swp, MVT VT, const Value* SrcVal, + SDOperand Cmp, SDOperand Swp, const Value* SrcVal, unsigned Align=0) - : MemSDNode(Opc, VTL, SrcVal, Align), OrigVT(VT) { + : MemSDNode(Opc, VTL, SrcVal, Align) { Ops[0] = Chain; Ops[1] = Ptr; Ops[2] = Swp; @@ -1514,15 +1512,14 @@ class AtomicSDNode : public MemSDNode { InitOperands(Ops, 4); } AtomicSDNode(unsigned Opc, SDVTList VTL, SDOperand Chain, SDOperand Ptr, - SDOperand Val, MVT VT, const Value* SrcVal, unsigned Align=0) - : MemSDNode(Opc, VTL, SrcVal, Align), OrigVT(VT) { + SDOperand Val, const Value* SrcVal, unsigned Align=0) + : MemSDNode(Opc, VTL, SrcVal, Align) { Ops[0] = Chain; Ops[1] = Ptr; Ops[2] = Val; InitOperands(Ops, 3); } - MVT getVT() const { return OrigVT; } const SDOperand &getChain() const { return getOperand(0); } const SDOperand &getBasePtr() const { return getOperand(1); } const SDOperand &getVal() const { return getOperand(2); } |