[llvm-commits] CVS: llvm/include/llvm/CodeGen/SelectionDAG.h SelectionDAGNodes.h
Chris Lattner
lattner at cs.uiuc.edu
Sat Jul 9 17:28:36 PDT 2005
Changes in directory llvm/include/llvm/CodeGen:
SelectionDAG.h updated: 1.28 -> 1.29
SelectionDAGNodes.h updated: 1.42 -> 1.43
---
Log message:
Move TRUNCSTORE to using a VTSDNode operand instead of being a MVTSDNode.
Also update some comments that Andrew forgot to update when he changed
loads/stores.
---
Diffs of the changes: (+9 -15)
SelectionDAG.h | 6 +++---
SelectionDAGNodes.h | 18 ++++++------------
2 files changed, 9 insertions(+), 15 deletions(-)
Index: llvm/include/llvm/CodeGen/SelectionDAG.h
diff -u llvm/include/llvm/CodeGen/SelectionDAG.h:1.28 llvm/include/llvm/CodeGen/SelectionDAG.h:1.29
--- llvm/include/llvm/CodeGen/SelectionDAG.h:1.28 Sat Jul 9 19:06:54 2005
+++ llvm/include/llvm/CodeGen/SelectionDAG.h Sat Jul 9 19:28:25 2005
@@ -171,6 +171,9 @@
SDOperand getNode(unsigned Opcode, MVT::ValueType VT,
SDOperand N1, SDOperand N2, SDOperand N3, SDOperand N4);
SDOperand getNode(unsigned Opcode, MVT::ValueType VT,
+ SDOperand N1, SDOperand N2, SDOperand N3, SDOperand N4,
+ SDOperand N5);
+ SDOperand getNode(unsigned Opcode, MVT::ValueType VT,
std::vector<SDOperand> &Children);
SDOperand getNode(unsigned Opcode, std::vector<MVT::ValueType> &ResultTys,
std::vector<SDOperand> &Ops);
@@ -183,9 +186,6 @@
SDOperand N, MVT::ValueType EVT);
SDOperand getNode(unsigned Opcode, MVT::ValueType VT, SDOperand N1,
SDOperand N2, SDOperand N3, MVT::ValueType EVT);
- SDOperand getNode(unsigned Opcode, MVT::ValueType VT, SDOperand N1,
- SDOperand N2, SDOperand N3, SDOperand N4,
- MVT::ValueType EVT);
/// getLoad - Loads are not normal binary operators: their result type is not
Index: llvm/include/llvm/CodeGen/SelectionDAGNodes.h
diff -u llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.42 llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.43
--- llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.42 Sat Jul 9 19:06:54 2005
+++ llvm/include/llvm/CodeGen/SelectionDAGNodes.h Sat Jul 9 19:28:25 2005
@@ -176,7 +176,8 @@
FNEG, FABS, FSQRT, FSIN, FCOS,
// Other operators. LOAD and STORE have token chains as their first
- // operand, then the same operands as an LLVM load/store instruction.
+ // operand, then the same operands as an LLVM load/store instruction, then a
+ // SRCVALUE node that provides alias analysis information.
LOAD, STORE,
// EXTLOAD, SEXTLOAD, ZEXTLOAD - These three operators are instances of the
@@ -197,9 +198,9 @@
// TRUNCSTORE - This operators truncates (for integer) or rounds (for FP) a
// value and stores it to memory in one operation. This can be used for
- // either integer or floating point operands, and the stored type
- // represented as the 'extra' value type in the MVTSDNode representing the
- // operator. This node has the same three operands as a standard store.
+ // either integer or floating point operands. The first four operands of
+ // this are the same as a standard store. The fifth is the ValueType to
+ // store it as (which will be smaller than the source value).
TRUNCSTORE,
// DYNAMIC_STACKALLOC - Allocate some number of bytes on the stack aligned
@@ -877,12 +878,6 @@
: SDNode(Opc, Op0, Op1, Op2), ExtraValueType(EVT) {
setValueTypes(VT1, VT2);
}
-
- MVTSDNode(unsigned Opc, MVT::ValueType VT,
- SDOperand Op0, SDOperand Op1, SDOperand Op2, SDOperand Op3, MVT::ValueType EVT)
- : SDNode(Opc, Op0, Op1, Op2, Op3), ExtraValueType(EVT) {
- setValueTypes(VT);
- }
public:
MVT::ValueType getExtraValueType() const { return ExtraValueType; }
@@ -892,8 +887,7 @@
return
N->getOpcode() == ISD::EXTLOAD ||
N->getOpcode() == ISD::SEXTLOAD ||
- N->getOpcode() == ISD::ZEXTLOAD ||
- N->getOpcode() == ISD::TRUNCSTORE;
+ N->getOpcode() == ISD::ZEXTLOAD;
}
};
More information about the llvm-commits
mailing list