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

zhijian lin via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 15 08:37:10 PST 2024


================
@@ -10347,6 +10347,8 @@ def err_x86_builtin_tile_arg_duplicate : Error<
 
 def err_builtin_target_unsupported : Error<
   "builtin is not supported on this target">;
+def err_builtin_aix_os_unsupported : Error<
+  "this builtin is available only on AIX 7.2 and later operating systems">;
----------------
diggerlin wrote:

I think with `this` grammar correct in the following compiler error output:  (this indicates a certain functions __builtin_cpu_is("power8"); )

builtin.c:2:10: error: this builtin is available only on AIX 7.2 and later operating systems
    2 |   return __builtin_cpu_is("power8");
    
    

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


More information about the cfe-commits mailing list