Home
last modified time | relevance | path

Searched refs:PrototypeAST (Results 1 – 16 of 16) sorted by relevance

/external/llvm/examples/Kaleidoscope/Chapter2/
Dtoy.cpp116 class PrototypeAST { class
120 PrototypeAST(const std::string &name, const std::vector<std::string> &args) in PrototypeAST() function in __anon9e01c5f70111::PrototypeAST
128 FunctionAST(PrototypeAST *proto, ExprAST *body) {} in FunctionAST()
161 PrototypeAST *ErrorP(const char *Str) { Error(Str); return 0; } in ErrorP()
276 static PrototypeAST *ParsePrototype() { in ParsePrototype()
295 return new PrototypeAST(FnName, ArgNames); in ParsePrototype()
301 PrototypeAST *Proto = ParsePrototype(); in ParseDefinition()
313 PrototypeAST *Proto = new PrototypeAST("", std::vector<std::string>()); in ParseTopLevelExpr()
320 static PrototypeAST *ParseExtern() { in ParseExtern()
/external/llvm/examples/Kaleidoscope/Chapter3/
Dtoy.cpp130 class PrototypeAST { class
134 PrototypeAST(const std::string &name, const std::vector<std::string> &args) in PrototypeAST() function in __anon127e36f80111::PrototypeAST
142 PrototypeAST *Proto;
145 FunctionAST(PrototypeAST *proto, ExprAST *body) in FunctionAST()
181 PrototypeAST *ErrorP(const char *Str) { Error(Str); return 0; } in ErrorP()
297 static PrototypeAST *ParsePrototype() { in ParsePrototype()
316 return new PrototypeAST(FnName, ArgNames); in ParsePrototype()
322 PrototypeAST *Proto = ParsePrototype(); in ParseDefinition()
334 PrototypeAST *Proto = new PrototypeAST("", std::vector<std::string>()); in ParseTopLevelExpr()
341 static PrototypeAST *ParseExtern() { in ParseExtern()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter4/
Dtoy.cpp137 class PrototypeAST { class
141 PrototypeAST(const std::string &name, const std::vector<std::string> &args) in PrototypeAST() function in __anon86faa7f90111::PrototypeAST
149 PrototypeAST *Proto;
152 FunctionAST(PrototypeAST *proto, ExprAST *body) in FunctionAST()
188 PrototypeAST *ErrorP(const char *Str) { Error(Str); return 0; } in ErrorP()
304 static PrototypeAST *ParsePrototype() { in ParsePrototype()
323 return new PrototypeAST(FnName, ArgNames); in ParsePrototype()
329 PrototypeAST *Proto = ParsePrototype(); in ParseDefinition()
341 PrototypeAST *Proto = new PrototypeAST("", std::vector<std::string>()); in ParseTopLevelExpr()
348 static PrototypeAST *ParseExtern() { in ParseExtern()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter5/
Dtoy.cpp166 class PrototypeAST { class
170 PrototypeAST(const std::string &name, const std::vector<std::string> &args) in PrototypeAST() function in __anonfb7718fa0111::PrototypeAST
178 PrototypeAST *Proto;
181 FunctionAST(PrototypeAST *proto, ExprAST *body) in FunctionAST()
217 PrototypeAST *ErrorP(const char *Str) { Error(Str); return 0; } in ErrorP()
405 static PrototypeAST *ParsePrototype() { in ParsePrototype()
424 return new PrototypeAST(FnName, ArgNames); in ParsePrototype()
430 PrototypeAST *Proto = ParsePrototype(); in ParseDefinition()
442 PrototypeAST *Proto = new PrototypeAST("", std::vector<std::string>()); in ParseTopLevelExpr()
449 static PrototypeAST *ParseExtern() { in ParseExtern()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter6/
Dtoy.cpp181 class PrototypeAST { class
187 PrototypeAST(const std::string &name, const std::vector<std::string> &args, in PrototypeAST() function in __anon6ff389fb0111::PrototypeAST
206 PrototypeAST *Proto;
209 FunctionAST(PrototypeAST *proto, ExprAST *body) in FunctionAST()
245 PrototypeAST *ErrorP(const char *Str) { Error(Str); return 0; } in ErrorP()
451 static PrototypeAST *ParsePrototype() { in ParsePrototype()
509 return new PrototypeAST(FnName, ArgNames, Kind != 0, BinaryPrecedence); in ParsePrototype()
515 PrototypeAST *Proto = ParsePrototype(); in ParseDefinition()
527 PrototypeAST *Proto = new PrototypeAST("", std::vector<std::string>()); in ParseTopLevelExpr()
534 static PrototypeAST *ParseExtern() { in ParseExtern()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/lazy/
Dtoy-jit.cpp200 class PrototypeAST { class
206 PrototypeAST(const std::string &name, const std::vector<std::string> &args, in PrototypeAST() function in PrototypeAST
227 PrototypeAST *Proto;
230 FunctionAST(PrototypeAST *proto, ExprAST *body) in FunctionAST()
265 PrototypeAST *ErrorP(const char *Str) { Error(Str); return 0; } in ErrorP()
518 static PrototypeAST *ParsePrototype() { in ParsePrototype()
576 return new PrototypeAST(FnName, ArgNames, Kind != 0, BinaryPrecedence); in ParsePrototype()
582 PrototypeAST *Proto = ParsePrototype(); in ParseDefinition()
594 PrototypeAST *Proto = new PrototypeAST("", std::vector<std::string>()); in ParseTopLevelExpr()
601 static PrototypeAST *ParseExtern() { in ParseExtern()
[all …]
Dtoy.cpp200 class PrototypeAST { class
206 PrototypeAST(const std::string &name, const std::vector<std::string> &args, in PrototypeAST() function in PrototypeAST
227 PrototypeAST *Proto;
230 FunctionAST(PrototypeAST *proto, ExprAST *body) in FunctionAST()
265 PrototypeAST *ErrorP(const char *Str) { Error(Str); return 0; } in ErrorP()
518 static PrototypeAST *ParsePrototype() { in ParsePrototype()
576 return new PrototypeAST(FnName, ArgNames, Kind != 0, BinaryPrecedence); in ParsePrototype()
582 PrototypeAST *Proto = ParsePrototype(); in ParseDefinition()
594 PrototypeAST *Proto = new PrototypeAST("", std::vector<std::string>()); in ParseTopLevelExpr()
601 static PrototypeAST *ParseExtern() { in ParseExtern()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/cached/
Dtoy-jit.cpp215 class PrototypeAST { class
221 PrototypeAST(const std::string &name, const std::vector<std::string> &args, in PrototypeAST() function in PrototypeAST
242 PrototypeAST *Proto;
245 FunctionAST(PrototypeAST *proto, ExprAST *body) in FunctionAST()
280 PrototypeAST *ErrorP(const char *Str) { Error(Str); return 0; } in ErrorP()
533 static PrototypeAST *ParsePrototype() { in ParsePrototype()
591 return new PrototypeAST(FnName, ArgNames, Kind != 0, BinaryPrecedence); in ParsePrototype()
597 PrototypeAST *Proto = ParsePrototype(); in ParseDefinition()
609 PrototypeAST *Proto = new PrototypeAST("", std::vector<std::string>()); in ParseTopLevelExpr()
616 static PrototypeAST *ParseExtern() { in ParseExtern()
[all …]
Dtoy.cpp221 class PrototypeAST { class
227 PrototypeAST(const std::string &name, const std::vector<std::string> &args, in PrototypeAST() function in PrototypeAST
248 PrototypeAST *Proto;
251 FunctionAST(PrototypeAST *proto, ExprAST *body) in FunctionAST()
286 PrototypeAST *ErrorP(const char *Str) { Error(Str); return 0; } in ErrorP()
539 static PrototypeAST *ParsePrototype() { in ParsePrototype()
597 return new PrototypeAST(FnName, ArgNames, Kind != 0, BinaryPrecedence); in ParsePrototype()
603 PrototypeAST *Proto = ParsePrototype(); in ParseDefinition()
615 PrototypeAST *Proto = new PrototypeAST("", std::vector<std::string>()); in ParseTopLevelExpr()
622 static PrototypeAST *ParseExtern() { in ParseExtern()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter7/
Dtoy.cpp197 class PrototypeAST { class
203 PrototypeAST(const std::string &name, const std::vector<std::string> &args, in PrototypeAST() function in __anone46ffafc0111::PrototypeAST
224 PrototypeAST *Proto;
227 FunctionAST(PrototypeAST *proto, ExprAST *body) in FunctionAST()
263 PrototypeAST *ErrorP(const char *Str) { Error(Str); return 0; } in ErrorP()
516 static PrototypeAST *ParsePrototype() { in ParsePrototype()
574 return new PrototypeAST(FnName, ArgNames, Kind != 0, BinaryPrecedence); in ParsePrototype()
580 PrototypeAST *Proto = ParsePrototype(); in ParseDefinition()
592 PrototypeAST *Proto = new PrototypeAST("", std::vector<std::string>()); in ParseTopLevelExpr()
599 static PrototypeAST *ParseExtern() { in ParseExtern()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/initial/
Dtoy.cpp198 class PrototypeAST { class
204 PrototypeAST(const std::string &name, const std::vector<std::string> &args, in PrototypeAST() function in PrototypeAST
225 PrototypeAST *Proto;
228 FunctionAST(PrototypeAST *proto, ExprAST *body) in FunctionAST()
263 PrototypeAST *ErrorP(const char *Str) { Error(Str); return 0; } in ErrorP()
516 static PrototypeAST *ParsePrototype() { in ParsePrototype()
574 return new PrototypeAST(FnName, ArgNames, Kind != 0, BinaryPrecedence); in ParsePrototype()
580 PrototypeAST *Proto = ParsePrototype(); in ParseDefinition()
592 PrototypeAST *Proto = new PrototypeAST("", std::vector<std::string>()); in ParseTopLevelExpr()
599 static PrototypeAST *ParseExtern() { in ParseExtern()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/complete/
Dtoy.cpp245 class PrototypeAST { class
251 PrototypeAST(const std::string &name, const std::vector<std::string> &args, in PrototypeAST() function in PrototypeAST
272 PrototypeAST *Proto;
275 FunctionAST(PrototypeAST *proto, ExprAST *body) in FunctionAST()
310 PrototypeAST *ErrorP(const char *Str) { Error(Str); return 0; } in ErrorP()
563 static PrototypeAST *ParsePrototype() { in ParsePrototype()
621 return new PrototypeAST(FnName, ArgNames, Kind != 0, BinaryPrecedence); in ParsePrototype()
627 PrototypeAST *Proto = ParsePrototype(); in ParseDefinition()
639 PrototypeAST *Proto = new PrototypeAST("", std::vector<std::string>()); in ParseTopLevelExpr()
646 static PrototypeAST *ParseExtern() { in ParseExtern()
[all …]
/external/llvm/docs/tutorial/
DLangImpl2.rst106 /// PrototypeAST - This class represents the "prototype" for a function,
109 class PrototypeAST {
113 PrototypeAST(const std::string &name, const std::vector<std::string> &args)
119 PrototypeAST *Proto;
122 FunctionAST(PrototypeAST *proto, ExprAST *body)
171 PrototypeAST *ErrorP(const char *Str) { Error(Str); return 0; }
544 static PrototypeAST *ParsePrototype() {
564 return new PrototypeAST(FnName, ArgNames);
575 PrototypeAST *Proto = ParsePrototype();
590 static PrototypeAST *ParseExtern() {
[all …]
DLangImpl6.rst121 ``PrototypeAST`` AST node. To represent our new user-defined operators
122 as prototypes, we have to extend the ``PrototypeAST`` AST node like
127 /// PrototypeAST - This class represents the "prototype" for a function,
129 class PrototypeAST {
135 PrototypeAST(const std::string &name, const std::vector<std::string> &args,
164 static PrototypeAST *ParsePrototype() {
213 return new PrototypeAST(FnName, ArgNames, Kind != 0, BinaryPrecedence);
381 static PrototypeAST *ParsePrototype() {
DLangImpl3.rst252 Function *PrototypeAST::Codegen() {
435 This code does have a bug, though. Since the ``PrototypeAST::Codegen``
DLangImpl7.rst410 void PrototypeAST::CreateArgumentAllocas(Function *F) {