Home
last modified time | relevance | path

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

12

/external/llvm/examples/Kaleidoscope/Chapter2/
Dtoy.cpp29 static int LastChar = ' '; in gettok() local
32 while (isspace(LastChar)) in gettok()
33 LastChar = getchar(); in gettok()
35 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
36 IdentifierStr = LastChar; in gettok()
37 while (isalnum((LastChar = getchar()))) in gettok()
38 IdentifierStr += LastChar; in gettok()
45 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
48 NumStr += LastChar; in gettok()
49 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter3/
Dtoy.cpp34 static int LastChar = ' '; in gettok() local
37 while (isspace(LastChar)) in gettok()
38 LastChar = getchar(); in gettok()
40 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
41 IdentifierStr = LastChar; in gettok()
42 while (isalnum((LastChar = getchar()))) in gettok()
43 IdentifierStr += LastChar; in gettok()
50 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
53 NumStr += LastChar; in gettok()
54 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter5/
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()
80 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
83 NumStr += LastChar; in gettok()
84 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter4/
Dtoy.cpp44 static int LastChar = ' '; in gettok() local
47 while (isspace(LastChar)) in gettok()
48 LastChar = getchar(); in gettok()
50 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
51 IdentifierStr = LastChar; in gettok()
52 while (isalnum((LastChar = getchar()))) in gettok()
53 IdentifierStr += LastChar; in gettok()
62 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
65 NumStr += LastChar; in gettok()
66 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter6/
Dtoy.cpp56 static int LastChar = ' '; in gettok() local
59 while (isspace(LastChar)) in gettok()
60 LastChar = getchar(); in gettok()
62 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
63 IdentifierStr = LastChar; in gettok()
64 while (isalnum((LastChar = getchar()))) in gettok()
65 IdentifierStr += LastChar; in gettok()
88 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
91 NumStr += LastChar; in gettok()
92 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 __anon3327eab80111::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/Chapter7/
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()
93 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
96 NumStr += LastChar; in gettok()
97 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/Chapter8/
Dtoy.cpp115 int LastChar = getchar(); in advance() local
117 if (LastChar == '\n' || LastChar == '\r') { in advance()
122 return LastChar; in advance()
127 static int LastChar = ' '; in gettok() local
130 while (isspace(LastChar)) in gettok()
131 LastChar = advance(); in gettok()
135 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
136 IdentifierStr = LastChar; in gettok()
137 while (isalnum((LastChar = advance()))) in gettok()
138 IdentifierStr += LastChar; in gettok()
[all …]
/external/llvm/docs/tutorial/
DLangImpl1.rst197 static int LastChar = ' ';
200 while (isspace(LastChar))
201 LastChar = getchar();
206 in LastChar. The first thing that it has to do is ignore whitespace
215 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]*
216 IdentifierStr = LastChar;
217 while (isalnum((LastChar = getchar())))
218 IdentifierStr += LastChar;
231 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+
234 NumStr += LastChar;
[all …]
DLangImpl8.rst287 int LastChar = getchar();
289 if (LastChar == '\n' || LastChar == '\r') {
294 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/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/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/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/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/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/skia/experimental/PdfViewer/pdfparser/native/pdfapi/
DSkPdfType1FontDictionary_autogen.h36 int64_t LastChar(SkPdfNativeDoc* doc);
DSkPdfType3FontDictionary_autogen.h50 int64_t LastChar(SkPdfNativeDoc* doc);
DSkPdfType1FontDictionary_autogen.cpp71 int64_t SkPdfType1FontDictionary::LastChar(SkPdfNativeDoc* doc) { in LastChar() function in SkPdfType1FontDictionary
DSkPdfType3FontDictionary_autogen.cpp127 int64_t SkPdfType3FontDictionary::LastChar(SkPdfNativeDoc* doc) { in LastChar() function in SkPdfType3FontDictionary

12