Updated names of passes
This commit is contained in:
parent
9571aefbe0
commit
e02cd0a977
4 changed files with 25 additions and 25 deletions
|
|
@ -897,10 +897,10 @@ from llvm.ee import ExecutionEngine, TargetData
|
|||
from llvm.passes import FunctionPassManager
|
||||
|
||||
from llvm.core import FCMP_ULT, FCMP_ONE
|
||||
from llvm.passes import (PASS_INSTRUCTION_COMBINING,
|
||||
from llvm.passes import (PASS_INSTCOMBINE,
|
||||
PASS_REASSOCIATE,
|
||||
PASS_GVN,
|
||||
PASS_CFG_SIMPLIFICATION)
|
||||
PASS_SIMPLIFYCFG)
|
||||
|
||||
################################################################################
|
||||
## Globals
|
||||
|
|
@ -1540,13 +1540,13 @@ def main():
|
|||
# target lays out data structures.
|
||||
g_llvm_pass_manager.add(g_llvm_executor.target_data)
|
||||
# Do simple "peephole" optimizations and bit-twiddling optzns.
|
||||
g_llvm_pass_manager.add(PASS_INSTRUCTION_COMBINING)
|
||||
g_llvm_pass_manager.add(PASS_INSTCOMBINE)
|
||||
# Reassociate expressions.
|
||||
g_llvm_pass_manager.add(PASS_REASSOCIATE)
|
||||
# Eliminate Common SubExpressions.
|
||||
g_llvm_pass_manager.add(PASS_GVN)
|
||||
# Simplify the control flow graph (deleting unreachable blocks, etc).
|
||||
g_llvm_pass_manager.add(PASS_CFG_SIMPLIFICATION)
|
||||
g_llvm_pass_manager.add(PASS_SIMPLIFYCFG)
|
||||
|
||||
g_llvm_pass_manager.initialize()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue