- Timestamp:
- Nov 12, 2020, 1:29:43 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- b5344a3
- Parents:
- d6ad99e (diff), 8ca26d5 (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
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/AST/Convert.cpp ¶
rd6ad99e r9d264e18 9 9 // Author : Thierry Delisle 10 10 // Created On : Thu May 09 15::37::05 2019 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Wed Dec 11 21:39:32 201913 // Update Count : 3 311 // Last Modified By : Andrew Beach 12 // Last Modified On : Thr Nov 12 10:07:00 2020 13 // Update Count : 34 14 14 // 15 15 … … 187 187 auto init = get<Initializer>().accept1( node->init ); 188 188 decl->init = init; 189 189 190 190 this->node = decl; 191 191 return nullptr; … … 2812 2812 } 2813 2813 deleteAll(translationUnit); 2814 2815 // Load the local static varables into the global store. 2816 unit.global.sizeType = ast::sizeType; 2817 unit.global.dereference = ast::dereferenceOperator; 2818 unit.global.dtorStruct = ast::dtorStruct; 2819 unit.global.dtorDestroy = ast::dtorStructDestroy; 2820 2814 2821 return unit; 2815 2822 } -
TabularUnified src/AST/Pass.impl.hpp ¶
rd6ad99e r9d264e18 423 423 } 424 424 catch( SemanticErrorException &e ) { 425 if (__pass::on Error (visitor.core, *i, 0))425 if (__pass::on_error (visitor.core, *i, 0)) 426 426 errors.append( e ); 427 427 } -
TabularUnified src/AST/Pass.proto.hpp ¶
rd6ad99e r9d264e18 270 270 271 271 template< typename core_t > 272 static bool on Error (core_t &, ptr<Decl> &, long) { return true; }273 274 template< typename core_t > 275 static auto on Error (core_t & core, ptr<Decl> & decl, int) -> decltype(core.onError(decl)) {276 return core.on Error(decl);272 static bool on_error (core_t &, ptr<Decl> &, long) { return true; } 273 274 template< typename core_t > 275 static auto on_error (core_t & core, ptr<Decl> & decl, int) -> decltype(core.on_error(decl)) { 276 return core.on_error(decl); 277 277 } 278 278 -
TabularUnified src/InitTweak/GenInit.cc ¶
rd6ad99e r9d264e18 202 202 } 203 203 // don't need to hoist dimension if it's definitely pure - only need to if there's potential for side effects. 204 // xxx - hoisting has no side effects anyways, so don't skip since we delay resolve 205 // only skip in the most trivial case, which does not require resolve 206 if (dynamic_cast<ConstantExpr *>(arrayType->dimension)) return; 207 // if ( ! Tuples::maybeImpure( arrayType->dimension ) ) return; 204 // xxx - hoisting has no side effects anyways, so don't skip since we delay resolve 205 // still try to detect constant expressions 206 if ( ! Tuples::maybeImpure( arrayType->dimension ) ) return; 208 207 209 208 ObjectDecl * arrayDimension = new ObjectDecl( dimensionName.newName(), storageClasses, LinkageSpec::C, 0, Validate::SizeType->clone(), new SingleInit( arrayType->get_dimension() ) ); -
TabularUnified src/ResolvExpr/Resolver.cc ¶
rd6ad99e r9d264e18 1289 1289 void beginScope() { managedTypes.beginScope(); } 1290 1290 void endScope() { managedTypes.endScope(); } 1291 bool on Error(ast::ptr<ast::Decl> & decl);1291 bool on_error(ast::ptr<ast::Decl> & decl); 1292 1292 }; 1293 1293 // size_t Resolver_new::traceId = Stats::Heap::new_stacktrace_id("Resolver"); … … 2068 2068 2069 2069 // suppress error on autogen functions and mark invalid autogen as deleted. 2070 bool Resolver_new::on Error(ast::ptr<ast::Decl> & decl) {2070 bool Resolver_new::on_error(ast::ptr<ast::Decl> & decl) { 2071 2071 if (auto functionDecl = decl.as<ast::FunctionDecl>()) { 2072 2072 // xxx - can intrinsic gen ever fail? -
TabularUnified src/main.cc ¶
rd6ad99e r9d264e18 341 341 342 342 if( useNewAST) { 343 if (Stats::Counters::enabled) { 344 ast::pass_visitor_stats.avg = Stats::Counters::build<Stats::Counters::AverageCounter<double>>("Average Depth - New"); 345 ast::pass_visitor_stats.max = Stats::Counters::build<Stats::Counters::MaxCounter<double>>("Max depth - New"); 346 } 343 347 auto transUnit = convert( move( translationUnit ) ); 344 348 PASS( "Resolve", ResolvExpr::resolve( transUnit ) );
Note: See TracChangeset
for help on using the changeset viewer.