Changes in src/SynTree/Statement.h [7f5566b:145f1fc]
- File:
-
- 1 edited
-
src/SynTree/Statement.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Statement.h
r7f5566b r145f1fc 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Sat Jul 25 18:25:37201513 // Update Count : 4411 // Last Modified By : Rob Schluntz 12 // Last Modified On : Tue Jul 14 12:14:54 2015 13 // Update Count : 24 14 14 // 15 15 … … 70 70 }; 71 71 72 class AsmStmt : public Statement {73 public:74 AsmStmt( std::list<Label> labels, bool voltile, ConstantExpr *instruction, std::list<Expression *> input, std::list<Expression *> output, std::list<ConstantExpr *> clobber, std::list<Label> gotolabels );75 virtual ~AsmStmt();76 77 bool get_voltile() { return voltile; }78 void set_voltile( bool newValue ) { voltile = newValue; }79 ConstantExpr *get_instruction() { return instruction; }80 void set_instruction( ConstantExpr *newValue ) { instruction = newValue; }81 std::list<Expression *> &get_output() { return output; }82 void set_output( const std::list<Expression *> &newValue ) { output = newValue; }83 std::list<Expression *> &get_input() { return input; }84 void set_input( const std::list<Expression *> &newValue ) { input = newValue; }85 std::list<ConstantExpr *> &get_clobber() { return clobber; }86 void set_clobber( const std::list<ConstantExpr *> &newValue ) { clobber = newValue; }87 std::list<Label> &get_gotolabels() { return gotolabels; }88 void set_gotolabels( const std::list<Label> &newValue ) { gotolabels = newValue; }89 90 virtual AsmStmt *clone() const { return new AsmStmt( *this ); }91 virtual void accept( Visitor &v ) { v.visit( this ); }92 virtual Statement *acceptMutator( Mutator &m ) { return m.mutate( this ); }93 virtual void print( std::ostream &os, int indent = 0 ) const;94 private:95 bool voltile;96 ConstantExpr *instruction;97 std::list<Expression *> output, input;98 std::list<ConstantExpr *> clobber;99 std::list<Label> gotolabels;100 };101 102 72 class IfStmt : public Statement { 103 73 public: … … 130 100 void set_condition( Expression *newValue ) { condition = newValue; } 131 101 132 std::list<Statement *> & get_branches() { return branches; }102 std::list<Statement *>& get_branches() { return branches; } 133 103 void add_case( CaseStmt * ); 134 104
Note:
See TracChangeset
for help on using the changeset viewer.