AddressingModeMatcher
class AddressingModeMatcher
Determines which addressing modes match a given line in the source code.
DEFINITION
class AddressingModeMatcher;
method add_notation
DEFINITION
| void add_notation | ( | Symbol addressing_mode, | |
| size_t notation_index, | |||
| const AddressingMode::Notation & notation, | |||
| const std::unordered_map< Symbol, std::unique_ptr< AddressingMode::Argument > > & arguments | ); |
| PARAMETER | DESCRIPTION |
|---|---|
addressing_mode |
|
notation_index |
|
notation |
|
arguments |
method matchconst
DEFINITION
| std::unordered_set< AddressingModeMatcherResult > match | ( | const std::vector< std::shared_ptr< Node > > & nodes | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
nodes |
| RETURNS | DESCRIPTION |
|---|---|
std::unordered_set< AddressingModeMatcherResult > |
class AddressingModeMatcherElement
DEFINITION
class AddressingModeMatcherElement;
enum Type
DEFINITION
enum Type;
| VALUE | DESCRIPTION |
|---|---|
PUNCTUATION |
|
KEYWORD |
|
INTEGER |
constructor AddressingModeMatcherElement
DEFINITION
| AddressingModeMatcherElement | ( | ); |
constructor AddressingModeMatcherElement
DEFINITION
| AddressingModeMatcherElement | ( | Node * node | ); |
| PARAMETER | DESCRIPTION |
|---|---|
node |
constructor AddressingModeMatcherElement
DEFINITION
| AddressingModeMatcherElement | ( | Type type, | |
| Symbol symbol | ); |
| PARAMETER | DESCRIPTION |
|---|---|
type |
|
symbol |
method elements_forstatic
DEFINITION
| static std::vector< AddressingModeMatcherElement > elements_for | ( | const AddressingMode::Notation::Element & element, | |
| const std::unordered_map< Symbol, std::unique_ptr< AddressingMode::Argument > > & arguments | ); |
| PARAMETER | DESCRIPTION |
|---|---|
element |
|
arguments |
| RETURNS | DESCRIPTION |
|---|---|
std::vector< AddressingModeMatcherElement > |
method operator==const
DEFINITION
| bool operator== | ( | const AddressingModeMatcherElement & other | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
other |
| RETURNS | DESCRIPTION |
|---|---|
bool |
member symbol
DEFINITION
Symbol symbol;
member type
DEFINITION
Type type;
class AddressingModeMatcherResult
DEFINITION
class AddressingModeMatcherResult;
constructor AddressingModeMatcherResult
DEFINITION
| AddressingModeMatcherResult | ( | Symbol addressing_mode, | |
| size_t notation_index | ); |
| PARAMETER | DESCRIPTION |
|---|---|
addressing_mode |
|
notation_index |
method operator==const
DEFINITION
| bool operator== | ( | const AddressingModeMatcherResult & other | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
other |
| RETURNS | DESCRIPTION |
|---|---|
bool |
member addressing_mode
DEFINITION
Symbol addressing_mode;
member notation_index
DEFINITION
size_t notation_index;
class hash< AddressingModeMatcherElement >
DEFINITION
class hash< AddressingModeMatcherElement >;
method operator()const
DEFINITION
| std::size_t operator() | ( | AddressingModeMatcherElement const & element | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
element |
| RETURNS | DESCRIPTION |
|---|---|
std::size_t |
class hash< AddressingModeMatcherResult >
DEFINITION
class hash< AddressingModeMatcherResult >;
method operator()const
DEFINITION
| std::size_t operator() | ( | AddressingModeMatcherResult const & result | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
result |
| RETURNS | DESCRIPTION |
|---|---|
std::size_t |