docc 0.8.3 (0d44999b)
C++ API Reference
Loading...
Searching...
No Matches
sdfg::transformations::VectorizeTransform Class Reference

VectorizeTransform transformation for StructuredLoop nodes. More...

#include <sdfg/transformations/vectorize_transform.h>

Inheritance diagram for sdfg::transformations::VectorizeTransform:
[legend]

Public Member Functions

 VectorizeTransform (structured_control_flow::StructuredLoop &loop)
 Construct a VectorizeTransform transformation.
virtual std::string name () const override
 Get the name of this transformation.
virtual bool can_be_applied (builder::StructuredSDFGBuilder &builder, analysis::AnalysisManager &analysis_manager) override
 Check if this transformation can be applied.
virtual void apply (builder::StructuredSDFGBuilder &builder, analysis::AnalysisManager &analysis_manager) override
 Apply the VectorizeTransform transformation.
virtual void to_json (nlohmann::json &j) const override
 Serialize this transformation to JSON.
Public Member Functions inherited from sdfg::transformations::Transformation
virtual ~Transformation ()=default
virtual void set_report (PassReportConsumer *report)
 Set the report consumer for transformation feedback.
virtual bool try_apply (builder::StructuredSDFGBuilder &builder, analysis::AnalysisManager &analysis_manager)
 Attempt to apply the transformation if possible.

Static Public Member Functions

static VectorizeTransform from_json (builder::StructuredSDFGBuilder &builder, const nlohmann::json &j)
 Deserialize a VectorizeTransform transformation from JSON.

Additional Inherited Members

Protected Attributes inherited from sdfg::transformations::Transformation
PassReportConsumer * report_ = nullptr

Detailed Description

VectorizeTransform transformation for StructuredLoop nodes.

This transformation changes the schedule type of a StructuredLoop from sequential to vectorized execution (Vectorize). This enables the loop iterations to be executed in a vectorized manner, potentially improving performance on processors.

Note
Only applicable to StructuredLoops with sequential schedule type

Constructor & Destructor Documentation

◆ VectorizeTransform()

sdfg::transformations::VectorizeTransform::VectorizeTransform ( structured_control_flow::StructuredLoop & loop)

Construct a VectorizeTransform transformation.

Parameters
loopThe loop to be vectorized

Member Function Documentation

◆ apply()

virtual void sdfg::transformations::VectorizeTransform::apply ( builder::StructuredSDFGBuilder & builder,
analysis::AnalysisManager & analysis_manager )
overridevirtual

Apply the VectorizeTransform transformation.

Parameters
builderThe SDFG builder
analysis_managerThe analysis manager

Implements sdfg::transformations::Transformation.

◆ can_be_applied()

virtual bool sdfg::transformations::VectorizeTransform::can_be_applied ( builder::StructuredSDFGBuilder & builder,
analysis::AnalysisManager & analysis_manager )
overridevirtual

Check if this transformation can be applied.

Parameters
builderThe SDFG builder
analysis_managerThe analysis manager
Returns
true if the map is sequential

Implements sdfg::transformations::Transformation.

◆ from_json()

VectorizeTransform sdfg::transformations::VectorizeTransform::from_json ( builder::StructuredSDFGBuilder & builder,
const nlohmann::json & j )
static

Deserialize a VectorizeTransform transformation from JSON.

Parameters
builderThe SDFG builder
jJSON description of the transformation
Returns
The deserialized transformation

◆ name()

virtual std::string sdfg::transformations::VectorizeTransform::name ( ) const
overridevirtual

Get the name of this transformation.

Returns
"VectorizeTransform"

Implements sdfg::transformations::Transformation.

◆ to_json()

virtual void sdfg::transformations::VectorizeTransform::to_json ( nlohmann::json & j) const
overridevirtual

Serialize this transformation to JSON.

Parameters
jJSON object to populate

Implements sdfg::transformations::Transformation.


The documentation for this class was generated from the following file: