Changes between Version 23 and Version 24 of DataParallel/VectPragma


Ignore:
Timestamp:
Oct 2, 2011 4:57:32 AM (3 years ago)
Author:
chak
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DataParallel/VectPragma

    v23 v24  
    6767{-# VECTORISE type T #-} 
    6868}}} 
    69 indicates that the type `T` should be vectorised and embeds no parallel arrays.  This is similar to where the vectoriser automatically decides to vectorise a type, but but no special vectorised representation needs to be generated as the type embeds no arrays. 
     69indicates that the type `T` should be vectorised and embeds no parallel arrays.  This is similar to where the vectoriser automatically decides to vectorise a type, but no special vectorised representation needs to be generated as the type embeds no arrays. 
    7070 
    7171The data type constructor `T` that together with its constructors `Cn` may be used in vectorised code, where `T` and the `Cn` represent themselves in vectorised code. An example is the treatment of 'Bool'.  'Bool' together with 'False' and 'True' may appear in vectorised code and they remain unchanged by vectorisation.  (There is no need for a special representation as the values cannot embed any arrays.) 
     
    7373The type constructor `T` must be in scope, but it may be imported.  'PData' and 'PRepr' instances are automatically generated by the vectoriser. 
    7474 
    75 '''TODO:''' 
     75'''OPEN QUESTION:''' 
    7676 * Do we need to be able to specify that an imported type embedding arrays should be vectorised including the generation of a specialised right-hand side? 
    7777