Home
last modified time | relevance | path

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

12

/llvm-project/llvm/examples/Kaleidoscope/Chapter2/
H A Dtoy.cpp135 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 Dtoy.cpp158 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 Dtoy.cpp169 /// 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 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 …]
H A 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 …]
/llvm-project/llvm/examples/Kaleidoscope/MCJIT/cached/
H A 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 …]
H A 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 …]
/llvm-project/mlir/examples/toy/Ch6/include/toy/
H A DParser.h397 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 DAST.h202 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 DParser.h397 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 DAST.h202 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 DParser.h397 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 DAST.h202 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 DParser.h397 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 DAST.h202 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 DParser.h397 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 DAST.h202 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 DParser.h397 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 DAST.h202 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 Dtoy.cpp214 /// 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 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 …]
/llvm-project/llvm/examples/Kaleidoscope/Chapter6/
H A Dtoy.cpp234 /// 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 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 …]
/llvm-project/mlir/examples/toy/Ch7/include/toy/
H A DAST.h222 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 Dtoy.cpp245 /// 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...]

12