From fcdf9ecee4477fae3150806cdf2231c83d2720e8 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 5 Mar 2026 22:42:27 +0900 Subject: [PATCH] internal/rosa/llvm: 21.1.8 to 22.1.0 New patch should not be affected next time. Signed-off-by: Ophestra --- internal/rosa/llvm.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/internal/rosa/llvm.go b/internal/rosa/llvm.go index ef68776..1468f06 100644 --- a/internal/rosa/llvm.go +++ b/internal/rosa/llvm.go @@ -73,11 +73,11 @@ func llvmFlagName(flag int) string { } } -const llvmVersion = "21.1.8" +const llvmVersion = "22.1.0" // newLLVMVariant returns a [pkg.Artifact] containing a LLVM variant. func (t Toolchain) newLLVMVariant(variant string, attr *llvmAttr) pkg.Artifact { - const checksum = "8SUpqDkcgwOPsqHVtmf9kXfFeVmjVxl4LMn-qSE1AI_Xoeju-9HaoPNGtidyxyka" + const checksum = "-_Tu5Lt8xkWoxm2VDVV7crh0WqZQbbblN3fYamMdPTDSy_54FAkD2ii7afSymPVV" if attr == nil { panic("LLVM attr must be non-nil") @@ -314,10 +314,10 @@ ninja check-all patches: [][2]string{ {"add-rosa-vendor", `diff --git a/llvm/include/llvm/TargetParser/Triple.h b/llvm/include/llvm/TargetParser/Triple.h -index 657f4230379e..12c305756184 100644 +index 9c83abeeb3b1..5acfe5836a23 100644 --- a/llvm/include/llvm/TargetParser/Triple.h +++ b/llvm/include/llvm/TargetParser/Triple.h -@@ -185,6 +185,7 @@ public: +@@ -190,6 +190,7 @@ public: Apple, PC, @@ -326,25 +326,25 @@ index 657f4230379e..12c305756184 100644 Freescale, IBM, diff --git a/llvm/lib/TargetParser/Triple.cpp b/llvm/lib/TargetParser/Triple.cpp -index 0584c941d2e6..e4d6ef963cc7 100644 +index a4f9dd42c0fe..cb5a12387034 100644 --- a/llvm/lib/TargetParser/Triple.cpp +++ b/llvm/lib/TargetParser/Triple.cpp -@@ -269,6 +269,7 @@ StringRef Triple::getVendorTypeName(VendorType Kind) { +@@ -279,6 +279,7 @@ StringRef Triple::getVendorTypeName(VendorType Kind) { case NVIDIA: return "nvidia"; case OpenEmbedded: return "oe"; case PC: return "pc"; + case Rosa: return "rosa"; case SCEI: return "scei"; case SUSE: return "suse"; - } -@@ -669,6 +670,7 @@ static Triple::VendorType parseVendor(StringRef VendorName) { - .Case("suse", Triple::SUSE) - .Case("oe", Triple::OpenEmbedded) - .Case("intel", Triple::Intel) + case Meta: +@@ -689,6 +690,7 @@ static Triple::VendorType parseVendor(StringRef VendorName) { + return StringSwitch(VendorName) + .Case("apple", Triple::Apple) + .Case("pc", Triple::PC) + .Case("rosa", Triple::Rosa) - .Default(Triple::UnknownVendor); - } - + .Case("scei", Triple::SCEI) + .Case("sie", Triple::SCEI) + .Case("fsl", Triple::Freescale) `}, {"xfail-broken-tests", `diff --git a/clang/test/Modules/timestamps.c b/clang/test/Modules/timestamps.c