def __init__(self, typingctx, targetctx, args, test_ir): self.state = compiler.StateDict() self.state.typingctx = typingctx self.state.targetctx = targetctx self.state.args = args self.state.func_ir = test_ir self.state.typemap = None self.state.return_type = None self.state.calltypes = None
def __init__(self, test_ir, args): self.state = compiler.StateDict() self.state.typingctx = typing.Context() self.state.targetctx = cpu.CPUContext(self.state.typingctx) self.state.func_ir = test_ir self.state.func_id = test_ir.func_id self.state.args = args self.state.return_type = None self.state.locals = dict() self.state.status = None self.state.lifted = dict() self.state.lifted_from = None self.state.typingctx.refresh() self.state.targetctx.refresh()