Skip to content

Latest commit

 

History

History
26 lines (14 loc) · 640 Bytes

llvm-passes.md

File metadata and controls

26 lines (14 loc) · 640 Bytes

LLVM Passes

Back{: .button}

Passes

ModulePass

Indicates that the pass can refer to any function bodies, adding and removing functions. No optimizations can be done on their execution as it's behaviour cannot be predicted

runOnModule performs work of the pass, it should return true if the function was changed, false if it was not

CallGraphSCCPass

FunctionPass

This executes on each function, independent of other functions.

LoopPass

This is executed in each loop

Reference