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

Generified version to map LibraryNodes for now. More...

#include <sdfg/passes/targets/target_mapping_pass.h>

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

Public Member Functions

 TargetMappingVisitor (builder::StructuredSDFGBuilder &builder, analysis::AnalysisManager &analysis_manager, const std::vector< std::shared_ptr< plugins::TargetMapper > > &target_mappers)
bool accept (structured_control_flow::Block &node) override
Public Member Functions inherited from sdfg::visitor::NonStoppingStructuredSDFGVisitor
 NonStoppingStructuredSDFGVisitor (builder::StructuredSDFGBuilder &builder, analysis::AnalysisManager &analysis_manager)
bool visit () override
Public Member Functions inherited from sdfg::visitor::StructuredSDFGVisitor
 StructuredSDFGVisitor (builder::StructuredSDFGBuilder &builder, analysis::AnalysisManager &analysis_manager)
virtual ~StructuredSDFGVisitor ()=default
virtual bool accept (structured_control_flow::AssignmentBlock &node)
virtual bool accept (structured_control_flow::Sequence &node)
virtual bool accept (structured_control_flow::Return &node)
virtual bool accept (structured_control_flow::IfElse &node)
virtual bool accept (structured_control_flow::For &node)
virtual bool accept (structured_control_flow::While &node)
virtual bool accept (structured_control_flow::Continue &node)
virtual bool accept (structured_control_flow::Break &node)
virtual bool accept (structured_control_flow::Map &node)
virtual bool accept (structured_control_flow::Reduce &node)

Protected Attributes

const std::vector< std::shared_ptr< plugins::TargetMapper > > & target_mappers_
Protected Attributes inherited from sdfg::visitor::StructuredSDFGVisitor
builder::StructuredSDFGBuilder & builder_
analysis::AnalysisManager & analysis_manager_

Additional Inherited Members

Protected Member Functions inherited from sdfg::visitor::NonStoppingStructuredSDFGVisitor
bool visit_internal (structured_control_flow::Sequence &parent) override

Detailed Description

Generified version to map LibraryNodes for now.

  • We start out just mapping the implementation type. But it should be ready to also do memory-offloading expansion at the same time
  • Goal is to extend the TargetMapper interface with more functions to also map other elements that are commonly mapped.

Take the boilerplate out of mapping common elements of library nodes and prepare for the list of mappers to become dynamic and plugin-based. For now its used statically

Constructor & Destructor Documentation

◆ TargetMappingVisitor()

sdfg::passes::TargetMappingVisitor::TargetMappingVisitor ( builder::StructuredSDFGBuilder & builder,
analysis::AnalysisManager & analysis_manager,
const std::vector< std::shared_ptr< plugins::TargetMapper > > & target_mappers )

Member Function Documentation

◆ accept()

bool sdfg::passes::TargetMappingVisitor::accept ( structured_control_flow::Block & node)
overridevirtual

Member Data Documentation

◆ target_mappers_

const std::vector<std::shared_ptr<plugins::TargetMapper> >& sdfg::passes::TargetMappingVisitor::target_mappers_
protected

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