lingua-franca 0.10.1
Lingua Franca code generator
Loading...
Searching...
No Matches
org.lflang.generator.c.CEnclaveGenerator Class Reference

This class is in charge of code generating functions and global variables related to the enclaves and environments. More...

Public Member Functions

 CEnclaveGenerator (ReactorInstance main, CEnclavedReactorTransformation ast, String lfModuleName, MessageReporter messageReporter)
String generateDeclarations ()
 Return declarations associated with environments to be inserted into the main C file.
String generateDefinitions (TargetConfig targetConfig)
 Return the definitions associated with environments and enclaves to be inserted into the main C file.
Set< CEnclaveInstancegetEnclaves ()
 Return the set of enclaves in the program.
int numEnclaves ()
 Return the number of enclaves in the program.

Detailed Description

This class is in charge of code generating functions and global variables related to the enclaves and environments.

An environment is the context in which an enclave exists. Each enclave has its own environment where queues, current tag, thread synchronization primitives etc. are stored.

Constructor & Destructor Documentation

◆ CEnclaveGenerator()

org.lflang.generator.c.CEnclaveGenerator.CEnclaveGenerator ( ReactorInstance main,
CEnclavedReactorTransformation ast,
String lfModuleName,
MessageReporter messageReporter )
Parameters
mainThe main reactor instance of the program
astThe AST transformation which has info about the enclave topology
lfModuleName
messageReporter

Member Function Documentation

◆ generateDeclarations()

String org.lflang.generator.c.CEnclaveGenerator.generateDeclarations ( )

Return declarations associated with environments to be inserted into the main C file.

◆ generateDefinitions()

String org.lflang.generator.c.CEnclaveGenerator.generateDefinitions ( TargetConfig targetConfig)

Return the definitions associated with environments and enclaves to be inserted into the main C file.

◆ getEnclaves()

Set< CEnclaveInstance > org.lflang.generator.c.CEnclaveGenerator.getEnclaves ( )

Return the set of enclaves in the program.

◆ numEnclaves()

int org.lflang.generator.c.CEnclaveGenerator.numEnclaves ( )

Return the number of enclaves in the program.


The documentation for this class was generated from the following file:
  • /Users/runner/work/lingua-franca/lingua-franca/core/src/main/java/org/lflang/generator/c/CEnclaveGenerator.java