How do I construct a target triple (quadruple?) string when the architecture is
"x86-64"? The hyphen in the architecture is ambiguous with those that separate the
components of the triple.
Looking at Triple.cpp and guessing that Triple::Triple(const Twine &Str)
would be parsing it, it appears getArchName stops short of any
hyphen and parseArch expects "x86_64", with an underscore.
But "llc -march" accepts it with the hyphen and rejects the underscore:
rodney@allegheny:~/proj/m3/llvmtest/hello/AMD64_LINUX$ llc -filetype=asm -march=x86_64 Hello.mb -o Hello_.ms
llc: error: invalid target 'x86_64'.
rodney@allegheny:~/proj/m3/llvmtest/hello/AMD64_LINUX$ llc -filetype=asm -march=x86-64 Hello.mb -o Hello.ms
llc -version also lists "x86-64" as a registered target.
Triple.cpp has a mix of "x86-64" and "x86_64" strings that I have not been
able to make much of.
This is llvm 3.4.2