Exemplo n.º 1
0
 def __init__(self):
     ModulePass.__init__(self)
     IRBaseVisitor.__init__(self)
     self.function_block_mapping = []
     self.current_bb = None
     self.function_code = {}
     self.fn_stack = []
     self.emit = EmitJS()
Exemplo n.º 2
0
    def __init__(self):
        FunctionPass.__init__(self)
        IRBaseVisitor.__init__(self)
        self.control_flow_stack = []
        self.root_node = None

        self.cfb_blocks = {}
        self.merged_blocks = {}
Exemplo n.º 3
0
    def __init__(self):
        FunctionPass.__init__(self)
        IRBaseVisitor.__init__(self)
        self.control_flow_stack = []
        self.root_node = None

        self.cfb_blocks = {}
        self.merged_blocks = {}
Exemplo n.º 4
0
    def visit_basicblock(self, node):
        for inst in node.instructions:
            IRBaseVisitor.visit(self, inst)

        for inst in self.insts_to_remove:
            inst.erase_from_parent()

        self.insts_to_remove.clear()
Exemplo n.º 5
0
    def visit_basicblock(self, node):
        for inst in node.instructions:
            IRBaseVisitor.visit(self, inst)

        for inst in self.insts_to_remove:
            inst.erase_from_parent()

        self.insts_to_remove.clear()
Exemplo n.º 6
0
 def __init__(self):
     ModulePass.__init__(self)
     IRBaseVisitor.__init__(self)
     self.function_block_mapping = []
     self.current_bb = None
     self.function_code = {}
     self.fn_stack = []
     self.emit = EmitJS()
Exemplo n.º 7
0
 def __init__(self):
     FunctionPass.__init__(self)
     IRBaseVisitor.__init__(self)
     self.insts_to_remove = []
     self.irbuilder = None
Exemplo n.º 8
0
 def __init__(self):
     ModulePass.__init__(self)
     IRBaseVisitor.__init__(self)
     self.function_block_mapping = []
     self.current_bb = None