Home
last modified time | relevance | path

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

123

/external/llvm-project/llvm/examples/Kaleidoscope/Chapter2/
Dtoy.cpp33 static int LastChar = ' '; in gettok() local
36 while (isspace(LastChar)) in gettok()
37 LastChar = getchar(); in gettok()
39 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
40 IdentifierStr = LastChar; in gettok()
41 while (isalnum((LastChar = getchar()))) in gettok()
42 IdentifierStr += LastChar; in gettok()
51 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
54 NumStr += LastChar; in gettok()
55 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter2/
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-project/llvm/examples/Kaleidoscope/Chapter3/
Dtoy.cpp46 static int LastChar = ' '; in gettok() local
49 while (isspace(LastChar)) in gettok()
50 LastChar = getchar(); in gettok()
52 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
53 IdentifierStr = LastChar; in gettok()
54 while (isalnum((LastChar = getchar()))) in gettok()
55 IdentifierStr += LastChar; in gettok()
64 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
67 NumStr += LastChar; in gettok()
68 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter3/
Dtoy.cpp45 static int LastChar = ' '; in gettok() local
48 while (isspace(LastChar)) in gettok()
49 LastChar = getchar(); in gettok()
51 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
52 IdentifierStr = LastChar; in gettok()
53 while (isalnum((LastChar = getchar()))) in gettok()
54 IdentifierStr += LastChar; in gettok()
63 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
66 NumStr += LastChar; in gettok()
67 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter4/
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()
72 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
75 NumStr += LastChar; in gettok()
76 LastChar = getchar(); in gettok()
[all …]
/external/llvm-project/llvm/examples/Kaleidoscope/Chapter4/
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()
74 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
77 NumStr += LastChar; in gettok()
78 LastChar = getchar(); in gettok()
[all …]
/external/llvm-project/llvm/docs/tutorial/MyFirstLanguageFrontend/
DLangImpl01.rst103 static int LastChar = ' ';
106 while (isspace(LastChar))
107 LastChar = getchar();
112 in LastChar. The first thing that it has to do is ignore whitespace
121 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]*
122 IdentifierStr = LastChar;
123 while (isalnum((LastChar = getchar())))
124 IdentifierStr += LastChar;
139 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+
142 NumStr += LastChar;
[all …]
/external/llvm/examples/Kaleidoscope/Chapter5/
Dtoy.cpp62 static int LastChar = ' '; in gettok() local
65 while (isspace(LastChar)) in gettok()
66 LastChar = getchar(); in gettok()
68 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
69 IdentifierStr = LastChar; in gettok()
70 while (isalnum((LastChar = getchar()))) in gettok()
71 IdentifierStr += LastChar; in gettok()
90 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
93 NumStr += LastChar; in gettok()
94 LastChar = getchar(); in gettok()
[all …]
/external/llvm-project/llvm/examples/Kaleidoscope/Chapter5/
Dtoy.cpp64 static int LastChar = ' '; in gettok() local
67 while (isspace(LastChar)) in gettok()
68 LastChar = getchar(); in gettok()
70 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
71 IdentifierStr = LastChar; in gettok()
72 while (isalnum((LastChar = getchar()))) in gettok()
73 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 …]
/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 __anon37581e9f0111::RawMemoryObject
42 return static_cast<std::ptrdiff_t>(address) < LastChar - FirstChar; in validAddress()
51 uint64_t BufferSize = LastChar - FirstChar; in readBytes()
/external/swiftshader/third_party/subzero/pnacl-llvm/
DStreamingMemoryObject.cpp21 : FirstChar(Start), LastChar(End) { in RawMemoryObject()
22 assert(LastChar >= FirstChar && "Invalid start/end range"); in RawMemoryObject()
25 uint64_t getExtent() const override { return LastChar - FirstChar; } in getExtent()
35 const uint8_t *const LastChar; member in __anoncb2bfdad0111::RawMemoryObject
40 return static_cast<std::ptrdiff_t>(address) < LastChar - FirstChar; in validAddress()
49 uint64_t BufferSize = LastChar - FirstChar; in readBytes()
/external/llvm-project/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 …]
/external/llvm-project/llvm/examples/Kaleidoscope/Chapter6/
Dtoy.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()
100 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
103 NumStr += LastChar; in gettok()
104 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter6/
Dtoy.cpp66 static int LastChar = ' '; in gettok() local
69 while (isspace(LastChar)) in gettok()
70 LastChar = getchar(); in gettok()
72 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
73 IdentifierStr = LastChar; in gettok()
74 while (isalnum((LastChar = getchar()))) in gettok()
75 IdentifierStr += LastChar; in gettok()
98 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
101 NumStr += LastChar; in gettok()
102 LastChar = getchar(); in gettok()
[all …]
/external/llvm-project/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 …]
/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 …]
/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 …]
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/
Dtoy.cpp70 static int LastChar = ' '; in gettok() local
73 while (isspace(LastChar)) in gettok()
74 LastChar = getchar(); in gettok()
76 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
77 IdentifierStr = LastChar; in gettok()
78 while (isalnum((LastChar = getchar()))) in gettok()
79 IdentifierStr += LastChar; in gettok()
104 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
107 NumStr += LastChar; in gettok()
108 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/
Dtoy.cpp70 static int LastChar = ' '; in gettok() local
73 while (isspace(LastChar)) in gettok()
74 LastChar = getchar(); in gettok()
76 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
77 IdentifierStr = LastChar; in gettok()
78 while (isalnum((LastChar = getchar()))) in gettok()
79 IdentifierStr += LastChar; in gettok()
104 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
107 NumStr += LastChar; in gettok()
108 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/
Dtoy.cpp71 static int LastChar = ' '; in gettok() local
74 while (isspace(LastChar)) in gettok()
75 LastChar = getchar(); in gettok()
77 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
78 IdentifierStr = LastChar; in gettok()
79 while (isalnum((LastChar = getchar()))) in gettok()
80 IdentifierStr += LastChar; in gettok()
105 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
108 NumStr += LastChar; in gettok()
109 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/
Dtoy.cpp70 static int LastChar = ' '; in gettok() local
73 while (isspace(LastChar)) in gettok()
74 LastChar = getchar(); in gettok()
76 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
77 IdentifierStr = LastChar; in gettok()
78 while (isalnum((LastChar = getchar()))) in gettok()
79 IdentifierStr += LastChar; in gettok()
104 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
107 NumStr += LastChar; in gettok()
108 LastChar = getchar(); in gettok()
[all …]
/external/llvm-project/llvm/examples/Kaleidoscope/Chapter7/
Dtoy.cpp73 static int LastChar = ' '; in gettok() local
76 while (isspace(LastChar)) in gettok()
77 LastChar = getchar(); in gettok()
79 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
80 IdentifierStr = LastChar; in gettok()
81 while (isalnum((LastChar = getchar()))) in gettok()
82 IdentifierStr += LastChar; in gettok()
107 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
110 NumStr += LastChar; in gettok()
111 LastChar = getchar(); in gettok()
[all …]
/external/llvm-project/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/
Dtoy.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()
102 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
105 NumStr += LastChar; in gettok()
106 LastChar = getchar(); in gettok()
[all …]
/external/llvm-project/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/
Dtoy.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()
102 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
105 NumStr += LastChar; in gettok()
106 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/
Dtoy.cpp86 static int LastChar = ' '; in gettok() local
89 while (isspace(LastChar)) in gettok()
90 LastChar = getchar(); in gettok()
92 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
93 IdentifierStr = LastChar; in gettok()
94 while (isalnum((LastChar = getchar()))) in gettok()
95 IdentifierStr += LastChar; in gettok()
120 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
123 NumStr += LastChar; in gettok()
124 LastChar = getchar(); in gettok()
[all …]

123