[clang] [llvm] [AIX] support builtin_cpu_is() for aix (PR #80069)

Amy Kwan via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 8 12:33:40 PST 2024


================
@@ -904,8 +904,17 @@ bool PPCTargetInfo::validateCpuSupports(StringRef FeatureStr) const {
 }
 
 bool PPCTargetInfo::validateCpuIs(StringRef CPUName) const {
+  llvm::Triple Triple = getTriple();
+  if (Triple.isOSLinux()) {
----------------
amy-kwan wrote:

Can if we do something like:
```
if (Triple.isOSAIX()) {
. . . 
}
// Default Linux Behaviour
. . . 
```

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


More information about the cfe-commits mailing list