Changes in / [d997f8e:a933bcb3]
- Files:
-
- 4 deleted
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified Jenkins/FullBuild ¶
rd997f8e ra933bcb3 161 161 """ 162 162 163 def email_to = " cforall@lists.uwaterloo.ca"163 def email_to = "pabuhr@uwaterloo.ca, rschlunt@uwaterloo.ca, a3moss@uwaterloo.ca, tdelisle@uwaterloo.ca, brice.dobry@huawei.com, ajbeach@edu.uwaterloo.ca" 164 164 165 165 //send email notification -
TabularUnified Jenkinsfile ¶
rd997f8e ra933bcb3 374 374 """ 375 375 376 def email_to = " cforall@lists.uwaterloo.ca"376 def email_to = "pabuhr@uwaterloo.ca, rschlunt@uwaterloo.ca, a3moss@uwaterloo.ca, tdelisle@uwaterloo.ca, brice.dobry@huawei.com, ajbeach@edu.uwaterloo.ca" 377 377 378 378 //send email notification -
TabularUnified src/MakeLibCfa.cc ¶
rd997f8e ra933bcb3 75 75 case CodeGen::OT_POSTFIXASSIGN: 76 76 case CodeGen::OT_INFIXASSIGN: 77 case CodeGen::OT_CTOR:78 case CodeGen::OT_DTOR:79 77 funcDecl->get_statements()->get_kids().push_back( new ReturnStmt( std::list< Label >(), newExpr ) ); 80 78 break; 79 case CodeGen::OT_CTOR: 80 // ctors don't return a value 81 if ( funcDecl->get_functionType()->get_parameters().size() == 1 ) { 82 // intrinsic default constructors should do nothing 83 // delete newExpr; 84 break; 85 } else { 86 assert( funcDecl->get_functionType()->get_parameters().size() == 2 ); 87 // anything else is a single parameter constructor that is effectively a C-style assignment 88 // delete newExpr->get_function(); 89 assert(newExpr->get_args().size()==2); 90 newExpr->set_function( new NameExpr( "?=?" ) ); 91 funcDecl->get_statements()->get_kids().push_back( new ExprStmt( std::list< Label >(), newExpr ) ); 92 } 93 break; 94 case CodeGen::OT_DTOR: 95 // intrinsic destructors should do nothing 96 // delete newExpr; 97 break; 81 98 case CodeGen::OT_CONSTANT: 82 99 case CodeGen::OT_LABELADDRESS: -
TabularUnified src/ResolvExpr/AlternativeFinder.cc ¶
rd997f8e ra933bcb3 627 627 TypeEnvironment resultEnv; 628 628 makeUnifiableVars( funcType, openVars, resultNeed ); 629 resultEnv.add( funcType->get_forall() ); // add all type variables as open variables now so that those not used in the parameter list are still considered open630 629 AltList instantiatedActuals; // filled by instantiate function 631 630 if ( targetType && ! targetType->isVoid() && ! funcType->get_returnVals().empty() ) { -
TabularUnified src/ResolvExpr/CastCost.cc ¶
rd997f8e ra933bcb3 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // CastCost.cc -- 7 // CastCost.cc -- 8 8 // 9 9 // Author : Richard C. Bilson … … 26 26 public: 27 27 CastCost( Type *dest, const SymTab::Indexer &indexer, const TypeEnvironment &env ); 28 28 29 29 virtual void visit( BasicType *basicType ); 30 30 virtual void visit( PointerType *pointerType ); … … 36 36 NamedTypeDecl *namedType; 37 37 if ( env.lookup( destAsTypeInst->get_name(), eqvClass ) ) { 38 if ( eqvClass.type ) { 39 return castCost( src, eqvClass.type, indexer, env ); 40 } else { 41 return Cost::infinity; 42 } 38 return castCost( src, eqvClass.type, indexer, env ); 43 39 } else if ( ( namedType = indexer.lookupType( destAsTypeInst->get_name() ) ) ) { 44 40 TypeDecl *type = dynamic_cast< TypeDecl* >( namedType ); -
TabularUnified src/ResolvExpr/ConversionCost.cc ¶
rd997f8e ra933bcb3 30 30 /// std::cout << "type inst " << destAsTypeInst->get_name(); 31 31 if ( env.lookup( destAsTypeInst->get_name(), eqvClass ) ) { 32 if ( eqvClass.type ) { 33 return conversionCost( src, eqvClass.type, indexer, env ); 34 } else { 35 return Cost::infinity; 36 } 32 return conversionCost( src, eqvClass.type, indexer, env ); 37 33 } else if ( ( namedType = indexer.lookupType( destAsTypeInst->get_name() ) ) ) { 38 34 /// std::cout << " found" << std::endl; -
TabularUnified src/ResolvExpr/Resolver.cc ¶
rd997f8e ra933bcb3 124 124 } // if 125 125 #endif 126 assert f( finder.get_alternatives().size() == 1, "findSingleExpression: must have exactly one alternative at the end.");126 assert( finder.get_alternatives().size() == 1 ); 127 127 Alternative &choice = finder.get_alternatives().front(); 128 128 Expression *newExpr = choice.expr->clone(); … … 397 397 // // cerr << type << endl; 398 398 // // } // for 399 399 400 400 // // O(N^2) checks of d-types with f-types 401 401 // // find the minimum cost -
TabularUnified src/ResolvExpr/Unify.cc ¶
rd997f8e ra933bcb3 344 344 std::cerr << "unifyInexact type 1 is "; 345 345 type1->print( std::cerr ); 346 std::cerr << " 346 std::cerr << "type 2 is "; 347 347 type2->print( std::cerr ); 348 348 std::cerr << std::endl; … … 595 595 TypeExpr *otherParam = dynamic_cast< TypeExpr* >(*jt); 596 596 assertf(otherParam, "Aggregate parameters should be type expressions"); 597 597 598 598 Type* paramTy = param->get_type(); 599 599 Type* otherParamTy = otherParam->get_type(); -
TabularUnified src/SymTab/FixFunction.cc ¶
rd997f8e ra933bcb3 24 24 25 25 DeclarationWithType * FixFunction::mutate(FunctionDecl *functionDecl) { 26 ObjectDecl *pointer = new ObjectDecl( functionDecl->get_name(), functionDecl->get_storageClasses(), functionDecl->get_linkage(), 0, new PointerType( Type::Qualifiers(), functionDecl->get_type() ), 0, functionDecl->get_attributes() );26 ObjectDecl *pointer = new ObjectDecl( functionDecl->get_name(), functionDecl->get_storageClasses(), functionDecl->get_linkage(), 0, new PointerType( Type::Qualifiers(), functionDecl->get_type()->clone() ), 0, functionDecl->get_attributes() ); 27 27 functionDecl->get_attributes().clear(); 28 // can't delete function type because it may contain assertions, but can't transfer ownership without a clone since set_type checks for nullptr29 functionDecl->set_type( functionDecl->get_type()->clone() );30 28 delete functionDecl; 31 29 return pointer; -
TabularUnified src/Tuples/TupleExpansion.cc ¶
rd997f8e ra933bcb3 332 332 TypeInstType * isTtype( Type * type ) { 333 333 if ( TypeInstType * inst = dynamic_cast< TypeInstType * >( type ) ) { 334 if ( inst->get_baseType() && inst->get_baseType()->get_kind() == TypeDecl::Ttype ) {334 if ( inst->get_baseType()->get_kind() == TypeDecl::Ttype ) { 335 335 return inst; 336 336 } -
TabularUnified src/prelude/prelude.cf ¶
rd997f8e ra933bcb3 309 309 // forall( dtype DT ) signed int ?!=?( const volatile void *, const volatile DT * ); 310 310 311 // forall( dtype DT ) signed int ?==?( const volatile DT *, zero_t);312 // forall( dtype DT ) signed int ?==?( zero_t, const volatile DT * );313 // forall( ftype FT ) signed int ?==?( FT *, zero_t);314 // forall( ftype FT ) signed int ?==?( zero_t, FT * );315 // forall( dtype DT ) signed int ?!=?( const volatile DT *, zero_t);316 // forall( dtype DT ) signed int ?!=?( zero_t, const volatile DT * );317 // forall( ftype FT ) signed int ?!=?( FT *, zero_t);318 // forall( ftype FT ) signed int ?!=?( zero_t, FT * );311 // forall( dtype DT ) signed int ?==?( const volatile DT *, forall( dtype DT2 )const DT2 * ); 312 // forall( dtype DT ) signed int ?==?( forall( dtype DT2 )const DT2 *, const volatile DT * ); 313 // forall( ftype FT ) signed int ?==?( FT *, forall( ftype FT2 )FT2 * ); 314 // forall( ftype FT ) signed int ?==?( forall( ftype FT2 )FT2 *, FT * ); 315 // forall( dtype DT ) signed int ?!=?( const volatile DT *, forall( dtype DT2 )const DT2 * ); 316 // forall( dtype DT ) signed int ?!=?( forall( dtype DT2 )const DT2 *, const volatile DT * ); 317 // forall( ftype FT ) signed int ?!=?( FT *, forall( ftype FT2 )FT2 * ); 318 // forall( ftype FT ) signed int ?!=?( forall( ftype FT2 )FT2 *, FT * ); 319 319 320 320 // ------------------------------------------------------------ … … 447 447 const volatile void * ?=?( const volatile void * volatile *, const volatile void * ); 448 448 449 // //forall( dtype DT ) DT * ?=?( DT * *, zero_t);450 // //forall( dtype DT ) DT * ?=?( DT * volatile *, zero_t);451 // forall( dtype DT ) const DT * ?=?( const DT * *, zero_t);452 // forall( dtype DT ) const DT * ?=?( const DT * volatile *, zero_t);453 // //forall( dtype DT ) volatile DT * ?=?( volatile DT * *, zero_t);454 // //forall( dtype DT ) volatile DT * ?=?( volatile DT * volatile *,);455 // forall( dtype DT ) const volatile DT * ?=?( const volatile DT * *, zero_t);456 // forall( dtype DT ) const volatile DT * ?=?( const volatile DT * volatile *, zero_t);457 458 // forall( ftype FT ) FT * ?=?( FT * *, zero_t);459 // forall( ftype FT ) FT * ?=?( FT * volatile *, zero_t);449 //forall( dtype DT ) DT * ?=?( DT * *, forall( dtype DT2 ) const DT2 * ); 450 //forall( dtype DT ) DT * ?=?( DT * volatile *, forall( dtype DT2 ) const DT2 * ); 451 forall( dtype DT ) const DT * ?=?( const DT * *, forall( dtype DT2 ) const DT2 * ); 452 forall( dtype DT ) const DT * ?=?( const DT * volatile *, forall( dtype DT2 ) const DT2 * ); 453 //forall( dtype DT ) volatile DT * ?=?( volatile DT * *, forall( dtype DT2 ) const DT2 * ); 454 //forall( dtype DT ) volatile DT * ?=?( volatile DT * volatile *, forall( dtype DT2 ) const DT2 * ); 455 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * *, forall( dtype DT2 ) const DT2 * ); 456 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * volatile *, forall( dtype DT2 ) const DT2 * ); 457 458 forall( ftype FT ) FT * ?=?( FT * *, forall( ftype FT2 ) FT2 * ); 459 forall( ftype FT ) FT * ?=?( FT * volatile *, forall( ftype FT2 ) FT2 * ); 460 460 461 461 forall( dtype T | sized(T) ) T * ?+=?( T * *, ptrdiff_t ); … … 799 799 void ?{}( const volatile void * *, const volatile void * ); 800 800 801 // //forall( dtype DT ) void ?{}( DT * *, zero_t);802 // //forall( dtype DT ) void ?{}( DT * volatile *, zero_t);803 // forall( dtype DT ) void ?{}( const DT * *, zero_t);804 // //forall( dtype DT ) void ?{}( volatile DT * *, zero_t);805 // //forall( dtype DT ) void ?{}( volatile DT * volatile *, zero_t);806 // forall( dtype DT ) void ?{}( const volatile DT * *, zero_t);807 808 // forall( ftype FT ) void ?{}( FT * *, zero_t);801 //forall( dtype DT ) void ?{}( DT * *, forall( dtype DT2 ) const DT2 * ); 802 //forall( dtype DT ) void ?{}( DT * volatile *, forall( dtype DT2 ) const DT2 * ); 803 forall( dtype DT ) void ?{}( const DT * *, forall( dtype DT2 ) const DT2 * ); 804 //forall( dtype DT ) void ?{}( volatile DT * *, forall( dtype DT2 ) const DT2 * ); 805 //forall( dtype DT ) void ?{}( volatile DT * volatile *, forall( dtype DT2 ) const DT2 * ); 806 forall( dtype DT ) void ?{}( const volatile DT * *, forall( dtype DT2 ) const DT2 * ); 807 808 forall( ftype FT ) void ?{}( FT * *, forall( ftype FT2 ) FT2 * ); 809 809 810 810 // default ctors -
TabularUnified src/tests/test.py ¶
rd997f8e ra933bcb3 253 253 # for each test to run 254 254 try : 255 results = pool.map_async(partial(run_test_worker, generate=generate, dry_run=dry_run, debug=debug), tests , chunksize = 1).get(3600)255 results = pool.map_async(partial(run_test_worker, generate=generate, dry_run=dry_run, debug=debug), tests ).get(3600) 256 256 except KeyboardInterrupt: 257 257 pool.terminate()
Note: See TracChangeset
for help on using the changeset viewer.