[clang] 2184fcf - [AArch64] Fix AArch64TargetParser.def includes for standalone builds.

Pavel Iliin via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 28 09:39:16 PST 2022


Author: Pavel Iliin
Date: 2022-12-28T17:38:35Z
New Revision: 2184fcf17ee00a939b3bde98a28ef586c67d6b1a

URL: https://github.com/llvm/llvm-project/commit/2184fcf17ee00a939b3bde98a28ef586c67d6b1a
DIFF: https://github.com/llvm/llvm-project/commit/2184fcf17ee00a939b3bde98a28ef586c67d6b1a.diff

LOG: [AArch64] Fix AArch64TargetParser.def includes for standalone builds.

Added: 
    

Modified: 
    clang/lib/Basic/Targets/AArch64.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Basic/Targets/AArch64.cpp b/clang/lib/Basic/Targets/AArch64.cpp
index dfbff695b09ad..d3c56e3a3ea6e 100644
--- a/clang/lib/Basic/Targets/AArch64.cpp
+++ b/clang/lib/Basic/Targets/AArch64.cpp
@@ -647,7 +647,7 @@ unsigned AArch64TargetInfo::multiVersionSortPriority(StringRef Name) const {
 #define AARCH64_ARCH_EXT_NAME(NAME, ID, FEATURE, NEGFEATURE, FMV_ID,           \
                               DEP_FEATURES, FMV_PRIORITY)                      \
   .Case(NAME, FMV_PRIORITY)
-#include "../../../../llvm/include/llvm/TargetParser/AArch64TargetParser.def"
+#include "llvm/TargetParser/AArch64TargetParser.def"
       ;
   assert((Name == "none" || Priority < multiVersionFeatureCost()) &&
          "FMV priority is out of bounds!");
@@ -666,7 +666,7 @@ bool AArch64TargetInfo::getFeatureDepOptions(StringRef Name,
 #define AARCH64_ARCH_EXT_NAME(NAME, ID, FEATURE, NEGFEATURE, FMV_ID,           \
                               DEP_FEATURES, FMV_PRIORITY)                      \
   .Case(NAME, DEP_FEATURES)
-#include "../../../../llvm/include/llvm/TargetParser/AArch64TargetParser.def"
+#include "llvm/TargetParser/AArch64TargetParser.def"
                    .Default("");
   return FeatureVec != "";
 }
@@ -676,7 +676,7 @@ bool AArch64TargetInfo::validateCpuSupports(StringRef FeatureStr) const {
 #define AARCH64_ARCH_EXT_NAME(NAME, ID, FEATURE, NEGFEATURE, FMV_ID,           \
                               DEP_FEATURES, FMV_PRIORITY)                      \
   .Case(NAME, llvm::AArch64::FEAT_##FMV_ID)
-#include "../../../../llvm/include/llvm/TargetParser/AArch64TargetParser.def"
+#include "llvm/TargetParser/AArch64TargetParser.def"
                       .Default(llvm::AArch64::FEAT_MAX);
   return Feat != llvm::AArch64::FEAT_MAX;
 }


        


More information about the cfe-commits mailing list