LLVM API Documentation
#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>
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 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; }
| 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.