CIRCT  19.0.0git
Macros | Functions
FIRLexer.cpp File Reference
#include "FIRLexer.h"
#include "mlir/IR/Diagnostics.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/raw_ostream.h"
#include "FIRTokenKinds.def"
Include dependency graph for FIRLexer.cpp:

Go to the source code of this file.

Macros

#define isdigit(x)   DO_NOT_USE_SLOW_CTYPE_FUNCTIONS
 
#define isalpha(x)   DO_NOT_USE_SLOW_CTYPE_FUNCTIONS
 
#define TOK_KEYWORD(SPELLING)
 
#define TOK_LPKEYWORD(SPELLING)   .Case(#SPELLING, FIRToken::lp_##SPELLING)
 
#define TOK_KEYWORD(SPELLING)   .Case(#SPELLING, FIRToken::kw_##SPELLING)
 

Functions

static StringAttr getMainBufferNameIdentifier (const llvm::SourceMgr &sourceMgr, MLIRContext *context)
 

Macro Definition Documentation

◆ isalpha

#define isalpha (   x)    DO_NOT_USE_SLOW_CTYPE_FUNCTIONS

Definition at line 27 of file FIRLexer.cpp.

◆ isdigit

#define isdigit (   x)    DO_NOT_USE_SLOW_CTYPE_FUNCTIONS

Definition at line 26 of file FIRLexer.cpp.

◆ TOK_KEYWORD [1/2]

#define TOK_KEYWORD (   SPELLING)
Value:
case kw_##SPELLING: \
return true;

◆ TOK_KEYWORD [2/2]

#define TOK_KEYWORD (   SPELLING)    .Case(#SPELLING, FIRToken::kw_##SPELLING)

◆ TOK_LPKEYWORD

#define TOK_LPKEYWORD (   SPELLING)    .Case(#SPELLING, FIRToken::lp_##SPELLING)

Function Documentation

◆ getMainBufferNameIdentifier()

static StringAttr getMainBufferNameIdentifier ( const llvm::SourceMgr &  sourceMgr,
MLIRContext *  context 
)
static

Definition at line 150 of file FIRLexer.cpp.

References circt::calyx::direction::get().