Proposal: Move host CPU auto-detection out of the TargetMachine

We’ve seen similar problems, a test passes for one person but not another, because of having different desktop models. Having that stop would be kind of nice.

I guess currently every target must have some generic/default and only a few do the auto-detect thing? Probably don’t want to make it mandatory to support –mcpu=native but refactoring the existing targets that do that seems fine.

–paulr

We don't even have the concept of "native". All production Hexagon compilers are cross-compilers.

-K

Right. Only X86, SystemZ and PPC do anything like this in the backend. I agree this should be opt-in for targets. That would be via implementing code in getHostCPUName().

-Jim