/llvm-project/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 __anond1e021b10111::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()
|
/llvm-project/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 __anon465c92b20111::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()
|
/llvm-project/llvm/examples/Kaleidoscope/Chapter4/ |
H A D | toy.cpp | 169 /// PrototypeAST - This class represents the "prototype" for a function, 172 class PrototypeAST { class 177 PrototypeAST(const std::string &Name, std::vector<std::string> Args) in PrototypeAST() function in __anonbad903b30111::PrototypeAST 186 std::unique_ptr<PrototypeAST> Proto; 190 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() 231 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) { in LogErrorP() 361 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype() 380 return std::make_unique<PrototypeAST>(FnName, std::move(ArgNames)); in ParsePrototype() 399 auto Proto = std::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr() 407 static std::unique_ptr<PrototypeAST> ParseExter [all...] |
/llvm-project/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 …]
|
/llvm-project/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 …]
|
/llvm-project/mlir/examples/toy/Ch6/include/toy/ |
H A D | Parser.h | 397 std::unique_ptr<PrototypeAST> parsePrototype() { in parsePrototype() 401 return parseError<PrototypeAST>("def", "in prototype"); in parsePrototype() 405 return parseError<PrototypeAST>("function name", "in prototype"); in parsePrototype() 411 return parseError<PrototypeAST>("(", "in prototype"); in parsePrototype() 426 return parseError<PrototypeAST>( in parsePrototype() 431 return parseError<PrototypeAST>(")", "to end function prototype"); in parsePrototype() 435 return std::make_unique<PrototypeAST>(std::move(loc), fnName, in parsePrototype()
|
H A D | AST.h | 202 class PrototypeAST { 208 PrototypeAST(Location location, const std::string &name, in PrototypeAST() function 219 std::unique_ptr<PrototypeAST> proto; 223 FunctionAST(std::unique_ptr<PrototypeAST> proto, in FunctionAST() 226 PrototypeAST *getProto() { return proto.get(); } in getProto()
|
/llvm-project/mlir/examples/toy/Ch2/include/toy/ |
H A D | Parser.h | 397 std::unique_ptr<PrototypeAST> parsePrototype() { in parsePrototype() 401 return parseError<PrototypeAST>("def", "in prototype"); in parsePrototype() 405 return parseError<PrototypeAST>("function name", "in prototype"); in parsePrototype() 411 return parseError<PrototypeAST>("(", "in prototype"); in parsePrototype() 426 return parseError<PrototypeAST>( in parsePrototype() 431 return parseError<PrototypeAST>(")", "to end function prototype"); in parsePrototype() 435 return std::make_unique<PrototypeAST>(std::move(loc), fnName, in parsePrototype()
|
H A D | AST.h | 202 class PrototypeAST { 208 PrototypeAST(Location location, const std::string &name, in PrototypeAST() function 219 std::unique_ptr<PrototypeAST> proto; 223 FunctionAST(std::unique_ptr<PrototypeAST> proto, in FunctionAST() 226 PrototypeAST *getProto() { return proto.get(); } in getProto()
|
/llvm-project/mlir/examples/toy/Ch3/include/toy/ |
H A D | Parser.h | 397 std::unique_ptr<PrototypeAST> parsePrototype() { in parsePrototype() 401 return parseError<PrototypeAST>("def", "in prototype"); in parsePrototype() 405 return parseError<PrototypeAST>("function name", "in prototype"); in parsePrototype() 411 return parseError<PrototypeAST>("(", "in prototype"); in parsePrototype() 426 return parseError<PrototypeAST>( in parsePrototype() 431 return parseError<PrototypeAST>(")", "to end function prototype"); in parsePrototype() 435 return std::make_unique<PrototypeAST>(std::move(loc), fnName, in parsePrototype()
|
H A D | AST.h | 202 class PrototypeAST { 208 PrototypeAST(Location location, const std::string &name, in PrototypeAST() function 219 std::unique_ptr<PrototypeAST> proto; 223 FunctionAST(std::unique_ptr<PrototypeAST> proto, in FunctionAST() 226 PrototypeAST *getProto() { return proto.get(); } in getProto()
|
/llvm-project/mlir/examples/toy/Ch1/include/toy/ |
H A D | Parser.h | 397 std::unique_ptr<PrototypeAST> parsePrototype() { in parsePrototype() 401 return parseError<PrototypeAST>("def", "in prototype"); in parsePrototype() 405 return parseError<PrototypeAST>("function name", "in prototype"); in parsePrototype() 411 return parseError<PrototypeAST>("(", "in prototype"); in parsePrototype() 426 return parseError<PrototypeAST>( in parsePrototype() 431 return parseError<PrototypeAST>(")", "to end function prototype"); in parsePrototype() 435 return std::make_unique<PrototypeAST>(std::move(loc), fnName, in parsePrototype()
|
H A D | AST.h | 202 class PrototypeAST { 208 PrototypeAST(Location location, const std::string &name, in PrototypeAST() function 219 std::unique_ptr<PrototypeAST> proto; 223 FunctionAST(std::unique_ptr<PrototypeAST> proto, in FunctionAST() 226 PrototypeAST *getProto() { return proto.get(); } in getProto()
|
/llvm-project/mlir/examples/toy/Ch4/include/toy/ |
H A D | Parser.h | 397 std::unique_ptr<PrototypeAST> parsePrototype() { in parsePrototype() 401 return parseError<PrototypeAST>("def", "in prototype"); in parsePrototype() 405 return parseError<PrototypeAST>("function name", "in prototype"); in parsePrototype() 411 return parseError<PrototypeAST>("(", "in prototype"); in parsePrototype() 426 return parseError<PrototypeAST>( in parsePrototype() 431 return parseError<PrototypeAST>(")", "to end function prototype"); in parsePrototype() 435 return std::make_unique<PrototypeAST>(std::move(loc), fnName, in parsePrototype()
|
H A D | AST.h | 202 class PrototypeAST { 208 PrototypeAST(Location location, const std::string &name, in PrototypeAST() function 219 std::unique_ptr<PrototypeAST> proto; 223 FunctionAST(std::unique_ptr<PrototypeAST> proto, in FunctionAST() 226 PrototypeAST *getProto() { return proto.get(); } in getProto()
|
/llvm-project/mlir/examples/toy/Ch5/include/toy/ |
H A D | Parser.h | 397 std::unique_ptr<PrototypeAST> parsePrototype() { in parsePrototype() 401 return parseError<PrototypeAST>("def", "in prototype"); in parsePrototype() 405 return parseError<PrototypeAST>("function name", "in prototype"); in parsePrototype() 411 return parseError<PrototypeAST>("(", "in prototype"); in parsePrototype() 426 return parseError<PrototypeAST>( in parsePrototype() 431 return parseError<PrototypeAST>(")", "to end function prototype"); in parsePrototype() 435 return std::make_unique<PrototypeAST>(std::move(loc), fnName, in parsePrototype()
|
H A D | AST.h | 202 class PrototypeAST { 208 PrototypeAST(Location location, const std::string &name, in PrototypeAST() function 219 std::unique_ptr<PrototypeAST> proto; 223 FunctionAST(std::unique_ptr<PrototypeAST> proto, in FunctionAST() 226 PrototypeAST *getProto() { return proto.get(); } in getProto()
|
/llvm-project/llvm/examples/Kaleidoscope/Chapter5/ |
H A D | toy.cpp | 214 /// PrototypeAST - This class represents the "prototype" for a function, 217 class PrototypeAST { class 222 PrototypeAST(const std::string &Name, std::vector<std::string> Args) in PrototypeAST() function in __anon2f5574b40111::PrototypeAST 231 std::unique_ptr<PrototypeAST> Proto; 235 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() 276 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) { in LogErrorP() 488 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype() 507 return std::make_unique<PrototypeAST>(FnName, std::move(ArgNames)); in ParsePrototype() 526 auto Proto = std::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr() 534 static std::unique_ptr<PrototypeAST> ParseExter [all...] |
/llvm-project/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 …]
|
/llvm-project/llvm/examples/Kaleidoscope/Chapter6/ |
H A D | toy.cpp | 234 /// PrototypeAST - This class represents the "prototype" for a function, 237 class PrototypeAST { class 244 PrototypeAST(const std::string &Name, std::vector<std::string> Args, in PrototypeAST() function in __anona3d1e5b50111::PrototypeAST 265 std::unique_ptr<PrototypeAST> Proto; 269 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() 310 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) { in LogErrorP() 540 static std::unique_ptr<PrototypeAST> ParsePrototype() { in ParsePrototype() 598 return std::make_unique<PrototypeAST>(FnName, ArgNames, Kind != 0, in ParsePrototype() 618 auto Proto = std::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr() 626 static std::unique_ptr<PrototypeAST> ParseExter [all...] |
/llvm-project/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 …]
|
/llvm-project/mlir/examples/toy/Ch7/include/toy/ |
H A D | AST.h | 222 class PrototypeAST { 228 PrototypeAST(Location location, const std::string &name, in PrototypeAST() function 256 std::unique_ptr<PrototypeAST> proto; 260 FunctionAST(std::unique_ptr<PrototypeAST> proto, in FunctionAST() 264 PrototypeAST *getProto() { return proto.get(); } in getProto()
|
/llvm-project/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/ |
H A D | toy.cpp | 245 /// PrototypeAST - This class represents the "prototype" for a function, 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 [all...] |