ANTAREX API

Clava API

LARA API

LARA Common Language API

(.js)
laraImport("antarex.margot.config.MargotConfig");

(.lara)
import antarex.margot.config.MargotConfig;

MargotConfig

Constructor

MargotConfig

new MargotConfig()

This class holds the data needed to generate an XML configuration file for the autotuner.


Instance Members

addBlock

addBlock(block)

Adds the provided block to the list of blocks.

Parameters

block: MargotBlock - the block to add

build

build([filePath])

Generates the XML code and writes it to the file, if a file path is provided.

Parameters

filePath: string - the path where the XML file will be generated (optional)

newBlock

newBlock(blockName)

Builds a block, adds it to the list of blocks, and returns it.

Parameters

blockName: string - the name of the block to add

Returns

MargotBlock - the created block