MnemonicInfo Struct Reference

#include <enc_prvt.h>

List of all members.


Detailed Description

See also:
same structure as EncoderBase.MnemonicDesc, but carries MnemonicInfo.OpcodeInfo[] instead of OpcodeDesc[].

Only used during prebuilding the encoding tables, thus it's hidden under the appropriate define.


Public Attributes

Mnemonic mn
 The mnemonic itself.
unsigned flags
 Various characteristics of mnemonic.
EncoderBase::OpndRolesDesc roles
 Number of args/des/uses/roles for the operation.
const char * name
 Print name of the mnemonic.
OpcodeInfo opcodes [25]
 Array of opcodes.


Member Data Documentation

Mnemonic MnemonicInfo.mn

The mnemonic itself.

unsigned MnemonicInfo.flags

Various characteristics of mnemonic.

See also:
Mnemonic flags

EncoderBase::OpndRolesDesc MnemonicInfo.roles

Number of args/des/uses/roles for the operation.

For the operations which may use different number of operands (i.e. IMUL/SHL) use the most common value, or leave '0' if you are sure this info is not required.

const char* MnemonicInfo.name

Print name of the mnemonic.

OpcodeInfo MnemonicInfo.opcodes[25]

Array of opcodes.

The terminating opcode description always have OpcodeByteKind_LAST at the opcodes[i].opcode[0]. The size of '25' has nothing behind it, just counted the max number of opcodes currently used (MOV instruction).


The documentation for this struct was generated from the following file:

Genereated on Tue Mar 11 19:25:43 2008 by Doxygen.

(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.