| Puma Reference Manual | Puma: Puma::CT_GnuAsmDef Class Reference |
#include <Puma/GnuCTree.h>

Example:
asm("fsinx %1,%0" : "=f" (result) : "f" (angle));
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 CTree * | Son (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. | |
| 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.
| a | The keyword 'asm'. | |
| cv | Optional const/volatile qualifier sequence. | |
| o | Left parenthesis before the assembly. | |
| s | The assembly instructions. | |
| op0 | First operand. | |
| op1 | Second operand. | |
| cl | Clobbers. | |
| c | Right parenthesis behind the assembly. | |
| sc | The trailing semi-colon. |
| 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] |
| virtual int Puma::CT_GnuAsmDef::Sons | ( | ) | const [inline, virtual] |
| virtual CTree* Puma::CT_GnuAsmDef::Son | ( | int | n | ) | const [inline, virtual] |
Get the n-th son.
| n | The index of the son. |
Reimplemented from Puma::CT_AsmDef.
Replace a son.
| old_son | The son to replace. | |
| new_son | The new son. |
Reimplemented from Puma::CT_AsmDef.