Puma Reference Manual Puma: Puma::CT_GnuAsmDef Class Reference



Puma::CT_GnuAsmDef Class Reference

Tree node representing an extended inline assembly definition. More...

#include <Puma/GnuCTree.h>

Inheritance diagram for Puma::CT_GnuAsmDef:
Inheritance graph

List of all members.

Public Member Functions

 CT_GnuAsmDef (CTree *a, CTree *cv, CTree *o, CTree *s, CTree *op0, CTree *op1, CTree *cl, CTree *c, CTree *sc)
 Constructor.
const char * NodeName () const
 Get the name of the node.
virtual int Sons () const
 Get the number of sons.
virtual CTreeSon (int n) const
 Get the n-th son.
virtual void ReplaceSon (CTree *old_son, CTree *new_son)
 Replace a son.

Static Public Member Functions

static const char * NodeId ()
 Get the identifier for this node type.

Detailed Description

Tree node representing an extended inline assembly definition.

Example:

 asm("fsinx %1,%0" : "=f" (result) : "f" (angle)); 

Constructor & Destructor Documentation

Puma::CT_GnuAsmDef::CT_GnuAsmDef ( CTree a,
CTree cv,
CTree o,
CTree s,
CTree op0,
CTree op1,
CTree cl,
CTree c,
CTree sc 
) [inline]

Constructor.

Parameters:
aThe keyword 'asm'.
cvOptional const/volatile qualifier sequence.
oLeft parenthesis before the assembly.
sThe assembly instructions.
op0First operand.
op1Second operand.
clClobbers.
cRight parenthesis behind the assembly.
scThe trailing semi-colon.

Member Function Documentation

static const char* Puma::CT_GnuAsmDef::NodeId ( ) [static]

Get the identifier for this node type.

Can be compared with NodeName().

Reimplemented from Puma::CT_AsmDef.

const char* Puma::CT_GnuAsmDef::NodeName ( ) const [inline, virtual]

Get the name of the node.

Can be compared with NodeId().

Reimplemented from Puma::CT_AsmDef.

virtual void Puma::CT_GnuAsmDef::ReplaceSon ( CTree old_son,
CTree new_son 
) [inline, virtual]

Replace a son.

Parameters:
old_sonThe son to replace.
new_sonThe new son.

Reimplemented from Puma::CT_AsmDef.

virtual CTree* Puma::CT_GnuAsmDef::Son ( int  n) const [inline, virtual]

Get the n-th son.

Parameters:
nThe index of the son.
Returns:
The n-th son or NULL.

Reimplemented from Puma::CT_AsmDef.

virtual int Puma::CT_GnuAsmDef::Sons ( ) const [inline, virtual]

Get the number of sons.

Reimplemented from Puma::CT_AsmDef.