Home
last modified time | relevance | path

Searched refs:ExprAST (Results 1 – 13 of 13) sorted by relevance

/external/llvm/examples/Kaleidoscope/Chapter2/
Dtoy.cpp79 class ExprAST { class
81 virtual ~ExprAST() {} in ~ExprAST()
85 class NumberExprAST : public ExprAST {
92 class VariableExprAST : public ExprAST {
99 class BinaryExprAST : public ExprAST {
101 ExprAST *LHS, *RHS;
103 BinaryExprAST(char op, ExprAST *lhs, ExprAST *rhs) in BinaryExprAST()
108 class CallExprAST : public ExprAST {
110 std::vector<ExprAST*> Args;
112 CallExprAST(const std::string &callee, std::vector<ExprAST*> &args) in CallExprAST()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter5/
Dtoy.cpp100 class ExprAST { class
102 virtual ~ExprAST() {} in ~ExprAST()
107 class NumberExprAST : public ExprAST {
115 class VariableExprAST : public ExprAST {
123 class BinaryExprAST : public ExprAST {
125 ExprAST *LHS, *RHS;
127 BinaryExprAST(char op, ExprAST *lhs, ExprAST *rhs) in BinaryExprAST()
133 class CallExprAST : public ExprAST {
135 std::vector<ExprAST*> Args;
137 CallExprAST(const std::string &callee, std::vector<ExprAST*> &args) in CallExprAST()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter6/
Dtoy.cpp105 class ExprAST { class
107 virtual ~ExprAST() {} in ~ExprAST()
112 class NumberExprAST : public ExprAST {
120 class VariableExprAST : public ExprAST {
128 class UnaryExprAST : public ExprAST {
130 ExprAST *Operand;
132 UnaryExprAST(char opcode, ExprAST *operand) in UnaryExprAST()
138 class BinaryExprAST : public ExprAST {
140 ExprAST *LHS, *RHS;
142 BinaryExprAST(char op, ExprAST *lhs, ExprAST *rhs) in BinaryExprAST()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter7/
Dtoy.cpp109 class ExprAST { class
111 virtual ~ExprAST() {} in ~ExprAST()
116 class NumberExprAST : public ExprAST {
124 class VariableExprAST : public ExprAST {
133 class UnaryExprAST : public ExprAST {
135 ExprAST *Operand;
137 UnaryExprAST(char opcode, ExprAST *operand) in UnaryExprAST()
143 class BinaryExprAST : public ExprAST {
145 ExprAST *LHS, *RHS;
147 BinaryExprAST(char op, ExprAST *lhs, ExprAST *rhs) in BinaryExprAST()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter3/
Dtoy.cpp84 class ExprAST { class
86 virtual ~ExprAST() {} in ~ExprAST()
91 class NumberExprAST : public ExprAST {
99 class VariableExprAST : public ExprAST {
107 class BinaryExprAST : public ExprAST {
109 ExprAST *LHS, *RHS;
111 BinaryExprAST(char op, ExprAST *lhs, ExprAST *rhs) in BinaryExprAST()
117 class CallExprAST : public ExprAST {
119 std::vector<ExprAST*> Args;
121 CallExprAST(const std::string &callee, std::vector<ExprAST*> &args) in CallExprAST()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter4/
Dtoy.cpp91 class ExprAST { class
93 virtual ~ExprAST() {} in ~ExprAST()
98 class NumberExprAST : public ExprAST {
106 class VariableExprAST : public ExprAST {
114 class BinaryExprAST : public ExprAST {
116 ExprAST *LHS, *RHS;
118 BinaryExprAST(char op, ExprAST *lhs, ExprAST *rhs) in BinaryExprAST()
124 class CallExprAST : public ExprAST {
126 std::vector<ExprAST*> Args;
128 CallExprAST(const std::string &callee, std::vector<ExprAST*> &args) in CallExprAST()
[all …]
/external/llvm/docs/tutorial/
DLangImpl2.rst38 /// ExprAST - Base class for all expression nodes.
39 class ExprAST {
41 virtual ~ExprAST() {}
45 class NumberExprAST : public ExprAST {
51 The code above shows the definition of the base ExprAST class and one
66 class VariableExprAST : public ExprAST {
73 class BinaryExprAST : public ExprAST {
75 ExprAST *LHS, *RHS;
77 BinaryExprAST(char op, ExprAST *lhs, ExprAST *rhs)
82 class CallExprAST : public ExprAST {
[all …]
DLangImpl5.rst92 class IfExprAST : public ExprAST {
93 ExprAST *Cond, *Then, *Else;
95 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else)
112 static ExprAST *ParseIfExpr() {
116 ExprAST *Cond = ParseExpression();
123 ExprAST *Then = ParseExpression();
131 ExprAST *Else = ParseExpression();
141 static ExprAST *ParsePrimary() {
465 class ForExprAST : public ExprAST {
467 ExprAST *Start, *End, *Step, *Body;
[all …]
DLangImpl6.rst306 class UnaryExprAST : public ExprAST {
308 ExprAST *Operand;
310 UnaryExprAST(char opcode, ExprAST *operand)
325 static ExprAST *ParseUnary() {
333 if (ExprAST *Operand = ParseUnary())
353 static ExprAST *ParseBinOpRHS(int ExprPrec, ExprAST *LHS) {
356 ExprAST *RHS = ParseUnary();
363 static ExprAST *ParseExpression() {
364 ExprAST *LHS = ParseUnary();
850 /// ExprAST - Base class for all expression nodes.
[all …]
DLangImpl7.rst665 class VarExprAST : public ExprAST {
666 std::vector<std::pair<std::string, ExprAST*> > VarNames;
667 ExprAST *Body;
669 VarExprAST(const std::vector<std::pair<std::string, ExprAST*> > &varnames,
670 ExprAST *body)
693 static ExprAST *ParsePrimary() {
711 static ExprAST *ParseVarExpr() {
714 std::vector<std::pair<std::string, ExprAST*> > VarNames;
730 ExprAST *Init = 0;
758 ExprAST *Body = ParseExpression();
[all …]
DLangImpl3.rst34 /// ExprAST - Base class for all expression nodes.
35 class ExprAST {
37 virtual ~ExprAST() {}
42 class NumberExprAST : public ExprAST {
62 Note that instead of adding virtual methods to the ExprAST class
677 /// ExprAST - Base class for all expression nodes.
678 class ExprAST {
680 virtual ~ExprAST() {}
685 class NumberExprAST : public ExprAST {
693 class VariableExprAST : public ExprAST {
[all …]
DLangImpl4.rst532 /// ExprAST - Base class for all expression nodes.
533 class ExprAST {
535 virtual ~ExprAST() {}
540 class NumberExprAST : public ExprAST {
548 class VariableExprAST : public ExprAST {
556 class BinaryExprAST : public ExprAST {
558 ExprAST *LHS, *RHS;
560 BinaryExprAST(char op, ExprAST *lhs, ExprAST *rhs)
566 class CallExprAST : public ExprAST {
568 std::vector<ExprAST*> Args;
[all …]
DOCamlLangImpl2.rst44 The code above shows the definition of the base ExprAST class and one