tipc
A TIP to LLVM compiler
|
Class for a null expression. More...
#include <ASTNullExpr.h>
Public Member Functions | |
ASTNullExpr () | |
void | accept (ASTVisitor *visitor) override |
Visit the children of this node and apply the visitor. More... | |
llvm::Value * | codegen () override |
Perform code generation and return an LLVM value the code. More... | |
![]() | |
~ASTExpr ()=default | |
![]() | |
virtual | ~ASTNode ()=default |
virtual std::vector< std::shared_ptr< ASTNode > > | getChildren () |
Return all of the children for the node. More... | |
void | setLocation (int l, int c) |
int | getLine () |
int | getColumn () |
Protected Member Functions | |
std::ostream & | print (std::ostream &out) const override |
Class for a null expression.
|
inline |
|
overridevirtual |
Visit the children of this node and apply the visitor.
This virtual function is overridden by each ASTNode subtype in order to visit each of its child nodes, by calling their accept methods. The visitor parameter defines the operations that are applied to each node that is visited; a subtype of ASTVisitor defines those operations.
visitor | The subtype of ASTVisitor that carries out per-ASTNode work. |
Implements ASTNode.
|
overridevirtual |
Perform code generation and return an LLVM value the code.
This virtual function is overridden by each ASTNode subtype in order to generate the executable code. This function does not use the visitor due to the fact that a high-degree of control on the ordering of the nodes is required.
Implements ASTNode.
|
overrideprotectedvirtual |
Implements ASTNode.