claw-project / claw-compiler

CLAW Compiler for Performance Portability
https://claw-project.github.io
BSD 2-Clause "Simplified" License
40 stars 15 forks source link

Enhance configuration to specify how a transformation is triggered. #194

Closed clementval closed 7 years ago

clementval commented 7 years ago

Currently, transformation are triggered by directive or hardcoded when they have to be triggered for each translation unit.

The idea would be to set this information in the configuration file.

<claw version="0.3">
  <global>
  </global>
  <groups>
    <group type="independent" name="internal-xcodeml" trigger="translation_unit" class="cx2x.translator.transformation.utility.XcodeMLWorkaround" />
    <group type="independent" name="parallelize-forward" trigger="directive" class="cx2x.translator.transformation.claw.parallelize.ParallelizeForward" />
  </groups>
</claw>
clementval commented 7 years ago

Implemented by #195