| /openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/Chapter2/ |
| H A D | toy.cpp | 135 class PrototypeAST { class 140 PrototypeAST(const std::string &Name, std::vector<std::string> Args) in PrototypeAST() function in __anonb06221950111::PrototypeAST 148 std::unique_ptr<PrototypeAST> Proto; 152 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() 190 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) { in LogErrorP() 320 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype() 339 return std::make_unique<PrototypeAST>(FnName, std::move(ArgNames)); in ParsePrototype() 358 auto Proto = std::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr() 366 static std::unique_ptr<PrototypeAST> ParseExtern() { in ParseExtern()
|
| /openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/Chapter3/ |
| H A D | toy.cpp | 158 class PrototypeAST { class 163 PrototypeAST(const std::string &Name, std::vector<std::string> Args) in PrototypeAST() function in __anon24de92960111::PrototypeAST 172 std::unique_ptr<PrototypeAST> Proto; 176 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() 217 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) { in LogErrorP() 347 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype() 366 return std::make_unique<PrototypeAST>(FnName, std::move(ArgNames)); in ParsePrototype() 385 auto Proto = std::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr() 393 static std::unique_ptr<PrototypeAST> ParseExtern() { in ParseExtern() 466 Function *PrototypeAST::codegen() { in codegen()
|
| /openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/Chapter4/ |
| H A D | toy.cpp | 168 class PrototypeAST { class 173 PrototypeAST(const std::string &Name, std::vector<std::string> Args) in PrototypeAST() function in __anon995b03970111::PrototypeAST 182 std::unique_ptr<PrototypeAST> Proto; 186 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() 227 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) { in LogErrorP() 357 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype() 376 return std::make_unique<PrototypeAST>(FnName, std::move(ArgNames)); in ParsePrototype() 395 auto Proto = std::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr() 403 static std::unique_ptr<PrototypeAST> ParseExtern() { in ParseExtern() 418 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos; [all …]
|
| /openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/MCJIT/lazy/ |
| H A D | toy-jit.cpp | 199 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 …]
|
| H A D | toy.cpp | 200 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 …]
|
| /openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/MCJIT/cached/ |
| H A D | toy-jit.cpp | 214 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 …]
|
| H A D | toy.cpp | 221 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 …]
|
| /openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/Chapter5/ |
| H A D | toy.cpp | 213 class PrototypeAST { class 218 PrototypeAST(const std::string &Name, std::vector<std::string> Args) in PrototypeAST() function in __anon0dd774980111::PrototypeAST 227 std::unique_ptr<PrototypeAST> Proto; 231 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() 272 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) { in LogErrorP() 484 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype() 503 return std::make_unique<PrototypeAST>(FnName, std::move(ArgNames)); in ParsePrototype() 522 auto Proto = std::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr() 530 static std::unique_ptr<PrototypeAST> ParseExtern() { in ParseExtern() 545 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos; [all …]
|
| /openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/MCJIT/initial/ |
| H A D | toy.cpp | 198 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 …]
|
| /openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/Chapter6/ |
| H A D | toy.cpp | 233 class PrototypeAST { class 240 PrototypeAST(const std::string &Name, std::vector<std::string> Args, in PrototypeAST() function in __anon8253e5990111::PrototypeAST 261 std::unique_ptr<PrototypeAST> Proto; 265 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() 306 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) { in LogErrorP() 536 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype() 594 return std::make_unique<PrototypeAST>(FnName, ArgNames, Kind != 0, in ParsePrototype() 614 auto Proto = std::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr() 622 static std::unique_ptr<PrototypeAST> ParseExtern() { in ParseExtern() 637 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos; [all …]
|
| /openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/MCJIT/complete/ |
| H A D | toy.cpp | 240 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 …]
|
| /openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/ |
| H A D | toy.cpp | 248 class PrototypeAST { class 255 PrototypeAST(const std::string &Name, std::vector<std::string> Args, in PrototypeAST() function in PrototypeAST 306 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) { in LogErrorP() 587 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype() 645 return std::make_unique<PrototypeAST>(FnName, ArgNames, Kind != 0, in ParsePrototype() 665 auto Proto = std::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr() 673 static std::unique_ptr<PrototypeAST> ParseExtern() { in ParseExtern() 687 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos; 1019 Function *PrototypeAST::codegen() { in codegen() 1036 const PrototypeAST& FunctionAST::getProto() const { in getProto() [all …]
|
| H A D | KaleidoscopeJIT.h | 37 class PrototypeAST; variable 42 std::unique_ptr<PrototypeAST> Proto; 46 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() 50 const PrototypeAST& getProto() const;
|
| /openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/Chapter7/ |
| H A D | toy.cpp | 255 class PrototypeAST { class 262 PrototypeAST(const std::string &Name, std::vector<std::string> Args, in PrototypeAST() function in __anonf6d0569a0111::PrototypeAST 283 std::unique_ptr<PrototypeAST> Proto; 287 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() 328 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) { in LogErrorP() 609 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype() 667 return std::make_unique<PrototypeAST>(FnName, ArgNames, Kind != 0, in ParsePrototype() 687 auto Proto = std::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr() 695 static std::unique_ptr<PrototypeAST> ParseExtern() { in ParseExtern() 710 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos; [all …]
|
| /openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/ |
| H A D | toy.cpp | 250 class PrototypeAST { class 257 PrototypeAST(const std::string &Name, std::vector<std::string> Args, in PrototypeAST() function in __anon348c1f790111::PrototypeAST 278 std::unique_ptr<PrototypeAST> Proto; 282 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() 323 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) { in LogErrorP() 604 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype() 662 return std::make_unique<PrototypeAST>(FnName, ArgNames, Kind != 0, in ParsePrototype() 682 auto Proto = std::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr() 690 static std::unique_ptr<PrototypeAST> ParseExtern() { in ParseExtern() 704 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos; [all …]
|
| /openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/Chapter8/ |
| H A D | toy.cpp | 255 class PrototypeAST { class 262 PrototypeAST(const std::string &Name, std::vector<std::string> Args, in PrototypeAST() function in __anon6b4cc79b0111::PrototypeAST 283 std::unique_ptr<PrototypeAST> Proto; 287 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() 328 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) { in LogErrorP() 609 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype() 667 return std::make_unique<PrototypeAST>(FnName, ArgNames, Kind != 0, in ParsePrototype() 687 auto Proto = std::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr() 695 static std::unique_ptr<PrototypeAST> ParseExtern() { in ParseExtern() 708 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos; [all …]
|
| /openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/ |
| H A D | toy.cpp | 250 class PrototypeAST { class 257 PrototypeAST(const std::string &Name, std::vector<std::string> Args, in PrototypeAST() function in __anona908907a0111::PrototypeAST 278 std::unique_ptr<PrototypeAST> Proto; 282 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() 323 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) { in LogErrorP() 604 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype() 662 return std::make_unique<PrototypeAST>(FnName, ArgNames, Kind != 0, in ParsePrototype() 682 auto Proto = std::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr() 690 static std::unique_ptr<PrototypeAST> ParseExtern() { in ParseExtern() 704 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos; [all …]
|
| /openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/ |
| H A D | toy.cpp | 250 class PrototypeAST { class 257 PrototypeAST(const std::string &Name, std::vector<std::string> Args, in PrototypeAST() function in __anon1d85017b0111::PrototypeAST 278 std::unique_ptr<PrototypeAST> Proto; 282 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() 323 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) { in LogErrorP() 604 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype() 662 return std::make_unique<PrototypeAST>(FnName, ArgNames, Kind != 0, in ParsePrototype() 682 auto Proto = std::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr() 690 static std::unique_ptr<PrototypeAST> ParseExtern() { in ParseExtern() 704 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos; [all …]
|
| /openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/Chapter9/ |
| H A D | toy.cpp | 88 class PrototypeAST; 357 class PrototypeAST { class 365 PrototypeAST(SourceLocation Loc, const std::string &Name, in PrototypeAST() function in __anondfc9389c0211::PrototypeAST 387 std::unique_ptr<PrototypeAST> Proto; 391 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() 436 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) { in LogErrorP() 722 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype() 782 return std::make_unique<PrototypeAST>(FnLoc, FnName, ArgNames, Kind != 0, in ParsePrototype() 803 auto Proto = std::make_unique<PrototypeAST>(FnLoc, "__anon_expr", in ParseTopLevelExpr() 811 static std::unique_ptr<PrototypeAST> ParseExtern() { in ParseExtern() [all …]
|
| /openbsd-src/gnu/llvm/llvm/docs/tutorial/MyFirstLanguageFrontend/ |
| H A D | LangImpl02.rst | 112 /// PrototypeAST - This class represents the "prototype" for a function, 115 class PrototypeAST { 120 PrototypeAST(const std::string &name, std::vector<std::string> Args) 128 std::unique_ptr<PrototypeAST> Proto; 132 FunctionAST(std::unique_ptr<PrototypeAST> Proto, 186 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) { 574 static std::unique_ptr<PrototypeAST> ParsePrototype() { 594 return std::make_unique<PrototypeAST>(FnName, std::move(ArgNames)); 620 static std::unique_ptr<PrototypeAST> ParseExtern() { 635 auto Proto = std::make_unique<PrototypeAST>("", std::vector<std::string>());
|
| H A D | LangImpl06.rst | 126 ``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, 172 static std::unique_ptr<PrototypeAST> ParsePrototype() { 221 return std::make_unique<PrototypeAST>(FnName, std::move(ArgNames), Kind != 0, 399 static std::unique_ptr<PrototypeAST> ParsePrototype() {
|
| H A D | LangImpl09.rst | 78 - auto Proto = std::make_unique<PrototypeAST>("", std::vector<std::string>()); 79 + auto Proto = std::make_unique<PrototypeAST>("main", std::vector<std::string>()); 241 function definitions to the debug info. So in ``PrototypeAST::codegen()`` we
|
| H A D | LangImpl03.rst | 270 Function *PrototypeAST::codegen() {
|