Skip to content

Commit

Permalink
Display named regions and function call regions
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-patrignani committed Aug 22, 2024
1 parent eebbc6f commit a8690e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/renderer/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4859,6 +4859,8 @@ function relayoutSDFGBlock(
switch (block.type) {
case SDFGElementType.LoopRegion:
case SDFGElementType.ControlFlowRegion:
case SDFGElementType.NamedRegion:
case SDFGElementType.FunctionCallRegion:
return relayoutStateMachine(
ctx, block as JsonSDFGControlFlowRegion, sdfg, sdfgList,
stateParentList, omitAccessNodes, parent
Expand Down
8 changes: 8 additions & 0 deletions src/renderer/renderer_elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ export enum SDFGElementType {
ControlFlowBlock = 'ControlFlowBlock',
ControlFlowRegion = 'ControlFlowRegion',
LoopRegion = 'LoopRegion',
NamedRegion = 'NamedRegion',
FunctionCallRegion = 'FunctionCallRegion'
}

function draw_summary_symbol(
Expand Down Expand Up @@ -649,6 +651,10 @@ export class ControlFlowRegion extends ControlFlowBlock {

}

export class NamedRegion extends ControlFlowRegion {}

export class FunctionCallRegion extends ControlFlowRegion {}

export class State extends BasicBlock {

public draw(
Expand Down Expand Up @@ -3404,4 +3410,6 @@ export const SDFGElements: { [name: string]: typeof SDFGElement } = {
BreakBlock,
ContinueBlock,
ReturnBlock,
NamedRegion,
FunctionCallRegion
};

0 comments on commit a8690e3

Please sign in to comment.