LLVM  15.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::NfaStatePair Struct Reference

Forward define the pair type used by the automata transition info tables. More...

#include "llvm/Support/Automaton.h"

Collaboration diagram for llvm::NfaStatePair:
Collaboration graph
[legend]

Public Member Functions

bool operator< (const NfaStatePair &Other) const
 

Public Attributes

uint64_t FromDfaState
 
uint64_t ToDfaState
 

Detailed Description

Forward define the pair type used by the automata transition info tables.

Experimental results with large tables have shown a significant (multiple orders of magnitude) parsing speedup by using a custom struct here with a trivial constructor rather than std::pair<uint64_t, uint64_t>.

Definition at line 48 of file Automaton.h.

Member Function Documentation

◆ operator<()

bool llvm::NfaStatePair::operator< ( const NfaStatePair Other) const
inline

Definition at line 51 of file Automaton.h.

References FromDfaState, Other, and ToDfaState.

Member Data Documentation

◆ FromDfaState

uint64_t llvm::NfaStatePair::FromDfaState

Definition at line 49 of file Automaton.h.

Referenced by operator<().

◆ ToDfaState

uint64_t llvm::NfaStatePair::ToDfaState

Definition at line 49 of file Automaton.h.

Referenced by operator<().


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