Home
last modified time | relevance | path

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

/external/llvm/examples/Kaleidoscope/Chapter2/
Dtoy.cpp143 class PrototypeAST { class
148 PrototypeAST(const std::string &Name, std::vector<std::string> Args) in PrototypeAST() function in __anonab6338a00111::PrototypeAST
154 std::unique_ptr<PrototypeAST> Proto;
158 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST()
195 std::unique_ptr<PrototypeAST> ErrorP(const char *Str) { in ErrorP()
325 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype()
344 return helper::make_unique<PrototypeAST>(FnName, std::move(ArgNames)); in ParsePrototype()
363 auto Proto = helper::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr()
371 static std::unique_ptr<PrototypeAST> ParseExtern() { in ParseExtern()
/external/llvm/examples/Kaleidoscope/Chapter4/
Dtoy.cpp148 class PrototypeAST { class
153 PrototypeAST(const std::string &Name, std::vector<std::string> Args) in PrototypeAST() function in __anon945c1aa20111::PrototypeAST
161 std::unique_ptr<PrototypeAST> Proto;
165 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST()
204 std::unique_ptr<PrototypeAST> ErrorP(const char *Str) { in ErrorP()
334 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype()
353 return llvm::make_unique<PrototypeAST>(FnName, std::move(ArgNames)); in ParsePrototype()
372 auto Proto = llvm::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr()
380 static std::unique_ptr<PrototypeAST> ParseExtern() { in ParseExtern()
394 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos;
[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() function
240 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() argument
246 std::unique_ptr<PrototypeAST> Proto;
554 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype()
562 return ErrorU<PrototypeAST>("Expected function name in prototype"); in ParsePrototype()
571 return ErrorU<PrototypeAST>("Expected unary operator"); in ParsePrototype()
580 return ErrorU<PrototypeAST>("Expected binary operator"); in ParsePrototype()
589 return ErrorU<PrototypeAST>("Invalid precedecnce: must be 1..100"); in ParsePrototype()
597 return ErrorU<PrototypeAST>("Expected '(' in prototype"); in ParsePrototype()
[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() function
240 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() argument
246 std::unique_ptr<PrototypeAST> Proto;
554 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype()
562 return ErrorU<PrototypeAST>("Expected function name in prototype"); in ParsePrototype()
571 return ErrorU<PrototypeAST>("Expected unary operator"); in ParsePrototype()
580 return ErrorU<PrototypeAST>("Expected binary operator"); in ParsePrototype()
589 return ErrorU<PrototypeAST>("Invalid precedecnce: must be 1..100"); in ParsePrototype()
597 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() argument
240 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() argument
246 std::unique_ptr<PrototypeAST> Proto;
554 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype()
562 return ErrorU<PrototypeAST>("Expected function name in prototype"); in ParsePrototype()
571 return ErrorU<PrototypeAST>("Expected unary operator"); in ParsePrototype()
580 return ErrorU<PrototypeAST>("Expected binary operator"); in ParsePrototype()
589 return ErrorU<PrototypeAST>("Invalid precedecnce: must be 1..100"); in ParsePrototype()
597 return ErrorU<PrototypeAST>("Expected '(' in prototype"); in ParsePrototype()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter3/
Dtoy.cpp142 class PrototypeAST { class
147 PrototypeAST(const std::string &Name, std::vector<std::string> Args) in PrototypeAST() function in __anon1fdfa9a10111::PrototypeAST
155 std::unique_ptr<PrototypeAST> Proto;
159 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST()
198 std::unique_ptr<PrototypeAST> ErrorP(const char *Str) { in ErrorP()
328 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype()
347 return llvm::make_unique<PrototypeAST>(FnName, std::move(ArgNames)); in ParsePrototype()
366 auto Proto = llvm::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr()
374 static std::unique_ptr<PrototypeAST> ParseExtern() { in ParseExtern()
447 Function *PrototypeAST::codegen() { in codegen()
/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;
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/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/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/Chapter5/
Dtoy.cpp190 class PrototypeAST { class
195 PrototypeAST(const std::string &Name, std::vector<std::string> Args) in PrototypeAST() function in __anon08d88ba30111::PrototypeAST
203 std::unique_ptr<PrototypeAST> Proto;
207 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST()
246 std::unique_ptr<PrototypeAST> ErrorP(const char *Str) { in ErrorP()
458 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype()
477 return llvm::make_unique<PrototypeAST>(FnName, std::move(ArgNames)); in ParsePrototype()
496 auto Proto = llvm::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr()
504 static std::unique_ptr<PrototypeAST> ParseExtern() { in ParseExtern()
518 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos;
[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/Chapter6/
Dtoy.cpp209 class PrototypeAST { class
216 PrototypeAST(const std::string &Name, std::vector<std::string> Args, in PrototypeAST() function in __anon7d54fca40111::PrototypeAST
236 std::unique_ptr<PrototypeAST> Proto;
240 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST()
279 std::unique_ptr<PrototypeAST> ErrorP(const char *Str) { in ErrorP()
509 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype()
567 return llvm::make_unique<PrototypeAST>(FnName, ArgNames, Kind != 0, in ParsePrototype()
587 auto Proto = llvm::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr()
595 static std::unique_ptr<PrototypeAST> ParseExtern() { in ParseExtern()
609 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos;
[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/examples/Kaleidoscope/Chapter7/
Dtoy.cpp228 class PrototypeAST { class
235 PrototypeAST(const std::string &Name, std::vector<std::string> Args, in PrototypeAST() function in __anonf1d16da50111::PrototypeAST
255 std::unique_ptr<PrototypeAST> Proto;
259 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST()
298 std::unique_ptr<PrototypeAST> ErrorP(const char *Str) { in ErrorP()
579 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype()
637 return llvm::make_unique<PrototypeAST>(FnName, ArgNames, Kind != 0, in ParsePrototype()
657 auto Proto = llvm::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr()
665 static std::unique_ptr<PrototypeAST> ParseExtern() { in ParseExtern()
679 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos;
[all …]
/external/llvm/examples/Kaleidoscope/Chapter8/
Dtoy.cpp87 class PrototypeAST;
356 class PrototypeAST { class
364 PrototypeAST(SourceLocation Loc, const std::string &Name, in PrototypeAST() function in __anon664ddea60211::PrototypeAST
386 std::unique_ptr<PrototypeAST> Proto;
390 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST()
435 std::unique_ptr<PrototypeAST> ErrorP(const char *Str) { in ErrorP()
721 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype()
781 return llvm::make_unique<PrototypeAST>(FnLoc, FnName, ArgNames, Kind != 0, in ParsePrototype()
802 auto Proto = llvm::make_unique<PrototypeAST>(FnLoc, "__anon_expr", in ParseTopLevelExpr()
810 static std::unique_ptr<PrototypeAST> ParseExtern() { in ParseExtern()
[all …]
/external/llvm/docs/tutorial/
DLangImpl2.rst112 /// PrototypeAST - This class represents the "prototype" for a function,
115 class PrototypeAST {
120 PrototypeAST(const std::string &name, std::vector<std::string> Args)
126 std::unique_ptr<PrototypeAST> Proto;
130 FunctionAST(std::unique_ptr<PrototypeAST> Proto,
184 std::unique_ptr<PrototypeAST> ErrorP(const char *Str) {
572 static std::unique_ptr<PrototypeAST> ParsePrototype() {
592 return llvm::make_unique<PrototypeAST>(FnName, std::move(ArgNames));
618 static std::unique_ptr<PrototypeAST> ParseExtern() {
633 auto Proto = llvm::make_unique<PrototypeAST>("", std::vector<std::string>());
DLangImpl6.rst126 ``PrototypeAST`` AST node. To represent our new user-defined operators
127 as prototypes, we have to extend the ``PrototypeAST`` AST node like
132 /// PrototypeAST - This class represents the "prototype" for a function,
134 class PrototypeAST {
141 PrototypeAST(const std::string &name, std::vector<std::string> Args,
171 static std::unique_ptr<PrototypeAST> ParsePrototype() {
220 return llvm::make_unique<PrototypeAST>(FnName, std::move(ArgNames), Kind != 0,
398 static std::unique_ptr<PrototypeAST> ParsePrototype() {
DLangImpl8.rst78 - auto Proto = llvm::make_unique<PrototypeAST>("", std::vector<std::string>());
79 + auto Proto = llvm::make_unique<PrototypeAST>("main", std::vector<std::string>());
240 function definitions to the debug info. So in ``PrototypeAST::codegen()`` we
355 std::map<const PrototypeAST *, DIScope *> FnScopeMap;
395 argument allocas in ``PrototypeAST::CreateArgumentAllocas``.
DLangImpl3.rst264 Function *PrototypeAST::codegen() {
DLangImpl7.rst413 void PrototypeAST::CreateArgumentAllocas(Function *F) {