1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Add a new node type, add comments.

llvm-svn: 19525
This commit is contained in:
Chris Lattner 2005-01-13 17:58:35 +00:00
parent d5bf5709c4
commit 000509e7b0
2 changed files with 13 additions and 4 deletions

View File

@ -21,6 +21,7 @@
namespace llvm {
class SelectionDAG;
class SelectionDAGLowering;
class SDOperand;
class SSARegMap;
class MachineBasicBlock;
class MachineFunction;
@ -49,8 +50,8 @@ public:
virtual void InstructionSelectBasicBlock(SelectionDAG &SD) = 0;
void CopyValueToVirtualRegister(SelectionDAGLowering &SDL,
Value *V, unsigned Reg);
SDOperand CopyValueToVirtualRegister(SelectionDAGLowering &SDL,
Value *V, unsigned Reg);
void SelectBasicBlock(BasicBlock *BB, MachineFunction &MF,
FunctionLoweringInfo &FuncInfo);

View File

@ -44,8 +44,16 @@ namespace ISD {
/// SelectionDAG.
///
enum NodeType {
// Leaf nodes
EntryToken, Constant, ConstantFP, GlobalAddress, FrameIndex, ConstantPool,
// EntryToken - This is the marker used to indicate the start of the region.
EntryToken,
// Token factor - This node is takes multiple tokens as input and produces a
// single token result. This is used to represent the fact that the operand
// operators are independent of each other.
TokenFactor,
// Various leaf nodes.
Constant, ConstantFP, GlobalAddress, FrameIndex, ConstantPool,
BasicBlock, ExternalSymbol,
// CopyToReg - This node has chain and child nodes, and an associated