getLoops: Get loops and associate BasicBlocks in a Function

getLoopsR Documentation

Get loops and associate BasicBlocks in a Function

Description

getLoops is a series of methods that hides the details of getting the LLVM Loop objects within the body of a Function-class.

Usage

getLoops(x, ...)
getLoopFor(x, block)
getLoopInfo(x, ...)

Arguments

x

for getLoops, a Function, DominatorTree or LoopInfo object from which we get the individual loops.

block

the BasicBlock-class for which we want to get the associated Loop-class

...

additional parameters for methods

Value

A list of Loop-class objects.

Author(s)

DTL

Examples

f = system.file("IR/loop.ir", package = "Rllvm")
m = parseIR(f)
getLoops(m$twoLoops)

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