We use JITTargetMachineBuilder::detectHost() in MLIR to create a target machine for the host CPU and noticed that the returned JITTargetMachineBuilder is not properly initialized with the host CPU name and sub-target features. This patch adds that information to the JITTargetMachineBuilder created in JITTargetMachineBuilder::detectHost().
Please, let me know if there is a simple way to add a test for this.
Thanks!
Diego