Пример #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()
Пример #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 = {}
Пример #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 = {}
Пример #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()
Пример #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()
Пример #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()
Пример #7
0
 def __init__(self):
     FunctionPass.__init__(self)
     IRBaseVisitor.__init__(self)
     self.insts_to_remove = []
     self.irbuilder = None
Пример #8
0
 def __init__(self):
     ModulePass.__init__(self)
     IRBaseVisitor.__init__(self)
     self.function_block_mapping = []
     self.current_bb = None