LLVM 20.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"

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 46 of file Automaton.h.

Member Function Documentation

◆ operator<()

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

Definition at line 49 of file Automaton.h.

References FromDfaState, llvm::Other, and ToDfaState.

Member Data Documentation

◆ FromDfaState

uint64_t llvm::NfaStatePair::FromDfaState

Definition at line 47 of file Automaton.h.

Referenced by operator<().

◆ ToDfaState

uint64_t llvm::NfaStatePair::ToDfaState

Definition at line 47 of file Automaton.h.

Referenced by operator<().


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