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

Promotes the array element a Reduce accumulates into, e.g. More...

#include <sdfg/passes/scalar_promotion_pass.h>

Inheritance diagram for sdfg::passes::ScalarPromotionPass:
[legend]

Public Member Functions

std::string name () override
bool run_pass (builder::StructuredSDFGBuilder &builder, analysis::AnalysisManager &analysis_manager) override
Public Member Functions inherited from sdfg::passes::Pass
 Pass ()=default
 Pass (const Options &options)
virtual ~Pass ()=default
virtual std::vector< OptionSpec > options ()
bool run (builder::SDFGBuilder &builder, bool create_report=false)
bool run (builder::StructuredSDFGBuilder &builder, analysis::AnalysisManager &analysis_manager, bool create_report=false)
virtual bool run_pass (builder::SDFGBuilder &builder)
virtual void invalidates (analysis::AnalysisManager &analysis_manager, bool applied)

Additional Inherited Members

Protected Member Functions inherited from sdfg::passes::Pass
template<class T>
T option (const OptionKey< T > &key, T fallback=T{}) const

Detailed Description

Promotes the array element a Reduce accumulates into, e.g.

c[i] in for k: c[i] += a[i, k], to a scalar: LocalStorage stages the element in a one-element register buffer around the loop, the buffer's copies become plain assignments, and TrivialArrayElimination turns the buffer into the scalar the Reduce then accumulates into.

Member Function Documentation

◆ name()

std::string sdfg::passes::ScalarPromotionPass::name ( )
inlineoverridevirtual

Implements sdfg::passes::Pass.

◆ run_pass()

bool sdfg::passes::ScalarPromotionPass::run_pass ( builder::StructuredSDFGBuilder & builder,
analysis::AnalysisManager & analysis_manager )
overridevirtual

Reimplemented from sdfg::passes::Pass.


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