I understand that you are encountering a problem in MATLAB code generation using MinGW 64 compiler built in MATLAB R2017a.
There is a compatibility issue which is not letting MinGW 64 compiler generate the SLRT.TLC code.
Please go through the following link to know supported and compatible compilers:
Also, there is a similar question asked before you can go through: https://www.mathworks.com/matlabcentral/answers/1818330-matlab-r2017a-does-not-recognize-a-visual-studio-2015-redistributable-compiler