#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"
Go to the source code of this file.
|
| #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) |
| |
◆ isalpha
| #define isalpha |
( |
|
x | ) |
DO_NOT_USE_SLOW_CTYPE_FUNCTIONS |
◆ isdigit
| #define isdigit |
( |
|
x | ) |
DO_NOT_USE_SLOW_CTYPE_FUNCTIONS |
◆ 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) |
◆ getMainBufferNameIdentifier()
| static StringAttr getMainBufferNameIdentifier |
( |
const llvm::SourceMgr & |
sourceMgr, |
|
|
MLIRContext * |
context |
|
) |
| |
|
static |