Changes between Version 18 and Version 19 of DataParallel/VectPragma


Ignore:
Timestamp:
Aug 18, 2011 12:33:23 PM (3 years ago)
Author:
chak
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DataParallel/VectPragma

    v18 v19  
    9292'''TODO:''' 
    9393 * For type constructors identified with this pragma, can we generate an `instance` of the `Scalar` type class automatically (instead of relying on it being in the library)? 
     94 
     95== Cross-module functionality == 
     96 
     97The various `VECTORISE` pragmas can be applied to imported variables and types.  (For variables still needs to be implemented.)  The vectorisation mappings will only be exported if the variable or type to which a pragma is applied is also exported.  In other words, if we have 
     98{{{ 
     99{-# VECTORISE SCALAR type Int #-} 
     100}}} 
     101where `Int` is imported from the standard Prelude and we want clients to treat `Int` as a scalar vectorised type, then `Int` needs to be re-exported.  The re-export, effectively exports the pragma.