llc uses a more restrictive set of cpu march, whereas clang sometimes support nicer for the user ones that then are mapped onto the llc. An example of this is:
-mcpu=power9 which is valid for clang, but llc expects pwr9 and this is what clang maps it to internally.
Some programming languages like Julia use the llc targets and not the clang ones.
So we could in archspec either map clang targets to llc or add llc as a separate compiler.
llcuses a more restrictive set of cpu march, whereasclangsometimes support nicer for the user ones that then are mapped onto thellc. An example of this is:-mcpu=power9which is valid for clang, but llc expectspwr9and this is what clang maps it to internally.Some programming languages like Julia use the
llctargets and not theclangones.So we could in archspec either map clang targets to llc or add llc as a separate compiler.