[llvm] r213743 - AArch64: remove arm64 triple enumerator.

Justin Bogner mail at justinbogner.com
Thu Aug 7 16:59:26 PDT 2014


Tim Northover <tnorthover at apple.com> writes:
> Author: tnorthover
> Date: Wed Jul 23 07:32:47 2014
> New Revision: 213743
>
> URL: http://llvm.org/viewvc/llvm-project?rev=213743&view=rev
> Log:
> AArch64: remove arm64 triple enumerator.

<snip>

> Modified: llvm/trunk/lib/Target/AArch64/TargetInfo/AArch64TargetInfo.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/TargetInfo/AArch64TargetInfo.cpp?rev=213743&r1=213742&r2=213743&view=diff==============================================================================
> --- llvm/trunk/lib/Target/AArch64/TargetInfo/AArch64TargetInfo.cpp (original)
> +++ llvm/trunk/lib/Target/AArch64/TargetInfo/AArch64TargetInfo.cpp Wed Jul 23 07:32:47 2014
> @@ -19,13 +19,16 @@ Target TheARM64beTarget;
>  } // end namespace llvm
>  
>  extern "C" void LLVMInitializeAArch64TargetInfo() {
> -  RegisterTarget<Triple::arm64, /*HasJIT=*/true> X(TheARM64leTarget, "arm64",
> -                                                   "AArch64 (little endian)");
> -  RegisterTarget<Triple::arm64_be, /*HasJIT=*/true> Y(TheARM64beTarget, "arm64_be",
> -                                                      "AArch64 (big endian)");
> +  // Now register the "arm64" name for use with "-march". We don't want it to
> +  // take possession of the Triple::aarch64 tag though.
> +  RegisterTarget<Triple::UnknownArch, /*HasJIT=*/true> X(
> +      TheARM64leTarget, "arm64", "ARM64 (little endian)");
> +  RegisterTarget<Triple::UnknownArch, /*HasJIT=*/true> Y(
> +      TheARM64beTarget, "arm64_be", "ARM64 (big endian)");

Looks like this caused http://llvm.org/bugs/show_bug.cgi?id=20567.
Setting the triple to UnknownArch here means *anything unknown* matches
this for tools like llc. 



More information about the llvm-commits mailing list