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

zhijian lin via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 12 08:04:55 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 in AIX 7.2 and later operating systems">;
----------------
diggerlin wrote:

we need to use this builtin here 
the error output will be lile

__builtin_cpu_is("power8") 
      ^^^ this builtin is available only in AIX 7.2 and later operating systems}}
   
  this indicates the function which in the compiler error message
   

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


More information about the cfe-commits mailing list