Exemple #1
0
def FunLocalRegAlloc(fun):
    return ir.FunGenericRewriteBbl(fun, _BblRegAllocOrSpill)
Exemple #2
0
def FunMergeMoveWithSrcDef(fun: ir.Fun) -> int:
    """ """
    return ir.FunGenericRewriteBbl(fun, _BblMergeMoveWithSrcDef)
Exemple #3
0
def FunLoadStoreSimplify(fun: ir.Fun) -> int:
    return ir.FunGenericRewriteBbl(fun, _BblLoadStoreSimplify)
Exemple #4
0
def FunPropagateRegs(fun: ir.Fun) -> int:
    """Relies solely on the ins.operand_def info"""
    return ir.FunGenericRewriteBbl(fun, _BblPropagateRegOperands)
Exemple #5
0
def FunRemoveUselessInstructions(fun: ir.Fun) -> int:
    assert ir.FUN_FLAG.LIVENESS_VALID in fun.flags
    return ir.FunGenericRewriteBbl(fun, _BblRemoveUselessInstructions)