[clang] [llvm] Implement a subset of builtin_cpu_supports() features (PR #82809)

Nemanja Ivanovic via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 5 22:41:16 PST 2024


================
@@ -141,23 +149,30 @@ PPC_LNX_CPU("power10",47)
   #define AIX_BUILTIN_PPC_TRUE 1
   #define AIX_BUILTIN_PPC_FALSE 0
   #define USE_SYS_CONF 2
+  #define SYS_CALL 3
 
   // Supported COMPARE_OP values.
   #define COMP_EQ  0
+  #define COMP_GT 1
+  #define COMP_GE 2
+  #define COMP_NE 3
----------------
nemanjai wrote:

Can we not omit this and use `CmpInst::Predicate` in the function-style macros (thereby eliminating the need for the switch statement that uses them as well)?

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


More information about the cfe-commits mailing list