Home
last modified time | relevance | path

Searched refs:PrototypeAST (Results 1 – 22 of 22) 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 __anonab6338a00111::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 __anon1fdfa9a10111::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/Orc/lazy_irgen/
Dtoy.cpp215 struct PrototypeAST { struct
216 PrototypeAST(std::string Name, std::vector<std::string> Args, in PrototypeAST() argument
240 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() argument
246 std::unique_ptr<PrototypeAST> Proto;
555 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype()
563 return ErrorU<PrototypeAST>("Expected function name in prototype"); in ParsePrototype()
572 return ErrorU<PrototypeAST>("Expected unary operator"); in ParsePrototype()
581 return ErrorU<PrototypeAST>("Expected binary operator"); in ParsePrototype()
590 return ErrorU<PrototypeAST>("Invalid precedecnce: must be 1..100"); in ParsePrototype()
598 return ErrorU<PrototypeAST>("Expected '(' in prototype"); in ParsePrototype()
[all …]
/external/llvm/examples/Kaleidoscope/Orc/initial/
Dtoy.cpp215 struct PrototypeAST { struct
216 PrototypeAST(std::string Name, std::vector<std::string> Args, in PrototypeAST() function
240 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() argument
246 std::unique_ptr<PrototypeAST> Proto;
555 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype()
563 return ErrorU<PrototypeAST>("Expected function name in prototype"); in ParsePrototype()
572 return ErrorU<PrototypeAST>("Expected unary operator"); in ParsePrototype()
581 return ErrorU<PrototypeAST>("Expected binary operator"); in ParsePrototype()
590 return ErrorU<PrototypeAST>("Invalid precedecnce: must be 1..100"); in ParsePrototype()
598 return ErrorU<PrototypeAST>("Expected '(' in prototype"); in ParsePrototype()
[all …]
/external/llvm/examples/Kaleidoscope/Orc/lazy_codegen/
Dtoy.cpp215 struct PrototypeAST { struct
216 PrototypeAST(std::string Name, std::vector<std::string> Args, in PrototypeAST() argument
240 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() argument
246 std::unique_ptr<PrototypeAST> Proto;
555 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype()
563 return ErrorU<PrototypeAST>("Expected function name in prototype"); in ParsePrototype()
572 return ErrorU<PrototypeAST>("Expected unary operator"); in ParsePrototype()
581 return ErrorU<PrototypeAST>("Expected binary operator"); in ParsePrototype()
590 return ErrorU<PrototypeAST>("Invalid precedecnce: must be 1..100"); in ParsePrototype()
598 return ErrorU<PrototypeAST>("Expected '(' in prototype"); in ParsePrototype()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter4/
Dtoy.cpp147 class PrototypeAST { class
152 PrototypeAST(const std::string &name, const std::vector<std::string> &args) in PrototypeAST() function in __anon945c1aa20111::PrototypeAST
160 PrototypeAST *Proto;
164 FunctionAST(PrototypeAST *proto, ExprAST *body) : Proto(proto), Body(body) {} in FunctionAST()
201 PrototypeAST *ErrorP(const char *Str) { in ErrorP()
333 static PrototypeAST *ParsePrototype() { in ParsePrototype()
352 return new PrototypeAST(FnName, ArgNames); in ParsePrototype()
358 PrototypeAST *Proto = ParsePrototype(); in ParseDefinition()
371 PrototypeAST *Proto = new PrototypeAST("", std::vector<std::string>()); in ParseTopLevelExpr()
378 static PrototypeAST *ParseExtern() { in ParseExtern()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter5/
Dtoy.cpp187 class PrototypeAST { class
192 PrototypeAST(const std::string &name, const std::vector<std::string> &args) in PrototypeAST() function in __anon08d88ba30111::PrototypeAST
200 PrototypeAST *Proto;
204 FunctionAST(PrototypeAST *proto, ExprAST *body) : Proto(proto), Body(body) {} in FunctionAST()
241 PrototypeAST *ErrorP(const char *Str) { in ErrorP()
453 static PrototypeAST *ParsePrototype() { in ParsePrototype()
472 return new PrototypeAST(FnName, ArgNames); in ParsePrototype()
478 PrototypeAST *Proto = ParsePrototype(); in ParseDefinition()
491 PrototypeAST *Proto = new PrototypeAST("", std::vector<std::string>()); in ParseTopLevelExpr()
498 static PrototypeAST *ParseExtern() { in ParseExtern()
[all …]
/external/llvm/examples/Kaleidoscope/Orc/fully_lazy/
Dtoy.cpp216 struct PrototypeAST { struct
217 PrototypeAST(std::string Name, std::vector<std::string> Args, in PrototypeAST() function
241 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() argument
247 std::unique_ptr<PrototypeAST> Proto;
556 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype()
564 return ErrorU<PrototypeAST>("Expected function name in prototype"); in ParsePrototype()
573 return ErrorU<PrototypeAST>("Expected unary operator"); in ParsePrototype()
582 return ErrorU<PrototypeAST>("Expected binary operator"); in ParsePrototype()
591 return ErrorU<PrototypeAST>("Invalid precedecnce: must be 1..100"); in ParsePrototype()
599 return ErrorU<PrototypeAST>("Expected '(' in prototype"); in ParsePrototype()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter6/
Dtoy.cpp206 class PrototypeAST { class
212 PrototypeAST(const std::string &name, const std::vector<std::string> &args, in PrototypeAST() function in __anon7d54fca40111::PrototypeAST
231 PrototypeAST *Proto;
235 FunctionAST(PrototypeAST *proto, ExprAST *body) : Proto(proto), Body(body) {} in FunctionAST()
272 PrototypeAST *ErrorP(const char *Str) { in ErrorP()
502 static PrototypeAST *ParsePrototype() { in ParsePrototype()
560 return new PrototypeAST(FnName, ArgNames, Kind != 0, BinaryPrecedence); in ParsePrototype()
566 PrototypeAST *Proto = ParsePrototype(); in ParseDefinition()
579 PrototypeAST *Proto = new PrototypeAST("", std::vector<std::string>()); in ParseTopLevelExpr()
586 static PrototypeAST *ParseExtern() { in ParseExtern()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/cached/
Dtoy-jit.cpp214 class PrototypeAST { class
220 PrototypeAST(const std::string &name, const std::vector<std::string> &args, in PrototypeAST() function in PrototypeAST
241 PrototypeAST *Proto;
244 FunctionAST(PrototypeAST *proto, ExprAST *body) in FunctionAST()
279 PrototypeAST *ErrorP(const char *Str) { Error(Str); return 0; } in ErrorP()
532 static PrototypeAST *ParsePrototype() { in ParsePrototype()
590 return new PrototypeAST(FnName, ArgNames, Kind != 0, BinaryPrecedence); in ParsePrototype()
596 PrototypeAST *Proto = ParsePrototype(); in ParseDefinition()
608 PrototypeAST *Proto = new PrototypeAST("", std::vector<std::string>()); in ParseTopLevelExpr()
615 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.cpp224 class PrototypeAST { class
230 PrototypeAST(const std::string &name, const std::vector<std::string> &args, in PrototypeAST() function in __anonf1d16da50111::PrototypeAST
251 PrototypeAST *Proto;
255 FunctionAST(PrototypeAST *proto, ExprAST *body) : Proto(proto), Body(body) {} in FunctionAST()
292 PrototypeAST *ErrorP(const char *Str) { in ErrorP()
573 static PrototypeAST *ParsePrototype() { in ParsePrototype()
631 return new PrototypeAST(FnName, ArgNames, Kind != 0, BinaryPrecedence); in ParsePrototype()
637 PrototypeAST *Proto = ParsePrototype(); in ParseDefinition()
650 PrototypeAST *Proto = new PrototypeAST("", std::vector<std::string>()); in ParseTopLevelExpr()
657 static PrototypeAST *ParseExtern() { in ParseExtern()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/lazy/
Dtoy-jit.cpp199 class PrototypeAST { class
205 PrototypeAST(const std::string &name, const std::vector<std::string> &args, in PrototypeAST() function in PrototypeAST
226 PrototypeAST *Proto;
229 FunctionAST(PrototypeAST *proto, ExprAST *body) in FunctionAST()
264 PrototypeAST *ErrorP(const char *Str) { Error(Str); return 0; } in ErrorP()
517 static PrototypeAST *ParsePrototype() { in ParsePrototype()
575 return new PrototypeAST(FnName, ArgNames, Kind != 0, BinaryPrecedence); in ParsePrototype()
581 PrototypeAST *Proto = ParsePrototype(); in ParseDefinition()
593 PrototypeAST *Proto = new PrototypeAST("", std::vector<std::string>()); in ParseTopLevelExpr()
600 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/Chapter8/
Dtoy.cpp91 class PrototypeAST;
99 std::map<const PrototypeAST *, DIScope> FnScopeMap;
354 class PrototypeAST { class
362 PrototypeAST(SourceLocation Loc, const std::string &name, in PrototypeAST() function in __anon664ddea60211::PrototypeAST
386 PrototypeAST *Proto;
390 FunctionAST(PrototypeAST *proto, ExprAST *body) : Proto(proto), Body(body) {} in FunctionAST()
434 PrototypeAST *ErrorP(const char *Str) { in ErrorP()
720 static PrototypeAST *ParsePrototype() { in ParsePrototype()
780 return new PrototypeAST(FnLoc, FnName, ArgNames, Kind != 0, BinaryPrecedence); in ParsePrototype()
786 PrototypeAST *Proto = ParsePrototype(); in ParseDefinition()
[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.cpp240 class PrototypeAST { class
246 PrototypeAST(const std::string &name, const std::vector<std::string> &args, in PrototypeAST() function in PrototypeAST
267 PrototypeAST *Proto;
270 FunctionAST(PrototypeAST *proto, ExprAST *body) in FunctionAST()
305 PrototypeAST *ErrorP(const char *Str) { Error(Str); return 0; } in ErrorP()
558 static PrototypeAST *ParsePrototype() { in ParsePrototype()
616 return new PrototypeAST(FnName, ArgNames, Kind != 0, BinaryPrecedence); in ParsePrototype()
622 PrototypeAST *Proto = ParsePrototype(); in ParseDefinition()
634 PrototypeAST *Proto = new PrototypeAST("", std::vector<std::string>()); in ParseTopLevelExpr()
641 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 …]
DLangImpl8.rst78 - PrototypeAST *Proto = new PrototypeAST("", std::vector<std::string>());
79 + PrototypeAST *Proto = new PrototypeAST("main", std::vector<std::string>());
240 function definitions to the debug info. So in ``PrototypeAST::Codegen`` we
351 std::map<const PrototypeAST *, DIScope> FnScopeMap;
391 argument allocas in ``PrototypeAST::CreateArgumentAllocas``.
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) {