Analytical computation of Ehrhart polynomials and its application in compile-time generated cache hints