LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions
LLLexer.cpp File Reference
#include "LLLexer.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Assembly/Parser.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Instruction.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/raw_ostream.h"
#include <cctype>
#include <cstdio>
#include <cstdlib>
#include <cstring>
Include dependency graph for LLLexer.cpp:

Go to the source code of this file.

Macros

#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]. More...
 
static const char * isLabelTail (const char *CurPtr)
 isLabelTail - Return true if this pointer points to a valid end of a label. More...
 

Macro Definition Documentation

#define INSTKEYWORD (   STR,
  Enum 
)
Value:
if (Len == strlen(#STR) && !memcmp(StartChar, #STR, strlen(#STR))) { \
UIntVal = Instruction::Enum; return lltok::kw_##STR; }
int memcmp(const void *s1, const void *s2, size_t n);
#define STR(x)
Definition: DebugIR.cpp:43
size_t strlen(const char *s);
#define KEYWORD (   STR)
Value:
do { \
if (Len == strlen(#STR) && !memcmp(StartChar, #STR, strlen(#STR))) \
return lltok::kw_##STR; \
} while (0)
int memcmp(const void *s1, const void *s2, size_t n);
* if(!EatIfPresent(lltok::kw_thread_local)) return false
#define STR(x)
Definition: DebugIR.cpp:43
size_t strlen(const char *s);
#define TYPEKEYWORD (   STR,
  LLVMTY 
)
Value:
if (Len == strlen(STR) && !memcmp(StartChar, STR, strlen(STR))) { \
TyVal = LLVMTY; return lltok::Type; }
COFF::RelocationTypeX86 Type
Definition: COFFYAML.cpp:227
int memcmp(const void *s1, const void *s2, size_t n);
#define STR(x)
Definition: DebugIR.cpp:43
size_t strlen(const char *s);

Function Documentation

static bool isLabelChar ( char  C)
static

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

Definition at line 139 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 146 of file LLLexer.cpp.

References isLabelChar().

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

Definition at line 112 of file LLLexer.cpp.

References llvm::hexDigitValue().