tipc
A TIP to LLVM compiler
ASTInputExpr.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "ASTExpr.h"
4 
7 class ASTInputExpr : public ASTExpr {
8 public:
10  void accept(ASTVisitor *visitor) override;
11  llvm::Value *codegen() override;
12 
13 protected:
14  std::ostream &print(std::ostream &out) const override;
15 };
Abstract class for all expression subtypes.
Definition: ASTExpr.h:7
Class for input expression.
Definition: ASTInputExpr.h:7
llvm::Value * codegen() override
Perform code generation and return an LLVM value the code.
Definition: CodeGenFunctions.cpp:489
std::ostream & print(std::ostream &out) const override
Definition: ASTInputExpr.cpp:9
ASTInputExpr()
Definition: ASTInputExpr.h:9
void accept(ASTVisitor *visitor) override
Visit the children of this node and apply the visitor.
Definition: ASTInputExpr.cpp:4
Base class for AST visitors.
Definition: ASTVisitor.h:23