LLVM API Documentation

LLLexer.cpp File Reference

#include "LLLexer.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Instruction.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Assembly/Parser.h"
#include <cstdlib>
#include <cstring>

Include dependency graph for LLLexer.cpp:

Go to the source code of this file.

Defines

#define KEYWORD(STR)
#define TYPEKEYWORD(STR, LLVMTY)
#define INSTKEYWORD(STR, Enum)

Functions

static void UnEscapeLexed (std::string &Str)
static bool isLabelChar (char C)
 isLabelChar - Return true for [-a-zA-Z$._0-9].
static const char * isLabelTail (const char *CurPtr)
 isLabelTail - Return true if this pointer points to a valid end of a label.
static bool JustWhitespaceNewLine (const char *&Ptr)


Define Documentation

#define INSTKEYWORD ( STR,
Enum   ) 

Value:

if (Len == strlen(#STR) && !memcmp(StartChar, #STR, strlen(#STR))) { \
    UIntVal = Instruction::Enum; return lltok::kw_##STR; }

#define KEYWORD ( STR   ) 

Value:

if (Len == strlen(#STR) && !memcmp(StartChar, #STR, strlen(#STR))) \
    return lltok::kw_##STR;

#define TYPEKEYWORD ( STR,
LLVMTY   ) 

Value:

if (Len == strlen(STR) && !memcmp(StartChar, STR, strlen(STR))) { \
    TyVal = LLVMTY; return lltok::Type; }


Function Documentation

static bool isLabelChar ( char  C  )  [static]

isLabelChar - Return true for [-a-zA-Z$._0-9].

Definition at line 147 of file LLLexer.cpp.

Referenced by isLabelTail().

static const char* isLabelTail ( const char *  CurPtr  )  [static]

isLabelTail - Return true if this pointer points to a valid end of a label.

Definition at line 153 of file LLLexer.cpp.

References isLabelChar().

static bool JustWhitespaceNewLine ( const char *&  Ptr  )  [static]

Definition at line 393 of file LLLexer.cpp.

static void UnEscapeLexed ( std::string &  Str  )  [static]

Definition at line 120 of file LLLexer.cpp.