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

Phased collapse pass: collects applicable collapses, then applies them. More...

#include <sdfg/passes/collapse_pass.h>

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

Public Member Functions

 CollapsePass (std::vector< structured_control_flow::Map * > &maps, size_t target_depth)
 ~CollapsePass () override=default
bool run_pass (builder::StructuredSDFGBuilder &builder, analysis::AnalysisManager &analysis_manager) override
std::string name () 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

Phased collapse pass: collects applicable collapses, then applies them.

Given a set of maps, performs CollapseToDepth on each in two phases:

  1. can_be_applied phase: collects all maps where collapse is applicable
  2. apply phase: applies the collapse to all collected maps

After application, the input vector is updated in-place with the collapsed outer loops.

Constructor & Destructor Documentation

◆ CollapsePass()

sdfg::passes::CollapsePass::CollapsePass ( std::vector< structured_control_flow::Map * > & maps,
size_t target_depth )

◆ ~CollapsePass()

sdfg::passes::CollapsePass::~CollapsePass ( )
overridedefault

Member Function Documentation

◆ name()

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

Implements sdfg::passes::Pass.

◆ run_pass()

bool sdfg::passes::CollapsePass::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: