tipc
A TIP to LLVM compiler
src
frontend
ast
treetypes
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
:
9
ASTInputExpr
() {}
10
void
accept
(
ASTVisitor
*visitor)
override
;
11
llvm::Value *
codegen
()
override
;
12
13
protected
:
14
std::ostream &
print
(std::ostream &out)
const override
;
15
};
ASTExpr.h
ASTExpr
Abstract class for all expression subtypes.
Definition:
ASTExpr.h:7
ASTInputExpr
Class for input expression.
Definition:
ASTInputExpr.h:7
ASTInputExpr::codegen
llvm::Value * codegen() override
Perform code generation and return an LLVM value the code.
Definition:
CodeGenFunctions.cpp:489
ASTInputExpr::print
std::ostream & print(std::ostream &out) const override
Definition:
ASTInputExpr.cpp:9
ASTInputExpr::ASTInputExpr
ASTInputExpr()
Definition:
ASTInputExpr.h:9
ASTInputExpr::accept
void accept(ASTVisitor *visitor) override
Visit the children of this node and apply the visitor.
Definition:
ASTInputExpr.cpp:4
ASTVisitor
Base class for AST visitors.
Definition:
ASTVisitor.h:23
Generated by
1.9.1