[llvm] r206211 - [ARM64][MC] Set the default CPU to cyclone when initilizating the MC layer.

Eric Christopher echristo at gmail.com
Mon Apr 14 14:42:56 PDT 2014


Uh, what?

How about taking the same code from the ARM or X86 backends? Or something else?

-eric

On Mon, Apr 14, 2014 at 2:25 PM, Quentin Colombet <qcolombet at apple.com> wrote:
> Author: qcolombet
> Date: Mon Apr 14 16:25:53 2014
> New Revision: 206211
>
> URL: http://llvm.org/viewvc/llvm-project?rev=206211&view=rev
> Log:
> [ARM64][MC] Set the default CPU to cyclone when initilizating the MC layer.
> This matches that ARM64Subtarget does for now.
>
> This is related to <rdar://problem/16573920>
>
> Modified:
>     llvm/trunk/lib/Target/ARM64/MCTargetDesc/ARM64MCTargetDesc.cpp
>
> Modified: llvm/trunk/lib/Target/ARM64/MCTargetDesc/ARM64MCTargetDesc.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM64/MCTargetDesc/ARM64MCTargetDesc.cpp?rev=206211&r1=206210&r2=206211&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Target/ARM64/MCTargetDesc/ARM64MCTargetDesc.cpp (original)
> +++ llvm/trunk/lib/Target/ARM64/MCTargetDesc/ARM64MCTargetDesc.cpp Mon Apr 14 16:25:53 2014
> @@ -43,6 +43,12 @@ static MCInstrInfo *createARM64MCInstrIn
>  static MCSubtargetInfo *createARM64MCSubtargetInfo(StringRef TT, StringRef CPU,
>                                                     StringRef FS) {
>    MCSubtargetInfo *X = new MCSubtargetInfo();
> +
> +  // FIXME: Make this darwin-only.
> +  if (CPU.empty())
> +    // We default to Cyclone for now, on Darwin.
> +    CPU = "cyclone";
> +
>    InitARM64MCSubtargetInfo(X, TT, CPU, FS);
>    return X;
>  }
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits



More information about the llvm-commits mailing list