drawCFG: Visualize the Relationships between Blocks in a Function

drawCFGR Documentation

Visualize the Relationships between Blocks in a Function

Usage

getBlockGraph(x, cleanNames = cleanLoopNames, ...)
drawCFG(fun, blocks = getBlocks(fun), ids = names(blocks), x = 2, y = -seq(along = ids), text = ids, range = c(-1, 1))

Arguments

fun

the Function instance

blocks

the list of BasicBlocks of the Function

ids

the names of the BasicBlocks

x

the middle position of the canvas/figure

y

unused

text

the text to display for each block

range

a numeric vector of length 2 giving the extremes for the sub-blocks

cleaNames

a function to compute the name of of the BasicBlock. It is called with the name of the block, not the BasicBlock

...

additional arguments for methods, currently ignored

Value

a character vector containing the LaTeX code to display the blocks.

Author(s)

DTL


duncantl/Rllvm documentation built on April 23, 2024, 6:14 p.m.