FunctionPassManager
@available(*, deprecated, message: "Use the PassPipeliner instead")
public class FunctionPassManager
A FunctionPassManager
is an object that collects a sequence of passes
which run over a particular IR construct, and runs each of them in sequence
over each such construct.
-
Creates a
FunctionPassManager
bound to the given module’s IR.Declaration
Swift
public init(module: Module)
-
Adds the given passes to the pass manager.
Declaration
Swift
public func add(_ passes: Pass...)
Parameters
passes
A list of function passes to add to the pass manager’s list of passes to run.
-
Runs all listed functions in the pass manager on the given function.
Declaration
Swift
public func run(on function: Function)
Parameters
function
The function to run listed passes on.