[clang] [Clang codegen][PPC] Produce AIX-specific "target features" only for AIX (PR #130864)
zhijian lin via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 13 12:01:14 PDT 2025
================
@@ -609,13 +609,15 @@ bool PPCTargetInfo::initFeatureMap(
// Privileged instructions are off by default.
Features["privileged"] = false;
- // The code generated by the -maix-small-local-[exec|dynamic]-tls option is
- // turned off by default.
- Features["aix-small-local-exec-tls"] = false;
- Features["aix-small-local-dynamic-tls"] = false;
+ if (getTriple().isOSAIX()) {
----------------
diggerlin wrote:
if I understand correct, we do not need to set Features["aix-small-local-exec-tls"] = false; for AIX too, since we do not use the `HasAIXSmallLocalExecTLS`,`HasAIXShLibTLSModelOpt`,`HasAIXSmallLocalDynamicTLS` in the frontend
https://github.com/llvm/llvm-project/pull/130864
More information about the cfe-commits
mailing list