Home
last modified time | relevance | path

Searched refs:IdentifierStr (Results 1 – 17 of 17) sorted by relevance

/external/llvm/examples/Kaleidoscope/Chapter2/
Dtoy.cpp24 static std::string IdentifierStr; // Filled in if tok_identifier variable
36 IdentifierStr = LastChar; in gettok()
38 IdentifierStr += LastChar; in gettok()
40 if (IdentifierStr == "def") return tok_def; in gettok()
41 if (IdentifierStr == "extern") return tok_extern; in gettok()
169 std::string IdName = IdentifierStr; in ParseIdentifierExpr()
280 std::string FnName = IdentifierStr; in ParsePrototype()
288 ArgNames.push_back(IdentifierStr); in ParsePrototype()
/external/llvm/examples/Kaleidoscope/Chapter6/
Dtoy.cpp43 static std::string IdentifierStr; // Filled in if tok_identifier variable
55 IdentifierStr = LastChar; in gettok()
57 IdentifierStr += LastChar; in gettok()
59 if (IdentifierStr == "def") return tok_def; in gettok()
60 if (IdentifierStr == "extern") return tok_extern; in gettok()
61 if (IdentifierStr == "if") return tok_if; in gettok()
62 if (IdentifierStr == "then") return tok_then; in gettok()
63 if (IdentifierStr == "else") return tok_else; in gettok()
64 if (IdentifierStr == "for") return tok_for; in gettok()
65 if (IdentifierStr == "in") return tok_in; in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter5/
Dtoy.cpp40 static std::string IdentifierStr; // Filled in if tok_identifier variable
52 IdentifierStr = LastChar; in gettok()
54 IdentifierStr += LastChar; in gettok()
56 if (IdentifierStr == "def") return tok_def; in gettok()
57 if (IdentifierStr == "extern") return tok_extern; in gettok()
58 if (IdentifierStr == "if") return tok_if; in gettok()
59 if (IdentifierStr == "then") return tok_then; in gettok()
60 if (IdentifierStr == "else") return tok_else; in gettok()
61 if (IdentifierStr == "for") return tok_for; in gettok()
62 if (IdentifierStr == "in") return tok_in; in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/lazy/
Dtoy-jit.cpp49 static std::string IdentifierStr; // Filled in if tok_identifier variable
61 IdentifierStr = LastChar; in gettok()
63 IdentifierStr += LastChar; in gettok()
65 if (IdentifierStr == "def") return tok_def; in gettok()
66 if (IdentifierStr == "extern") return tok_extern; in gettok()
67 if (IdentifierStr == "if") return tok_if; in gettok()
68 if (IdentifierStr == "then") return tok_then; in gettok()
69 if (IdentifierStr == "else") return tok_else; in gettok()
70 if (IdentifierStr == "for") return tok_for; in gettok()
71 if (IdentifierStr == "in") return tok_in; in gettok()
[all …]
Dtoy.cpp49 static std::string IdentifierStr; // Filled in if tok_identifier variable
61 IdentifierStr = LastChar; in gettok()
63 IdentifierStr += LastChar; in gettok()
65 if (IdentifierStr == "def") return tok_def; in gettok()
66 if (IdentifierStr == "extern") return tok_extern; in gettok()
67 if (IdentifierStr == "if") return tok_if; in gettok()
68 if (IdentifierStr == "then") return tok_then; in gettok()
69 if (IdentifierStr == "else") return tok_else; in gettok()
70 if (IdentifierStr == "for") return tok_for; in gettok()
71 if (IdentifierStr == "in") return tok_in; in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/cached/
Dtoy-jit.cpp64 static std::string IdentifierStr; // Filled in if tok_identifier variable
76 IdentifierStr = LastChar; in gettok()
78 IdentifierStr += LastChar; in gettok()
80 if (IdentifierStr == "def") return tok_def; in gettok()
81 if (IdentifierStr == "extern") return tok_extern; in gettok()
82 if (IdentifierStr == "if") return tok_if; in gettok()
83 if (IdentifierStr == "then") return tok_then; in gettok()
84 if (IdentifierStr == "else") return tok_else; in gettok()
85 if (IdentifierStr == "for") return tok_for; in gettok()
86 if (IdentifierStr == "in") return tok_in; in gettok()
[all …]
Dtoy.cpp70 static std::string IdentifierStr; // Filled in if tok_identifier variable
82 IdentifierStr = LastChar; in gettok()
84 IdentifierStr += LastChar; in gettok()
86 if (IdentifierStr == "def") return tok_def; in gettok()
87 if (IdentifierStr == "extern") return tok_extern; in gettok()
88 if (IdentifierStr == "if") return tok_if; in gettok()
89 if (IdentifierStr == "then") return tok_then; in gettok()
90 if (IdentifierStr == "else") return tok_else; in gettok()
91 if (IdentifierStr == "for") return tok_for; in gettok()
92 if (IdentifierStr == "in") return tok_in; in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter7/
Dtoy.cpp46 static std::string IdentifierStr; // Filled in if tok_identifier variable
58 IdentifierStr = LastChar; in gettok()
60 IdentifierStr += LastChar; in gettok()
62 if (IdentifierStr == "def") return tok_def; in gettok()
63 if (IdentifierStr == "extern") return tok_extern; in gettok()
64 if (IdentifierStr == "if") return tok_if; in gettok()
65 if (IdentifierStr == "then") return tok_then; in gettok()
66 if (IdentifierStr == "else") return tok_else; in gettok()
67 if (IdentifierStr == "for") return tok_for; in gettok()
68 if (IdentifierStr == "in") return tok_in; in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter3/
Dtoy.cpp29 static std::string IdentifierStr; // Filled in if tok_identifier variable
41 IdentifierStr = LastChar; in gettok()
43 IdentifierStr += LastChar; in gettok()
45 if (IdentifierStr == "def") return tok_def; in gettok()
46 if (IdentifierStr == "extern") return tok_extern; in gettok()
190 std::string IdName = IdentifierStr; in ParseIdentifierExpr()
301 std::string FnName = IdentifierStr; in ParsePrototype()
309 ArgNames.push_back(IdentifierStr); in ParsePrototype()
/external/llvm/examples/Kaleidoscope/Chapter4/
Dtoy.cpp36 static std::string IdentifierStr; // Filled in if tok_identifier variable
48 IdentifierStr = LastChar; in gettok()
50 IdentifierStr += LastChar; in gettok()
52 if (IdentifierStr == "def") return tok_def; in gettok()
53 if (IdentifierStr == "extern") return tok_extern; in gettok()
197 std::string IdName = IdentifierStr; in ParseIdentifierExpr()
308 std::string FnName = IdentifierStr; in ParsePrototype()
316 ArgNames.push_back(IdentifierStr); in ParsePrototype()
/external/llvm/examples/Kaleidoscope/MCJIT/initial/
Dtoy.cpp47 static std::string IdentifierStr; // Filled in if tok_identifier variable
59 IdentifierStr = LastChar; in gettok()
61 IdentifierStr += LastChar; in gettok()
63 if (IdentifierStr == "def") return tok_def; in gettok()
64 if (IdentifierStr == "extern") return tok_extern; in gettok()
65 if (IdentifierStr == "if") return tok_if; in gettok()
66 if (IdentifierStr == "then") return tok_then; in gettok()
67 if (IdentifierStr == "else") return tok_else; in gettok()
68 if (IdentifierStr == "for") return tok_for; in gettok()
69 if (IdentifierStr == "in") return tok_in; in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/complete/
Dtoy.cpp94 static std::string IdentifierStr; // Filled in if tok_identifier variable
106 IdentifierStr = LastChar; in gettok()
108 IdentifierStr += LastChar; in gettok()
110 if (IdentifierStr == "def") return tok_def; in gettok()
111 if (IdentifierStr == "extern") return tok_extern; in gettok()
112 if (IdentifierStr == "if") return tok_if; in gettok()
113 if (IdentifierStr == "then") return tok_then; in gettok()
114 if (IdentifierStr == "else") return tok_else; in gettok()
115 if (IdentifierStr == "for") return tok_for; in gettok()
116 if (IdentifierStr == "in") return tok_in; in gettok()
[all …]
/external/llvm/docs/tutorial/
DLangImpl1.rst171 static std::string IdentifierStr; // Filled in if tok_identifier
177 ``IdentifierStr`` global variable holds the name of the identifier. If
209 IdentifierStr = LastChar;
211 IdentifierStr += LastChar;
213 if (IdentifierStr == "def") return tok_def;
214 if (IdentifierStr == "extern") return tok_extern;
218 Note that this code sets the '``IdentifierStr``' global whenever it
DLangImpl5.rst77 if (IdentifierStr == "def") return tok_def;
78 if (IdentifierStr == "extern") return tok_extern;
79 if (IdentifierStr == "if") return tok_if;
80 if (IdentifierStr == "then") return tok_then;
81 if (IdentifierStr == "else") return tok_else;
447 if (IdentifierStr == "def") return tok_def;
448 if (IdentifierStr == "extern") return tok_extern;
449 if (IdentifierStr == "if") return tok_if;
450 if (IdentifierStr == "then") return tok_then;
451 if (IdentifierStr == "else") return tok_else;
[all …]
DLangImpl6.rst104 if (IdentifierStr == "for") return tok_for;
105 if (IdentifierStr == "in") return tok_in;
106 if (IdentifierStr == "binary") return tok_binary;
107 if (IdentifierStr == "unary") return tok_unary;
174 FnName = IdentifierStr;
202 ArgNames.push_back(IdentifierStr);
391 FnName = IdentifierStr;
DLangImpl7.rst652 if (IdentifierStr == "in") return tok_in;
653 if (IdentifierStr == "binary") return tok_binary;
654 if (IdentifierStr == "unary") return tok_unary;
655 if (IdentifierStr == "var") return tok_var;
726 std::string Name = IdentifierStr;
DLangImpl2.rst254 std::string IdName = IdentifierStr;
548 std::string FnName = IdentifierStr;
557 ArgNames.push_back(IdentifierStr);