xorp

NaryInstr Class Reference

An N-ary operation. More...

#include <instruction.hh>

Inheritance diagram for NaryInstr:
NONCOPYABLE Instruction

List of all members.

Public Member Functions

 NaryInstr (Oper *op)
 Caller must not delete / modify operation.
 INSTR_VISITABLE ()
const Operop () const

Private Attributes

Oper_op

Detailed Description

An N-ary operation.

Arguments are the N top-most elements of the stack. Top-most argument is first. Thus elements have to be pushed on stack in reverse order.

Operation will pop N elements from the stack.


Constructor & Destructor Documentation

NaryInstr::NaryInstr ( Oper op) [inline]

Caller must not delete / modify operation.

Parameters:
opoperation of this instruction

Member Function Documentation

const Oper& NaryInstr::op ( ) const [inline]
Returns:
operation associated with this instruction.

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations