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()
def __init__(self): FunctionPass.__init__(self) IRBaseVisitor.__init__(self) self.control_flow_stack = [] self.root_node = None self.cfb_blocks = {} self.merged_blocks = {}
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()
def __init__(self): FunctionPass.__init__(self) IRBaseVisitor.__init__(self) self.insts_to_remove = [] self.irbuilder = None
def __init__(self): ModulePass.__init__(self) IRBaseVisitor.__init__(self) self.function_block_mapping = [] self.current_bb = None