]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r356929:
authorDimitry Andric <dim@FreeBSD.org>
Mon, 27 Jan 2020 07:03:57 +0000 (07:03 +0000)
committerDimitry Andric <dim@FreeBSD.org>
Mon, 27 Jan 2020 07:03:57 +0000 (07:03 +0000)
commit7a44bc2f33a5437b90a0a499ba10f4a54837acff
treef4207afc92947ff98c2126dce1c8f39d361e2c80
parent102a19145ca13b6a545af20621b6d149d57a683d
MFC r356929:

Merge commit bc4bc5aa0 from llvm git (by Justin Hibbits):

  Add 8548 CPU definition and attributes

  8548 CPU is GCC's name for the e500v2, so accept this in clang.  The
  e500v2 doesn't support lwsync, so define __NO_LWSYNC__ for this as
  well, as GCC does.

  Differential Revision:  https://reviews.llvm.org/D67787

Merge commit ff0311c4b from llvm git (by Justin Hibbits):

  [PowerPC]: Add powerpcspe target triple subarch component

  Summary:
  This allows the use of '-target powerpcspe-unknown-linux-gnu' or
  'powerpcspe-unknown-freebsd' to be used, instead of '-target
  powerpc-unknown-linux-gnu -mspe'.

  Reviewed By: dim
  Differential Revision: https://reviews.llvm.org/D72014

Merge commit ba91dffaf from llvm git (by Fangrui Song):

  [Driver][PowerPC] Move powerpcspe logic from cc1 to Driver

  Follow-up of D72014. It is more appropriate to use a target feature
  instead of a SubTypeArch to express the difference.

  Reviewed By: #powerpc, jhibbits

  Differential Revision: https://reviews.llvm.org/D72433

commit 36eedfcb3 from llvm git (by Justin Hibbits):

  [PowerPC] Fix powerpcspe subtarget enablement in llvm backend

  Summary:

  As currently written, -target powerpcspe will enable SPE regardless
  of disabling the feature later on in the command line.  Instead,
  change this to just set a default CPU to 'e500' instead of a generic
  CPU.

  As part of this, add FeatureSPE to the e500 definition.

  Reviewed By: MaskRay
  Differential Revision: https://reviews.llvm.org/D72673

These are needed to unbreak the build for powerpcspe.

Requested by: jhibbits
contrib/llvm-project/clang/lib/Basic/Targets/PPC.cpp
contrib/llvm-project/clang/lib/Basic/Targets/PPC.h
contrib/llvm-project/clang/lib/Driver/ToolChains/Arch/PPC.cpp
contrib/llvm-project/llvm/include/llvm/ADT/Triple.h
contrib/llvm-project/llvm/lib/Support/Triple.cpp
contrib/llvm-project/llvm/lib/Target/PowerPC/PPC.td
contrib/llvm-project/llvm/lib/Target/PowerPC/PPCSubtarget.cpp