- Timestamp:
- Nov 21, 2019, 10:52:18 AM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 71d6bd8
- Parents:
- f2d1335 (diff), 665f432 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- src/AST
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Convert.cpp
rf2d1335 r9802f4c 898 898 auto expr = visitBaseExpr( node, 899 899 new AsmExpr( 900 get<Expression>().accept1(node->inout),900 new std::string(node->inout), 901 901 get<Expression>().accept1(node->constraint), 902 902 get<Expression>().accept1(node->operand) … … 2270 2270 new ast::AsmExpr( 2271 2271 old->location, 2272 GET_ACCEPT_1(inout, Expr),2272 old->inout, 2273 2273 GET_ACCEPT_1(constraint, Expr), 2274 2274 GET_ACCEPT_1(operand, Expr) -
src/AST/Expr.hpp
rf2d1335 r9802f4c 583 583 class AsmExpr final : public Expr { 584 584 public: 585 ptr<Expr>inout;585 std::string inout; 586 586 ptr<Expr> constraint; 587 587 ptr<Expr> operand; 588 588 589 AsmExpr( const CodeLocation & loc, const Expr *io, const Expr * con, const Expr * op )589 AsmExpr( const CodeLocation & loc, const std::string & io, const Expr * con, const Expr * op ) 590 590 : Expr( loc ), inout( io ), constraint( con ), operand( op ) {} 591 591 -
src/AST/Pass.impl.hpp
rf2d1335 r9802f4c 1315 1315 maybe_accept( node, &AsmExpr::result ); 1316 1316 } 1317 maybe_accept( node, &AsmExpr::inout );1318 1317 maybe_accept( node, &AsmExpr::constraint ); 1319 1318 maybe_accept( node, &AsmExpr::operand ); -
src/AST/Print.cpp
rf2d1335 r9802f4c 1011 1011 os << "Asm Expression:" << endl; 1012 1012 ++indent; 1013 if ( node->inout ) node->inout->accept( *this );1013 if ( !node->inout.empty() ) os << "[" << node->inout << "] "; 1014 1014 if ( node->constraint ) node->constraint->accept( *this ); 1015 1015 if ( node->operand ) node->operand->accept( *this );
Note:
See TracChangeset
for help on using the changeset viewer.