8 std::shared_ptr<ASTExpr> INIT;
11 std::vector<std::shared_ptr<ASTNode>>
getChildren()
override;
15 llvm::Value *
codegen()
override;
18 std::ostream &
print(std::ostream &out)
const override;
Class for alloc expression.
Definition: ASTAllocExpr.h:7
std::vector< std::shared_ptr< ASTNode > > getChildren() override
Return all of the children for the node.
Definition: ASTAllocExpr.cpp:16
llvm::Value * codegen() override
Perform code generation and return an LLVM value the code.
Definition: CodeGenFunctions.cpp:564
ASTExpr * getInitializer() const
Definition: ASTAllocExpr.h:13
std::ostream & print(std::ostream &out) const override
Definition: ASTAllocExpr.cpp:11
ASTAllocExpr(std::shared_ptr< ASTExpr > INIT)
Definition: ASTAllocExpr.h:12
void accept(ASTVisitor *visitor) override
Visit the children of this node and apply the visitor.
Definition: ASTAllocExpr.cpp:4
Abstract class for all expression subtypes.
Definition: ASTExpr.h:7
Base class for AST visitors.
Definition: ASTVisitor.h:23