Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/
H A DKaleidoscopeJIT.h41 class FunctionAST {
46 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() function
59 llvm::orc::ThreadSafeModule irgenAndTakeOwnership(FunctionAST &FnAST,
71 std::unique_ptr<FunctionAST> F);
85 std::unique_ptr<FunctionAST> F;
93 Error add(ResourceTrackerSP RT, std::unique_ptr<FunctionAST> F) { in add()
101 std::unique_ptr<FunctionAST> F) { in emit()
105 MaterializationUnit::Interface getInterface(FunctionAST &F) { in getInterface()
119 KaleidoscopeASTLayer &L, std::unique_ptr<FunctionAST> F) in KaleidoscopeASTMaterializationUnit()
211 Error addAST(std::unique_ptr<FunctionAST> F, ResourceTrackerSP RT = nullptr) {
H A Dtoy.cpp650 static std::unique_ptr<FunctionAST> ParseDefinition() { in ParseDefinition()
657 return std::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseDefinition()
662 static std::unique_ptr<FunctionAST> ParseTopLevelExpr() { in ParseTopLevelExpr()
667 return std::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseTopLevelExpr()
1036 const PrototypeAST& FunctionAST::getProto() const { in getProto()
1040 const std::string& FunctionAST::getName() const { in getName()
1044 Function *FunctionAST::codegen() { in codegen()
1106 ThreadSafeModule irgenAndTakeOwnership(FunctionAST &FnAST, in irgenAndTakeOwnership()
/openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/Chapter2/
H A Dtoy.cpp147 class FunctionAST { class
152 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() function in __anonb06221950111::FunctionAST
343 static std::unique_ptr<FunctionAST> ParseDefinition() { in ParseDefinition()
350 return std::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseDefinition()
355 static std::unique_ptr<FunctionAST> ParseTopLevelExpr() { in ParseTopLevelExpr()
360 return std::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseTopLevelExpr()
/openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/Chapter3/
H A Dtoy.cpp171 class FunctionAST { class
176 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() function in __anon24de92960111::FunctionAST
370 static std::unique_ptr<FunctionAST> ParseDefinition() { in ParseDefinition()
377 return std::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseDefinition()
382 static std::unique_ptr<FunctionAST> ParseTopLevelExpr() { in ParseTopLevelExpr()
387 return std::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseTopLevelExpr()
483 Function *FunctionAST::codegen() { in codegen()
/openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/Chapter4/
H A Dtoy.cpp181 class FunctionAST { class
186 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() function in __anon995b03970111::FunctionAST
380 static std::unique_ptr<FunctionAST> ParseDefinition() { in ParseDefinition()
387 return std::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseDefinition()
392 static std::unique_ptr<FunctionAST> ParseTopLevelExpr() { in ParseTopLevelExpr()
397 return std::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseTopLevelExpr()
512 Function *FunctionAST::codegen() { in codegen()
/openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/MCJIT/lazy/
H A Dtoy-jit.cpp225 class FunctionAST { class
229 FunctionAST(PrototypeAST *proto, ExprAST *body) in FunctionAST() function in FunctionAST
265 FunctionAST *ErrorF(const char *Str) { Error(Str); return 0; } in ErrorF()
579 static FunctionAST *ParseDefinition() { in ParseDefinition()
585 return new FunctionAST(Proto, E); in ParseDefinition()
590 static FunctionAST *ParseTopLevelExpr() { in ParseTopLevelExpr()
594 return new FunctionAST(Proto, E); in ParseTopLevelExpr()
963 Function *FunctionAST::Codegen() { in Codegen()
1009 if (FunctionAST *F = ParseDefinition()) { in HandleDefinition()
1040 if (FunctionAST *F = ParseTopLevelExpr()) { in HandleTopLevelExpression()
H A Dtoy.cpp226 class FunctionAST { class
230 FunctionAST(PrototypeAST *proto, ExprAST *body) in FunctionAST() function in FunctionAST
266 FunctionAST *ErrorF(const char *Str) { Error(Str); return 0; } in ErrorF()
580 static FunctionAST *ParseDefinition() { in ParseDefinition()
586 return new FunctionAST(Proto, E); in ParseDefinition()
591 static FunctionAST *ParseTopLevelExpr() { in ParseTopLevelExpr()
595 return new FunctionAST(Proto, E); in ParseTopLevelExpr()
1250 Function *FunctionAST::Codegen() { in Codegen()
1291 if (FunctionAST *F = ParseDefinition()) { in HandleDefinition()
1323 if (FunctionAST *F = ParseTopLevelExpr()) { in HandleTopLevelExpression()
/openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/MCJIT/cached/
H A Dtoy-jit.cpp240 class FunctionAST { class
244 FunctionAST(PrototypeAST *proto, ExprAST *body) in FunctionAST() function in FunctionAST
280 FunctionAST *ErrorF(const char *Str) { Error(Str); return 0; } in ErrorF()
594 static FunctionAST *ParseDefinition() { in ParseDefinition()
600 return new FunctionAST(Proto, E); in ParseDefinition()
605 static FunctionAST *ParseTopLevelExpr() { in ParseTopLevelExpr()
609 return new FunctionAST(Proto, E); in ParseTopLevelExpr()
981 Function *FunctionAST::Codegen() { in Codegen()
1027 if (FunctionAST *F = ParseDefinition()) { in HandleDefinition()
1056 if (FunctionAST *F = ParseTopLevelExpr()) { in HandleTopLevelExpression()
H A Dtoy.cpp247 class FunctionAST { class
251 FunctionAST(PrototypeAST *proto, ExprAST *body) in FunctionAST() function in FunctionAST
287 FunctionAST *ErrorF(const char *Str) { Error(Str); return 0; } in ErrorF()
601 static FunctionAST *ParseDefinition() { in ParseDefinition()
607 return new FunctionAST(Proto, E); in ParseDefinition()
612 static FunctionAST *ParseTopLevelExpr() { in ParseTopLevelExpr()
616 return new FunctionAST(Proto, E); in ParseTopLevelExpr()
1352 Function *FunctionAST::Codegen() { in Codegen()
1393 if (FunctionAST *F = ParseDefinition()) { in HandleDefinition()
1425 if (FunctionAST *F = ParseTopLevelExpr()) { in HandleTopLevelExpression()
/openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/MCJIT/initial/
H A Dtoy.cpp224 class FunctionAST { class
228 FunctionAST(PrototypeAST *proto, ExprAST *body) in FunctionAST() function in FunctionAST
264 FunctionAST *ErrorF(const char *Str) { Error(Str); return 0; } in ErrorF()
578 static FunctionAST *ParseDefinition() { in ParseDefinition()
584 return new FunctionAST(Proto, E); in ParseDefinition()
589 static FunctionAST *ParseTopLevelExpr() { in ParseTopLevelExpr()
593 return new FunctionAST(Proto, E); in ParseTopLevelExpr()
1210 Function *FunctionAST::Codegen() { in Codegen()
1251 if (FunctionAST *F = ParseDefinition()) { in HandleDefinition()
1282 if (FunctionAST *F = ParseTopLevelExpr()) { in HandleTopLevelExpression()
/openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/Chapter5/
H A Dtoy.cpp226 class FunctionAST { class
231 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() function in __anon0dd774980111::FunctionAST
507 static std::unique_ptr<FunctionAST> ParseDefinition() { in ParseDefinition()
514 return std::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseDefinition()
519 static std::unique_ptr<FunctionAST> ParseTopLevelExpr() { in ParseTopLevelExpr()
524 return std::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseTopLevelExpr()
786 Function *FunctionAST::codegen() { in codegen()
/openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/MCJIT/complete/
H A Dtoy.cpp266 class FunctionAST { class
270 FunctionAST(PrototypeAST *proto, ExprAST *body) in FunctionAST() function in FunctionAST
306 FunctionAST *ErrorF(const char *Str) { Error(Str); return 0; } in ErrorF()
620 static FunctionAST *ParseDefinition() { in ParseDefinition()
626 return new FunctionAST(Proto, E); in ParseDefinition()
631 static FunctionAST *ParseTopLevelExpr() { in ParseTopLevelExpr()
635 return new FunctionAST(Proto, E); in ParseTopLevelExpr()
1430 Function *FunctionAST::Codegen() { in Codegen()
1471 if (FunctionAST *F = ParseDefinition()) { in HandleDefinition()
1502 if (FunctionAST *F = ParseTopLevelExpr()) { in HandleTopLevelExpression()
/openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/Chapter6/
H A Dtoy.cpp260 class FunctionAST { class
265 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() function in __anon8253e5990111::FunctionAST
599 static std::unique_ptr<FunctionAST> ParseDefinition() { in ParseDefinition()
606 return std::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseDefinition()
611 static std::unique_ptr<FunctionAST> ParseTopLevelExpr() { in ParseTopLevelExpr()
616 return std::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseTopLevelExpr()
898 Function *FunctionAST::codegen() { in codegen()
/openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/Chapter7/
H A Dtoy.cpp282 class FunctionAST { class
287 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() function in __anonf6d0569a0111::FunctionAST
672 static std::unique_ptr<FunctionAST> ParseDefinition() { in ParseDefinition()
679 return std::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseDefinition()
684 static std::unique_ptr<FunctionAST> ParseTopLevelExpr() { in ParseTopLevelExpr()
689 return std::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseTopLevelExpr()
1059 Function *FunctionAST::codegen() { in codegen()
/openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/
H A Dtoy.cpp277 class FunctionAST { class
282 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() function in __anon348c1f790111::FunctionAST
667 static std::unique_ptr<FunctionAST> ParseDefinition() { in ParseDefinition()
674 return std::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseDefinition()
679 static std::unique_ptr<FunctionAST> ParseTopLevelExpr() { in ParseTopLevelExpr()
684 return std::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseTopLevelExpr()
1053 Function *FunctionAST::codegen() { in codegen()
/openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/Chapter8/
H A Dtoy.cpp282 class FunctionAST { class
287 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() function in __anon6b4cc79b0111::FunctionAST
672 static std::unique_ptr<FunctionAST> ParseDefinition() { in ParseDefinition()
679 return std::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseDefinition()
684 static std::unique_ptr<FunctionAST> ParseTopLevelExpr() { in ParseTopLevelExpr()
689 return std::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseTopLevelExpr()
1057 Function *FunctionAST::codegen() { in codegen()
/openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/
H A Dtoy.cpp277 class FunctionAST { class
282 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() function in __anona908907a0111::FunctionAST
667 static std::unique_ptr<FunctionAST> ParseDefinition() { in ParseDefinition()
674 return std::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseDefinition()
679 static std::unique_ptr<FunctionAST> ParseTopLevelExpr() { in ParseTopLevelExpr()
684 return std::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseTopLevelExpr()
1053 Function *FunctionAST::codegen() { in codegen()
/openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/
H A Dtoy.cpp277 class FunctionAST { class
282 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() function in __anon1d85017b0111::FunctionAST
667 static std::unique_ptr<FunctionAST> ParseDefinition() { in ParseDefinition()
674 return std::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseDefinition()
679 static std::unique_ptr<FunctionAST> ParseTopLevelExpr() { in ParseTopLevelExpr()
684 return std::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseTopLevelExpr()
1053 Function *FunctionAST::codegen() { in codegen()
/openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/Chapter9/
H A Dtoy.cpp386 class FunctionAST { class
391 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() function in __anondfc9389c0211::FunctionAST
787 static std::unique_ptr<FunctionAST> ParseDefinition() { in ParseDefinition()
794 return std::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseDefinition()
799 static std::unique_ptr<FunctionAST> ParseTopLevelExpr() { in ParseTopLevelExpr()
805 return std::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseTopLevelExpr()
1231 Function *FunctionAST::codegen() { in codegen()
/openbsd-src/gnu/llvm/llvm/docs/tutorial/MyFirstLanguageFrontend/
H A DLangImpl02.rst126 /// FunctionAST - This class represents a function definition itself.
127 class FunctionAST {
132 FunctionAST(std::unique_ptr<PrototypeAST> Proto,
603 static std::unique_ptr<FunctionAST> ParseDefinition() {
609 return std::make_unique<FunctionAST>(std::move(Proto), std::move(E));
632 static std::unique_ptr<FunctionAST> ParseTopLevelExpr() {
636 return std::make_unique<FunctionAST>(std::move(Proto), std::move(E));
H A DLangImpl04.rst170 ``FunctionAST::codegen()``), but before it is returned to the client:
467 Function *FunctionAST::codegen() {
483 call to ``TheModule->getFunction()``. In ``FunctionAST::codegen()`` we need to
H A DLangImpl09.rst387 argument allocas in ``FunctionAST::codegen``.
427 ``FunctionAST::CodeGen`` we add some more lines:
H A DLangImpl03.rst326 Function *FunctionAST::codegen() {
406 This code does have a bug, though: If the ``FunctionAST::codegen()`` method
H A DLangImpl07.rst411 Function *FunctionAST::codegen() {
433 for the argument. This method gets invoked by ``FunctionAST::codegen()``
H A DLangImpl06.rst280 Function *FunctionAST::codegen() {