LLVM  3.7.0
Functions
MILexer.cpp File Reference
#include "MILexer.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/ADT/Twine.h"
#include <cctype>
Include dependency graph for MILexer.cpp:

Go to the source code of this file.

Functions

static Cursor skipWhitespace (Cursor C)
 Skip the leading whitespace characters and return the updated cursor. More...
 
static bool isIdentifierChar (char C)
 
static MIToken::TokenKind getIdentifierKind (StringRef Identifier)
 
static Cursor maybeLexIdentifier (Cursor C, MIToken &Token)
 
static Cursor maybeLexMachineBasicBlock (Cursor C, MIToken &Token, function_ref< void(StringRef::iterator Loc, const Twine &)> ErrorCallback)
 
static Cursor lexVirtualRegister (Cursor C, MIToken &Token)
 
static Cursor maybeLexRegister (Cursor C, MIToken &Token)
 
static Cursor maybeLexGlobalValue (Cursor C, MIToken &Token)
 
static Cursor maybeLexIntegerLiteral (Cursor C, MIToken &Token)
 
static MIToken::TokenKind symbolToken (char C)
 
static Cursor maybeLexSymbol (Cursor C, MIToken &Token)
 

Function Documentation

static MIToken::TokenKind getIdentifierKind ( StringRef  Identifier)
static
static bool isIdentifierChar ( char  C)
static
static Cursor lexVirtualRegister ( Cursor  C,
MIToken Token 
)
static

Definition at line 118 of file MILexer.cpp.

References llvm::lltok::APSInt, and llvm::MIToken::VirtualRegister.

Referenced by maybeLexRegister().

static Cursor maybeLexGlobalValue ( Cursor  C,
MIToken Token 
)
static
static Cursor maybeLexIdentifier ( Cursor  C,
MIToken Token 
)
static

Definition at line 79 of file MILexer.cpp.

References getIdentifierKind(), isIdentifierChar(), and llvm::None.

static Cursor maybeLexIntegerLiteral ( Cursor  C,
MIToken Token 
)
static
static Cursor maybeLexMachineBasicBlock ( Cursor  C,
MIToken Token,
function_ref< void(StringRef::iterator Loc, const Twine &)>  ErrorCallback 
)
static
static Cursor maybeLexRegister ( Cursor  C,
MIToken Token 
)
static
static Cursor maybeLexSymbol ( Cursor  C,
MIToken Token 
)
static

Definition at line 189 of file MILexer.cpp.

References llvm::MIToken::Error, Kind, llvm::None, and symbolToken().

static Cursor skipWhitespace ( Cursor  C)
static

Skip the leading whitespace characters and return the updated cursor.

Definition at line 58 of file MILexer.cpp.

static MIToken::TokenKind symbolToken ( char  C)
static