Changes between Version 57 and Version 58 of DataParallel/VectPragma


Ignore:
Timestamp:
Dec 7, 2012 5:47:45 AM (17 months ago)
Author:
chak
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DataParallel/VectPragma

    v57 v58  
    136136indicates that the class `C` should be automatically vectorised, even if it is imported.  This is the default for all classes declared in the current module. 
    137137 
    138 The class `C` must be in scope, but it may be imported.  'PData' and 'PRepr' instances are generally not used for type classes and their dictionary representations. 
     138The class `C` must be in scope, but it may be imported.  'PData' and 'PRepr' instances are generally not used for type classes and their dictionary representations. This pragma is only needed for classes that are declared in non-vectorised modules and if we want to declare class instances in vectorised code. 
    139139 
    140140An example is the handling of `Eq`. 
    141141 
     142''Parallelism:'' The class tycon of `C` is marked as parallel if the class methods include any type constructors marked as parallel. 
     143 
    142144'''TODO:''' 
    143  * We want something like `{-# VECTORISE class C = C' #-}` (but what about the instances?) 
     145 * We want something like `{-# VECTORISE class C = C' #-}` (but what about the instances?) Do we still have a need for that??? 
    144146 
    145147== The VECTORISE SCALAR pragma for class instances ==