/external/llvm/examples/Kaleidoscope/Chapter2/ |
D | toy.cpp | 116 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/ |
D | toy.cpp | 130 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/ |
D | toy.cpp | 215 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/ |
D | toy.cpp | 215 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/ |
D | toy.cpp | 215 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/ |
D | toy.cpp | 147 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/ |
D | toy.cpp | 187 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/ |
D | toy.cpp | 216 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/ |
D | toy.cpp | 206 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/ |
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 …]
|
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 …]
|
/external/llvm/examples/Kaleidoscope/Chapter7/ |
D | toy.cpp | 224 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/ |
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 …]
|
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 …]
|
/external/llvm/examples/Kaleidoscope/Chapter8/ |
D | toy.cpp | 91 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/ |
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 …]
|
/external/llvm/examples/Kaleidoscope/MCJIT/complete/ |
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 …]
|
/external/llvm/docs/tutorial/ |
D | LangImpl2.rst | 106 /// 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 …]
|
D | LangImpl8.rst | 78 - 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``.
|
D | LangImpl6.rst | 121 ``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() {
|
D | LangImpl3.rst | 252 Function *PrototypeAST::Codegen() { 435 This code does have a bug, though. Since the ``PrototypeAST::Codegen``
|
D | LangImpl7.rst | 410 void PrototypeAST::CreateArgumentAllocas(Function *F) {
|