[clang] [Arm] Add more -mtp=cp15 tests (PR #134098)

2025-04-04 Thread Vladi Krapp via cfe-commits
@@ -1,93 +1,94 @@ -// Test of the AArch32 values of -mtp=, checking that each one maps to -// the right target features. - -// RUN: %clang --target=armv7-linux -mtp=cp15 -### -S %s 2>&1 | \ -// RUN: FileCheck -check-prefix=ARMv7_THREAD_POINTER-HARD %s -// ARMv7_THREAD_POINTER-HARD

[clang] [Arm] Add more -mtp=cp15 tests (PR #134098)

2025-04-04 Thread Vladi Krapp via cfe-commits
https://github.com/VladiKrapp-Arm closed https://github.com/llvm/llvm-project/pull/134098 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Arm] Add more -mtp=cp15 tests (PR #134098)

2025-04-04 Thread Vladi Krapp via cfe-commits
@@ -1,93 +1,93 @@ -// Test of the AArch32 values of -mtp=, checking that each one maps to -// the right target features. - -// RUN: %clang --target=armv7-linux -mtp=cp15 -### -S %s 2>&1 | \ -// RUN: FileCheck -check-prefix=ARMv7_THREAD_POINTER-HARD %s -// ARMv7_THREAD_POINTER-HARD

[clang] [ARM][NFC] Remove lines unnecessary for test (PR #134359)

2025-04-04 Thread Vladi Krapp via cfe-commits
https://github.com/VladiKrapp-Arm closed https://github.com/llvm/llvm-project/pull/134359 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [ARM][NFC] Remove lines unnecessary for test (PR #134359)

2025-04-04 Thread Vladi Krapp via cfe-commits
https://github.com/VladiKrapp-Arm created https://github.com/llvm/llvm-project/pull/134359 None >From 4518846c9cbaf2c76249cb16729861740ab3c292 Mon Sep 17 00:00:00 2001 From: Vladi Krapp Date: Fri, 4 Apr 2025 10:41:44 +0100 Subject: [PATCH] [ARM][NFC] Remove lines unnecessary for test --- cla

[clang] [Arm] Add more -mtp=cp15 tests (PR #134098)

2025-04-03 Thread Vladi Krapp via cfe-commits
@@ -1,93 +1,94 @@ -// Test of the AArch32 values of -mtp=, checking that each one maps to -// the right target features. - -// RUN: %clang --target=armv7-linux -mtp=cp15 -### -S %s 2>&1 | \ -// RUN: FileCheck -check-prefix=ARMv7_THREAD_POINTER-HARD %s -// ARMv7_THREAD_POINTER-HARD

[clang] [Arm] Add more -mtp=cp15 tests (PR #134098)

2025-04-03 Thread Vladi Krapp via cfe-commits
@@ -1,93 +1,94 @@ -// Test of the AArch32 values of -mtp=, checking that each one maps to -// the right target features. - -// RUN: %clang --target=armv7-linux -mtp=cp15 -### -S %s 2>&1 | \ -// RUN: FileCheck -check-prefix=ARMv7_THREAD_POINTER-HARD %s -// ARMv7_THREAD_POINTER-HARD

[clang] [Arm] Add more -mtp=cp15 tests (PR #134098)

2025-04-03 Thread Vladi Krapp via cfe-commits
https://github.com/VladiKrapp-Arm updated https://github.com/llvm/llvm-project/pull/134098 >From ec7534e5dd8ad155aecbbfab74be915abfe8995e Mon Sep 17 00:00:00 2001 From: Vladi Krapp Date: Tue, 25 Mar 2025 14:35:44 + Subject: [PATCH] [Arm] Add more -mtp=cp15 tests This patch systematically c

[clang] [Arm] Add more -mtp=cp15 tests (PR #134098)

2025-04-03 Thread Vladi Krapp via cfe-commits
@@ -1,93 +1,94 @@ -// Test of the AArch32 values of -mtp=, checking that each one maps to -// the right target features. - -// RUN: %clang --target=armv7-linux -mtp=cp15 -### -S %s 2>&1 | \ -// RUN: FileCheck -check-prefix=ARMv7_THREAD_POINTER-HARD %s -// ARMv7_THREAD_POINTER-HARD

[clang] [Arm] Add more -mtp=cp15 tests (PR #134098)

2025-04-03 Thread Vladi Krapp via cfe-commits
@@ -1,93 +1,94 @@ -// Test of the AArch32 values of -mtp=, checking that each one maps to -// the right target features. - -// RUN: %clang --target=armv7-linux -mtp=cp15 -### -S %s 2>&1 | \ -// RUN: FileCheck -check-prefix=ARMv7_THREAD_POINTER-HARD %s -// ARMv7_THREAD_POINTER-HARD

[clang] [Arm] Add more -mtp=cp15 tests (PR #134098)

2025-04-02 Thread Vladi Krapp via cfe-commits
https://github.com/VladiKrapp-Arm created https://github.com/llvm/llvm-project/pull/134098 This patch systematically covers all -mtp=cp15 behaviour options for better code coverage. >From c412ba5ea6df192a5b18d50f030758cf5847c181 Mon Sep 17 00:00:00 2001 From: Vladi Krapp Date: Tue, 25 Mar 202

[clang] [ARM] Using cp15 while mtp =auto and arch is arm_arch6k and support thumb2 (PR #130027)

2025-03-15 Thread Vladi Krapp via cfe-commits
https://github.com/VladiKrapp-Arm edited https://github.com/llvm/llvm-project/pull/130027 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [ARM] Using cp15 while mtp =auto and arch is arm_arch6k and support thumb2 (PR #130027)

2025-03-11 Thread Vladi Krapp via cfe-commits
@@ -208,10 +208,17 @@ bool arm::useAAPCSForMachO(const llvm::Triple &T) { bool arm::isHardTPSupported(const llvm::Triple &Triple) { int Ver = getARMSubArchVersionNumber(Triple); llvm::ARM::ArchKind AK = llvm::ARM::parseArch(Triple.getArchName()); - return Triple.isARM() ||

[clang] [ARM] mtp = auto using hard point while arch supports thumb2 and hardtp (PR #130027)

2025-03-11 Thread Vladi Krapp via cfe-commits
https://github.com/VladiKrapp-Arm closed https://github.com/llvm/llvm-project/pull/130027 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [ARM] mtp = auto using hard point while arch supports thumb2 and hardtp (PR #130027)

2025-03-10 Thread Vladi Krapp via cfe-commits
https://github.com/VladiKrapp-Arm approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/130027 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [ARM] Using cp15 while mtp =auto and arch is arm_arch6k and support thumb2 (PR #130027)

2025-03-07 Thread Vladi Krapp via cfe-commits
VladiKrapp-Arm wrote: @Zhenhang1213 : Code looks ok. Are all edge cases covered by the lit test now? Could you please adjust the commit message to reflect the actual changes? https://github.com/llvm/llvm-project/pull/130027 ___ cfe-commits mailing

[clang] [ARM] Using cp15 while mtp =auto and arch is arm_arch6k and support thumb2 (PR #130027)

2025-03-06 Thread Vladi Krapp via cfe-commits
VladiKrapp-Arm wrote: @Zhenhang1213 Might I suggest changes along the lines of https://github.com/VladiKrapp-Arm/llvm-project/commit/63e4f10eaefc024e2afc41e5151411a383226a8b This separates the check for whether the platform allows hardware tls from whether it is possible to encode using thumb

[clang] [ARM] Using cp15 while mtp =auto and arch is arm_arch6k and support thumb2 (PR #130027)

2025-03-06 Thread Vladi Krapp via cfe-commits
VladiKrapp-Arm wrote: The updated version looks better. I think we need to remove ARMV6T2 from the list, as it does not seem to support the feature. https://developer.arm.com/documentation/ddi0290/g/system-control-coprocessor/system-control-processor-registers/c13--process-id-register?lang=en

[clang] [ARM] Using cp15 while mtp =auto and arch is arm_arch6k and support thumb2 (PR #130027)

2025-03-06 Thread Vladi Krapp via cfe-commits
@@ -208,10 +208,17 @@ bool arm::useAAPCSForMachO(const llvm::Triple &T) { bool arm::isHardTPSupported(const llvm::Triple &Triple) { int Ver = getARMSubArchVersionNumber(Triple); llvm::ARM::ArchKind AK = llvm::ARM::parseArch(Triple.getArchName()); - return Triple.isARM() ||