MLLIF
a MLIR-based Language to Language Interoperability Flyover
Loading...
Searching...
No Matches
mllif::cs::CsBridgeGen Class Referencefinal

#include <CsBridgeGen.h>

Inheritance diagram for mllif::cs::CsBridgeGen:
Collaboration diagram for mllif::cs::CsBridgeGen:

Public Member Functions

 CsBridgeGen (const std::string &libname)
 
bool handleAssemblyBegin (MLLIFContext &context, const AssemblyDecl &node, std::ostream &out, std::size_t indent) override
 
bool handleAssemblyEnd (MLLIFContext &context, const AssemblyDecl &node, std::ostream &out, std::size_t indent) override
 
bool handleNamespaceBegin (MLLIFContext &context, const NamespaceDecl &node, std::ostream &out, std::size_t indent) override
 
bool handleNamespaceEnd (MLLIFContext &context, const NamespaceDecl &node, std::ostream &out, std::size_t indent) override
 
bool handleObjectBegin (MLLIFContext &context, const ObjectDecl &node, std::ostream &out, std::size_t indent) override
 
bool handleObjectEnd (MLLIFContext &context, const ObjectDecl &node, std::ostream &out, std::size_t indent) override
 
bool handleFunctionBegin (MLLIFContext &context, const FunctionDecl &node, std::ostream &out, std::size_t indent) override
 
bool handleFunctionEnd (MLLIFContext &context, const FunctionDecl &node, std::ostream &out, std::size_t indent) override
 
bool handleMethodBegin (MLLIFContext &context, const MethodDecl &node, std::ostream &out, std::size_t indent) override
 
bool handleParam (MLLIFContext &context, const ParamDecl &node, std::ostream &out, std::size_t indent) override
 
void writeParamDelimiter (std::ostream &os) override
 
- Public Member Functions inherited from mllif::BridgeGen
virtual ~BridgeGen ()=default
 
 MLLIF_GEN_HANDLER (Assembly, Begin)=0
 
 MLLIF_GEN_HANDLER (Assembly, End)=0
 
 MLLIF_GEN_HANDLER (Namespace, Begin)=0
 
 MLLIF_GEN_HANDLER (Namespace, End)=0
 
 MLLIF_GEN_HANDLER (Object, Begin)=0
 
 MLLIF_GEN_HANDLER (Object, End)=0
 
 MLLIF_GEN_HANDLER (Function, Begin)=0
 
 MLLIF_GEN_HANDLER (Function, End)=0
 
 MLLIF_GEN_HANDLER (Method, Begin)=0
 
 MLLIF_GEN_HANDLER (Method, End)
 
 MLLIF_GEN_HANDLER (Param)=0
 
bool handleDecl (MLLIFContext &context, const std::shared_ptr< Decl > &node, std::ostream &out, std::size_t indent)
 

Public Attributes

std::string LibraryName
 

Detailed Description

Definition at line 22 of file CsBridgeGen.h.

Constructor & Destructor Documentation

◆ CsBridgeGen()

mllif::cs::CsBridgeGen::CsBridgeGen ( const std::string & libname)

Definition at line 29 of file CsBridgeGen.cxx.

Member Function Documentation

◆ handleAssemblyBegin()

bool mllif::cs::CsBridgeGen::handleAssemblyBegin ( MLLIFContext & context,
const AssemblyDecl & node,
std::ostream & out,
std::size_t indent )
override

Definition at line 32 of file CsBridgeGen.cxx.

◆ handleAssemblyEnd()

bool mllif::cs::CsBridgeGen::handleAssemblyEnd ( MLLIFContext & context,
const AssemblyDecl & node,
std::ostream & out,
std::size_t indent )
override

Definition at line 35 of file CsBridgeGen.cxx.

◆ handleFunctionBegin()

bool mllif::cs::CsBridgeGen::handleFunctionBegin ( MLLIFContext & context,
const FunctionDecl & node,
std::ostream & out,
std::size_t indent )
override

Definition at line 132 of file CsBridgeGen.cxx.

Here is the call graph for this function:

◆ handleFunctionEnd()

bool mllif::cs::CsBridgeGen::handleFunctionEnd ( MLLIFContext & context,
const FunctionDecl & node,
std::ostream & out,
std::size_t indent )
override

Definition at line 152 of file CsBridgeGen.cxx.

Here is the call graph for this function:

◆ handleMethodBegin()

bool mllif::cs::CsBridgeGen::handleMethodBegin ( MLLIFContext & context,
const MethodDecl & node,
std::ostream & out,
std::size_t indent )
override

Definition at line 160 of file CsBridgeGen.cxx.

Here is the call graph for this function:

◆ handleNamespaceBegin()

bool mllif::cs::CsBridgeGen::handleNamespaceBegin ( MLLIFContext & context,
const NamespaceDecl & node,
std::ostream & out,
std::size_t indent )
override

Definition at line 38 of file CsBridgeGen.cxx.

Here is the call graph for this function:

◆ handleNamespaceEnd()

bool mllif::cs::CsBridgeGen::handleNamespaceEnd ( MLLIFContext & context,
const NamespaceDecl & node,
std::ostream & out,
std::size_t indent )
override

Definition at line 42 of file CsBridgeGen.cxx.

Here is the call graph for this function:

◆ handleObjectBegin()

bool mllif::cs::CsBridgeGen::handleObjectBegin ( MLLIFContext & context,
const ObjectDecl & node,
std::ostream & out,
std::size_t indent )
override

Definition at line 46 of file CsBridgeGen.cxx.

Here is the call graph for this function:

◆ handleObjectEnd()

bool mllif::cs::CsBridgeGen::handleObjectEnd ( MLLIFContext & context,
const ObjectDecl & node,
std::ostream & out,
std::size_t indent )
override

Definition at line 51 of file CsBridgeGen.cxx.

Here is the call graph for this function:

◆ handleParam()

bool mllif::cs::CsBridgeGen::handleParam ( MLLIFContext & context,
const ParamDecl & node,
std::ostream & out,
std::size_t indent )
override

Definition at line 174 of file CsBridgeGen.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeParamDelimiter()

void mllif::cs::CsBridgeGen::writeParamDelimiter ( std::ostream & os)
overridevirtual

Implements mllif::BridgeGen.

Definition at line 184 of file CsBridgeGen.cxx.

Here is the caller graph for this function:

Member Data Documentation

◆ LibraryName

std::string mllif::cs::CsBridgeGen::LibraryName

Definition at line 24 of file CsBridgeGen.h.


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