Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Statement.h

    r7f5566b r145f1fc  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Jul 25 18:25:37 2015
    13 // Update Count     : 44
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Tue Jul 14 12:14:54 2015
     13// Update Count     : 24
    1414//
    1515
     
    7070};
    7171
    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 
    10272class IfStmt : public Statement {
    10373  public:
     
    130100        void set_condition( Expression *newValue ) { condition = newValue; }
    131101
    132         std::list<Statement *> & get_branches() { return branches; }
     102        std::list<Statement *>& get_branches() { return branches; }
    133103        void add_case( CaseStmt * );
    134104
Note: See TracChangeset for help on using the changeset viewer.