diff options
author | Justin Hibbits <chmeeedalf@gmail.com> | 2019-10-24 16:22:47 -0500 |
---|---|---|
committer | Justin Hibbits <chmeeedalf@gmail.com> | 2019-11-12 20:34:34 -0600 |
commit | bc4bc5aa0d84413e4e3f082dee0d30cf839fb7ea (patch) | |
tree | d1681751156d88a5d7a0a4051aaf66689c6ec5e0 /clang/lib/Basic/Targets/PPC.h | |
parent | 9d7bccab663f5e71320fb10727abcfa6c2dab046 (diff) | |
download | bcm5719-llvm-bc4bc5aa0d84413e4e3f082dee0d30cf839fb7ea.tar.gz bcm5719-llvm-bc4bc5aa0d84413e4e3f082dee0d30cf839fb7ea.zip |
Add 8548 CPU definition and attributes
8548 CPU is GCC's name for the e500v2, so accept this in clang. The
e500v2 doesn't support lwsync, so define __NO_LWSYNC__ for this as well,
as GCC does.
Differential Revision: https://reviews.llvm.org/D67787
Diffstat (limited to 'clang/lib/Basic/Targets/PPC.h')
-rw-r--r-- | clang/lib/Basic/Targets/PPC.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Basic/Targets/PPC.h b/clang/lib/Basic/Targets/PPC.h index 6c6421c28e2..847338bbac1 100644 --- a/clang/lib/Basic/Targets/PPC.h +++ b/clang/lib/Basic/Targets/PPC.h @@ -44,7 +44,8 @@ class LLVM_LIBRARY_VISIBILITY PPCTargetInfo : public TargetInfo { ArchDefinePwr8 = 1 << 12, ArchDefinePwr9 = 1 << 13, ArchDefineA2 = 1 << 14, - ArchDefineA2q = 1 << 15 + ArchDefineA2q = 1 << 15, + ArchDefineE500 = 1 << 16 } ArchDefineTypes; @@ -145,6 +146,7 @@ public: ArchDefinePwr9 | ArchDefinePwr8 | ArchDefinePwr7 | ArchDefinePwr6 | ArchDefinePwr5x | ArchDefinePwr5 | ArchDefinePwr4 | ArchDefinePpcgr | ArchDefinePpcsq) + .Cases("8548", "e500", ArchDefineE500) .Default(ArchDefineNone); } return CPUKnown; |