private void ApplyRuleForMoveIntLiteral(ref bool appliedRule, Core.InstructionMoveLiteralInt inst) { var destType = TypeResolver.GetDataAccessType(session, funct, inst.destination); var srcType = Core.TypeStruct.Of(session.PrimitiveInt); var inferredDest = TypeInferencer.Try(session, srcType, ref destType); if (inferredDest) { appliedRule = ApplyToDataAccess(inst.destination, destType); } }
private void CheckMoveIntLiteral(List <InitStatus> statusList, Core.InstructionMoveLiteralInt inst) { CheckAndInitDestination(statusList, inst.destination); }
private void CheckMoveIntLiteral(Core.InstructionMoveLiteralInt inst) { var destType = TypeResolver.GetDataAccessType(this.session, this.funct, inst.destination); CheckMove(inst.destination, inst.type, inst.span); }