diff options
author | azhan92 <alisonxzhang@gmail.com> | 2024-07-23 09:51:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-23 09:51:13 -0400 |
commit | 63b382bbde5994e8f2cec75883320e3ad9fd618f (patch) | |
tree | 89f13941a88776a64df7e4785148ea093d6c0e4c /llvm | |
parent | 1df4d866cca51eeab8f012a97cc50957b45971fe (diff) | |
download | llvm-63b382bbde5994e8f2cec75883320e3ad9fd618f.zip llvm-63b382bbde5994e8f2cec75883320e3ad9fd618f.tar.gz llvm-63b382bbde5994e8f2cec75883320e3ad9fd618f.tar.bz2 |
[PowerPC] Add builtin_cpu_is P11 support (#99550)
This PR adds support for __builtin_cpu_is ("power11")
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/TargetParser/PPCTargetParser.def | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/TargetParser/PPCTargetParser.def b/llvm/include/llvm/TargetParser/PPCTargetParser.def index 44e97d5..df956a6 100644 --- a/llvm/include/llvm/TargetParser/PPCTargetParser.def +++ b/llvm/include/llvm/TargetParser/PPCTargetParser.def @@ -40,6 +40,7 @@ #undef AIX_PPC8_VALUE #undef AIX_PPC9_VALUE #undef AIX_PPC10_VALUE +#undef AIX_PPC11_VALUE #else #ifndef PPC_LNX_FEATURE #define PPC_LNX_FEATURE(NAME, DESC, ENUMNAME, ENUMVAL, HWCAPN) @@ -84,6 +85,7 @@ #define AIX_PPC8_VALUE 0x00010000 #define AIX_PPC9_VALUE 0x00020000 #define AIX_PPC10_VALUE 0x00040000 +#define AIX_PPC11_VALUE 0x00080000 // __builtin_cpu_is() and __builtin_cpu_supports() are supported only on Power7 and up on AIX. // PPC_CPU(Name, Linux_SUPPORT_METHOD, LinuxID, AIX_SUPPORT_METHOD, AIXID) @@ -103,6 +105,7 @@ PPC_CPU("ppc476",SYS_CALL,44,BUILTIN_PPC_FALSE,0) PPC_CPU("power8",SYS_CALL,45,USE_SYS_CONF,AIX_PPC8_VALUE) PPC_CPU("power9",SYS_CALL,46,USE_SYS_CONF,AIX_PPC9_VALUE) PPC_CPU("power10",SYS_CALL,47,USE_SYS_CONF,AIX_PPC10_VALUE) +PPC_CPU("power11",SYS_CALL,48,USE_SYS_CONF,AIX_PPC11_VALUE) #undef PPC_CPU // PPC features on Linux: |