add stacksave/stackrestore nodes

llvm-svn: 25270
This commit is contained in:
Chris Lattner 2006-01-13 02:39:42 +00:00
parent 00720d8ff0
commit a5110e854d
2 changed files with 15 additions and 2 deletions

View File

@ -312,6 +312,15 @@ namespace ISD {
CALL,
TAILCALL,
// STACKSAVE - STACKSAVE has one operand, an input chain. It produces a
// value, the same type as the pointer type for the system, and an output
// chain.
STACKSAVE,
// STACKRESTORE has two operands, an input chain and a pointer to restore to
// it returns an output chain.
STACKRESTORE,
// MEMSET/MEMCPY/MEMMOVE - The first operand is the chain, and the rest
// correspond to the operands of the LLVM intrinsic functions. The only
// result is a token chain. The alignment argument is guaranteed to be a

View File

@ -1984,6 +1984,10 @@ const char *SDNode::getOperationName(const SelectionDAG *G) const {
case ISD::DYNAMIC_STACKALLOC: return "dynamic_stackalloc";
case ISD::EXTRACT_ELEMENT: return "extract_element";
case ISD::BUILD_PAIR: return "build_pair";
case ISD::STACKSAVE: return "stacksave";
case ISD::STACKRESTORE: return "stackrestore";
// Block memory operations.
case ISD::MEMSET: return "memset";
case ISD::MEMCPY: return "memcpy";
case ISD::MEMMOVE: return "memmove";