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

via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 6 05:00:16 PST 2025


================
@@ -240,7 +247,7 @@ arm::ReadTPMode arm::getReadTPMode(const Driver &D, const ArgList &Args,
       D.Diag(diag::err_drv_invalid_mtp) << A->getAsString(Args);
     return ReadTPMode::Invalid;
   }
-  return (isHardTPSupported(Triple) ? ReadTPMode::TPIDRURO : ReadTPMode::Soft);
+  return (isHardTPAndThumb2(Triple) ? ReadTPMode::TPIDRURO : ReadTPMode::Soft);
----------------
Zhenhang1213 wrote:

I have updated my code, and could you review it again, thx

https://github.com/llvm/llvm-project/pull/130027


More information about the cfe-commits mailing list