Home
last modified time | relevance | path

Searched refs:LastChar (Results 1 – 22 of 22) sorted by relevance

/external/llvm/examples/Kaleidoscope/Chapter2/
Dtoy.cpp43 static int LastChar = ' '; in gettok() local
46 while (isspace(LastChar)) in gettok()
47 LastChar = getchar(); in gettok()
49 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
50 IdentifierStr = LastChar; in gettok()
51 while (isalnum((LastChar = getchar()))) in gettok()
52 IdentifierStr += LastChar; in gettok()
61 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
64 NumStr += LastChar; in gettok()
65 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter3/
Dtoy.cpp37 static int LastChar = ' '; in gettok() local
40 while (isspace(LastChar)) in gettok()
41 LastChar = getchar(); in gettok()
43 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
44 IdentifierStr = LastChar; in gettok()
45 while (isalnum((LastChar = getchar()))) in gettok()
46 IdentifierStr += LastChar; in gettok()
55 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
58 NumStr += LastChar; in gettok()
59 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter4/
Dtoy.cpp43 static int LastChar = ' '; in gettok() local
46 while (isspace(LastChar)) in gettok()
47 LastChar = getchar(); in gettok()
49 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
50 IdentifierStr = LastChar; in gettok()
51 while (isalnum((LastChar = getchar()))) in gettok()
52 IdentifierStr += LastChar; in gettok()
61 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
64 NumStr += LastChar; in gettok()
65 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter5/
Dtoy.cpp50 static int LastChar = ' '; in gettok() local
53 while (isspace(LastChar)) in gettok()
54 LastChar = getchar(); in gettok()
56 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
57 IdentifierStr = LastChar; in gettok()
58 while (isalnum((LastChar = getchar()))) in gettok()
59 IdentifierStr += LastChar; in gettok()
78 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
81 NumStr += LastChar; in gettok()
82 LastChar = getchar(); in gettok()
[all …]
/external/llvm/lib/Support/
DStreamingMemoryObject.cpp21 FirstChar(Start), LastChar(End) { in RawMemoryObject()
22 assert(LastChar >= FirstChar && "Invalid start/end range"); in RawMemoryObject()
26 return LastChar - FirstChar; in getExtent()
37 const uint8_t* const LastChar; member in __anonae16243d0111::RawMemoryObject
42 return static_cast<std::ptrdiff_t>(address) < LastChar - FirstChar; in validAddress()
51 uint64_t BufferSize = LastChar - FirstChar; in readBytes()
/external/llvm/examples/Kaleidoscope/MCJIT/lazy/
Dtoy-jit.cpp53 static int LastChar = ' '; in gettok() local
56 while (isspace(LastChar)) in gettok()
57 LastChar = getchar(); in gettok()
59 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
60 IdentifierStr = LastChar; in gettok()
61 while (isalnum((LastChar = getchar()))) in gettok()
62 IdentifierStr += LastChar; in gettok()
77 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
80 NumStr += LastChar; in gettok()
81 LastChar = getchar(); in gettok()
[all …]
Dtoy.cpp54 static int LastChar = ' '; in gettok() local
57 while (isspace(LastChar)) in gettok()
58 LastChar = getchar(); in gettok()
60 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
61 IdentifierStr = LastChar; in gettok()
62 while (isalnum((LastChar = getchar()))) in gettok()
63 IdentifierStr += LastChar; in gettok()
78 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
81 NumStr += LastChar; in gettok()
82 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/cached/
Dtoy-jit.cpp68 static int LastChar = ' '; in gettok() local
71 while (isspace(LastChar)) in gettok()
72 LastChar = getchar(); in gettok()
74 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
75 IdentifierStr = LastChar; in gettok()
76 while (isalnum((LastChar = getchar()))) in gettok()
77 IdentifierStr += LastChar; in gettok()
92 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
95 NumStr += LastChar; in gettok()
96 LastChar = getchar(); in gettok()
[all …]
Dtoy.cpp75 static int LastChar = ' '; in gettok() local
78 while (isspace(LastChar)) in gettok()
79 LastChar = getchar(); in gettok()
81 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
82 IdentifierStr = LastChar; in gettok()
83 while (isalnum((LastChar = getchar()))) in gettok()
84 IdentifierStr += LastChar; in gettok()
99 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
102 NumStr += LastChar; in gettok()
103 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter6/
Dtoy.cpp54 static int LastChar = ' '; in gettok() local
57 while (isspace(LastChar)) in gettok()
58 LastChar = getchar(); in gettok()
60 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
61 IdentifierStr = LastChar; in gettok()
62 while (isalnum((LastChar = getchar()))) in gettok()
63 IdentifierStr += LastChar; in gettok()
86 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
89 NumStr += LastChar; in gettok()
90 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter7/
Dtoy.cpp57 static int LastChar = ' '; in gettok() local
60 while (isspace(LastChar)) in gettok()
61 LastChar = getchar(); in gettok()
63 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
64 IdentifierStr = LastChar; in gettok()
65 while (isalnum((LastChar = getchar()))) in gettok()
66 IdentifierStr += LastChar; in gettok()
91 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
94 NumStr += LastChar; in gettok()
95 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter8/
Dtoy.cpp108 int LastChar = getchar(); in advance() local
110 if (LastChar == '\n' || LastChar == '\r') { in advance()
115 return LastChar; in advance()
123 static int LastChar = ' '; in gettok() local
126 while (isspace(LastChar)) in gettok()
127 LastChar = advance(); in gettok()
131 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
132 IdentifierStr = LastChar; in gettok()
133 while (isalnum((LastChar = advance()))) in gettok()
134 IdentifierStr += LastChar; in gettok()
[all …]
/external/llvm/docs/tutorial/
DLangImpl1.rst199 static int LastChar = ' ';
202 while (isspace(LastChar))
203 LastChar = getchar();
208 in LastChar. The first thing that it has to do is ignore whitespace
217 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]*
218 IdentifierStr = LastChar;
219 while (isalnum((LastChar = getchar())))
220 IdentifierStr += LastChar;
235 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+
238 NumStr += LastChar;
[all …]
DLangImpl8.rst288 int LastChar = getchar();
290 if (LastChar == '\n' || LastChar == '\r') {
295 return LastChar;
/external/llvm/examples/Kaleidoscope/MCJIT/initial/
Dtoy.cpp52 static int LastChar = ' '; in gettok() local
55 while (isspace(LastChar)) in gettok()
56 LastChar = getchar(); in gettok()
58 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
59 IdentifierStr = LastChar; in gettok()
60 while (isalnum((LastChar = getchar()))) in gettok()
61 IdentifierStr += LastChar; in gettok()
76 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
79 NumStr += LastChar; in gettok()
80 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/complete/
Dtoy.cpp94 static int LastChar = ' '; in gettok() local
97 while (isspace(LastChar)) in gettok()
98 LastChar = getchar(); in gettok()
100 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
101 IdentifierStr = LastChar; in gettok()
102 while (isalnum((LastChar = getchar()))) in gettok()
103 IdentifierStr += LastChar; in gettok()
118 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
121 NumStr += LastChar; in gettok()
122 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/Orc/initial/
Dtoy.cpp58 static int LastChar = ' '; in gettok() local
61 while (isspace(LastChar)) in gettok()
62 LastChar = getchar(); in gettok()
64 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
65 IdentifierStr = LastChar; in gettok()
66 while (isalnum((LastChar = getchar()))) in gettok()
67 IdentifierStr += LastChar; in gettok()
82 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
85 NumStr += LastChar; in gettok()
86 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/Orc/lazy_irgen/
Dtoy.cpp58 static int LastChar = ' '; in gettok() local
61 while (isspace(LastChar)) in gettok()
62 LastChar = getchar(); in gettok()
64 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
65 IdentifierStr = LastChar; in gettok()
66 while (isalnum((LastChar = getchar()))) in gettok()
67 IdentifierStr += LastChar; in gettok()
82 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
85 NumStr += LastChar; in gettok()
86 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/Orc/lazy_codegen/
Dtoy.cpp58 static int LastChar = ' '; in gettok() local
61 while (isspace(LastChar)) in gettok()
62 LastChar = getchar(); in gettok()
64 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
65 IdentifierStr = LastChar; in gettok()
66 while (isalnum((LastChar = getchar()))) in gettok()
67 IdentifierStr += LastChar; in gettok()
82 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
85 NumStr += LastChar; in gettok()
86 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/Orc/fully_lazy/
Dtoy.cpp59 static int LastChar = ' '; in gettok() local
62 while (isspace(LastChar)) in gettok()
63 LastChar = getchar(); in gettok()
65 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
66 IdentifierStr = LastChar; in gettok()
67 while (isalnum((LastChar = getchar()))) in gettok()
68 IdentifierStr += LastChar; in gettok()
83 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
86 NumStr += LastChar; in gettok()
87 LastChar = getchar(); in gettok()
[all …]
/external/protobuf/src/google/protobuf/compiler/
Dimporter.cc221 static inline char LastChar(const string& str) { in LastChar() function
272 if (!path.empty() && LastChar(path) == '/' && in CanonicalizePath()
273 !result.empty() && LastChar(result) != '/') { in CanonicalizePath()
/external/clang/lib/ARCMigrate/
DObjCMT.cpp537 char LastChar = TypeString[TypeString.size()-1]; in rewriteToObjCProperty() local
539 if (LastChar != '*') in rewriteToObjCProperty()