]> granicus.if.org Git - clang/commitdiff
[X86] Separate PentiumPro and i686. They aren't aliases in the backend.
authorCraig Topper <craig.topper@intel.com>
Wed, 20 Mar 2019 07:31:18 +0000 (07:31 +0000)
committerCraig Topper <craig.topper@intel.com>
Wed, 20 Mar 2019 07:31:18 +0000 (07:31 +0000)
PentiumPro has HasNOPL set in the backend. i686 does not.

Despite having a function that looks like it canonicalizes alias names. It
doesn't seem to be called. So I don't think this is a functional change. But its
good to be consistent between the backend and frontend.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@356537 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/X86Target.def
lib/Basic/Targets/X86.cpp

index 5776f6484c9558851ed19b1063739787ac770702..4d1d921cb58dd062fd26372b1f851781fcd49e69 100644 (file)
@@ -66,7 +66,7 @@ PROC(PentiumMMX, "pentium-mmx", PROC_32_BIT)
 /// i686-generation processors, P6 / Pentium M microarchitecture based.
 //@{
 PROC(PentiumPro, "pentiumpro", PROC_32_BIT)
-PROC_ALIAS(PentiumPro, "i686")
+PROC(i686, "i686", PROC_32_BIT)
 PROC(Pentium2, "pentium2", PROC_32_BIT)
 PROC(Pentium3, "pentium3", PROC_32_BIT)
 PROC_ALIAS(Pentium3, "pentium3m")
index 400589fa52feac1573c742fb4e7940a6aab9da2e..52f809ccdd73bd19e62f4f3bdbc6b772c8f1376a 100644 (file)
@@ -122,6 +122,7 @@ bool X86TargetInfo::initFeatureMap(
   case CK_i586:
   case CK_Pentium:
   case CK_PentiumPro:
+  case CK_i686:
   case CK_Lakemont:
     break;
 
@@ -926,6 +927,7 @@ void X86TargetInfo::getTargetDefines(const LangOptions &Opts,
     Builder.defineMacro("__tune_pentium2__");
     LLVM_FALLTHROUGH;
   case CK_PentiumPro:
+  case CK_i686:
     defineCPUMacros(Builder, "i686");
     defineCPUMacros(Builder, "pentiumpro");
     break;