GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
pt-loop.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 //
3 // Copyright (C) 1996-2021 The Octave Project Developers
4 //
5 // See the file COPYRIGHT.md in the top-level directory of this
6 // distribution or <https://octave.org/copyright/>.
7 //
8 // This file is part of Octave.
9 //
10 // Octave is free software: you can redistribute it and/or modify it
11 // under the terms of the GNU General Public License as published by
12 // the Free Software Foundation, either version 3 of the License, or
13 // (at your option) any later version.
14 //
15 // Octave is distributed in the hope that it will be useful, but
16 // WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU General Public License for more details.
19 //
20 // You should have received a copy of the GNU General Public License
21 // along with Octave; see the file COPYING. If not, see
22 // <https://www.gnu.org/licenses/>.
23 //
24 ////////////////////////////////////////////////////////////////////////
25 
26 #if defined (HAVE_CONFIG_H)
27 # include "config.h"
28 #endif
29 
30 #include "pt-arg-list.h"
31 #include "pt-exp.h"
32 #include "pt-loop.h"
33 #include "pt-stmt.h"
34 
35 namespace octave
36 {
37  // While.
38 
40  {
41  delete m_expr;
42  delete m_list;
43  delete m_lead_comm;
44  delete m_trail_comm;
45 #if defined (HAVE_LLVM)
46  delete m_compiled;
47 #endif
48  }
49 
50  // For.
51 
53  {
54  delete m_lhs;
55  delete m_expr;
56  delete m_maxproc;
57  delete m_list;
58  delete m_lead_comm;
59  delete m_trail_comm;
60 #if defined (HAVE_LLVM)
61  delete m_compiled;
62 #endif
63  }
64 
66  {
67  delete m_lhs;
68  delete m_expr;
69  delete m_list;
70  delete m_lead_comm;
71  delete m_trail_comm;
72  }
73 }
tree_statement_list * m_list
Definition: pt-loop.h:318
tree_expression * m_expr
Definition: pt-loop.h:315
tree_argument_list * m_lhs
Definition: pt-loop.h:312
comment_list * m_lead_comm
Definition: pt-loop.h:257
tree_expression * m_maxproc
Definition: pt-loop.h:251
tree_statement_list * m_list
Definition: pt-loop.h:254
tree_expression * m_expr
Definition: pt-loop.h:247
tree_expression * m_lhs
Definition: pt-loop.h:244
comment_list * m_trail_comm
Definition: pt-loop.h:260
comment_list * m_trail_comm
Definition: pt-loop.h:120
tree_expression * m_expr
Definition: pt-loop.h:111
tree_statement_list * m_list
Definition: pt-loop.h:114
comment_list * m_lead_comm
Definition: pt-loop.h:117