PPC.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529
  1. //===--- PPC.h - Declare PPC target feature support -------------*- C++ -*-===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. //
  9. // This file declares PPC TargetInfo objects.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #ifndef LLVM_CLANG_LIB_BASIC_TARGETS_PPC_H
  13. #define LLVM_CLANG_LIB_BASIC_TARGETS_PPC_H
  14. #include "OSTargets.h"
  15. #include "clang/Basic/TargetInfo.h"
  16. #include "clang/Basic/TargetOptions.h"
  17. #include "llvm/ADT/Triple.h"
  18. #include "llvm/ADT/StringSwitch.h"
  19. #include "llvm/Support/Compiler.h"
  20. namespace clang {
  21. namespace targets {
  22. // PPC abstract base class
  23. class LLVM_LIBRARY_VISIBILITY PPCTargetInfo : public TargetInfo {
  24. /// Flags for architecture specific defines.
  25. typedef enum {
  26. ArchDefineNone = 0,
  27. ArchDefineName = 1 << 0, // <name> is substituted for arch name.
  28. ArchDefinePpcgr = 1 << 1,
  29. ArchDefinePpcsq = 1 << 2,
  30. ArchDefine440 = 1 << 3,
  31. ArchDefine603 = 1 << 4,
  32. ArchDefine604 = 1 << 5,
  33. ArchDefinePwr4 = 1 << 6,
  34. ArchDefinePwr5 = 1 << 7,
  35. ArchDefinePwr5x = 1 << 8,
  36. ArchDefinePwr6 = 1 << 9,
  37. ArchDefinePwr6x = 1 << 10,
  38. ArchDefinePwr7 = 1 << 11,
  39. ArchDefinePwr8 = 1 << 12,
  40. ArchDefinePwr9 = 1 << 13,
  41. ArchDefinePwr10 = 1 << 14,
  42. ArchDefineFuture = 1 << 15,
  43. ArchDefineA2 = 1 << 16,
  44. ArchDefineE500 = 1 << 18
  45. } ArchDefineTypes;
  46. ArchDefineTypes ArchDefs = ArchDefineNone;
  47. static const char *const GCCRegNames[];
  48. static const TargetInfo::GCCRegAlias GCCRegAliases[];
  49. std::string CPU;
  50. enum PPCFloatABI { HardFloat, SoftFloat } FloatABI;
  51. // Target cpu features.
  52. bool HasAltivec = false;
  53. bool HasMMA = false;
  54. bool HasROPProtect = false;
  55. bool HasPrivileged = false;
  56. bool HasVSX = false;
  57. bool UseCRBits = false;
  58. bool HasP8Vector = false;
  59. bool HasP8Crypto = false;
  60. bool HasDirectMove = false;
  61. bool HasHTM = false;
  62. bool HasBPERMD = false;
  63. bool HasExtDiv = false;
  64. bool HasP9Vector = false;
  65. bool HasSPE = false;
  66. bool PairedVectorMemops = false;
  67. bool HasP10Vector = false;
  68. bool HasPCRelativeMemops = false;
  69. bool HasPrefixInstrs = false;
  70. bool IsISA2_06 = false;
  71. bool IsISA2_07 = false;
  72. bool IsISA3_0 = false;
  73. bool IsISA3_1 = false;
  74. bool HasQuadwordAtomics = false;
  75. protected:
  76. std::string ABI;
  77. public:
  78. PPCTargetInfo(const llvm::Triple &Triple, const TargetOptions &)
  79. : TargetInfo(Triple) {
  80. SuitableAlign = 128;
  81. SimdDefaultAlign = 128;
  82. LongDoubleWidth = LongDoubleAlign = 128;
  83. LongDoubleFormat = &llvm::APFloat::PPCDoubleDouble();
  84. HasStrictFP = true;
  85. HasIbm128 = true;
  86. }
  87. // Set the language option for altivec based on our value.
  88. void adjust(DiagnosticsEngine &Diags, LangOptions &Opts) override;
  89. // Note: GCC recognizes the following additional cpus:
  90. // 401, 403, 405, 405fp, 440fp, 464, 464fp, 476, 476fp, 505, 740, 801,
  91. // 821, 823, 8540, e300c2, e300c3, e500mc64, e6500, 860, cell, titan, rs64.
  92. bool isValidCPUName(StringRef Name) const override;
  93. void fillValidCPUList(SmallVectorImpl<StringRef> &Values) const override;
  94. bool setCPU(const std::string &Name) override {
  95. bool CPUKnown = isValidCPUName(Name);
  96. if (CPUKnown) {
  97. CPU = Name;
  98. // CPU identification.
  99. ArchDefs =
  100. (ArchDefineTypes)llvm::StringSwitch<int>(CPU)
  101. .Case("440", ArchDefineName)
  102. .Case("450", ArchDefineName | ArchDefine440)
  103. .Case("601", ArchDefineName)
  104. .Case("602", ArchDefineName | ArchDefinePpcgr)
  105. .Case("603", ArchDefineName | ArchDefinePpcgr)
  106. .Case("603e", ArchDefineName | ArchDefine603 | ArchDefinePpcgr)
  107. .Case("603ev", ArchDefineName | ArchDefine603 | ArchDefinePpcgr)
  108. .Case("604", ArchDefineName | ArchDefinePpcgr)
  109. .Case("604e", ArchDefineName | ArchDefine604 | ArchDefinePpcgr)
  110. .Case("620", ArchDefineName | ArchDefinePpcgr)
  111. .Case("630", ArchDefineName | ArchDefinePpcgr)
  112. .Case("7400", ArchDefineName | ArchDefinePpcgr)
  113. .Case("7450", ArchDefineName | ArchDefinePpcgr)
  114. .Case("750", ArchDefineName | ArchDefinePpcgr)
  115. .Case("970", ArchDefineName | ArchDefinePwr4 | ArchDefinePpcgr |
  116. ArchDefinePpcsq)
  117. .Case("a2", ArchDefineA2)
  118. .Cases("power3", "pwr3", ArchDefinePpcgr)
  119. .Cases("power4", "pwr4",
  120. ArchDefinePwr4 | ArchDefinePpcgr | ArchDefinePpcsq)
  121. .Cases("power5", "pwr5",
  122. ArchDefinePwr5 | ArchDefinePwr4 | ArchDefinePpcgr |
  123. ArchDefinePpcsq)
  124. .Cases("power5x", "pwr5x",
  125. ArchDefinePwr5x | ArchDefinePwr5 | ArchDefinePwr4 |
  126. ArchDefinePpcgr | ArchDefinePpcsq)
  127. .Cases("power6", "pwr6",
  128. ArchDefinePwr6 | ArchDefinePwr5x | ArchDefinePwr5 |
  129. ArchDefinePwr4 | ArchDefinePpcgr | ArchDefinePpcsq)
  130. .Cases("power6x", "pwr6x",
  131. ArchDefinePwr6x | ArchDefinePwr6 | ArchDefinePwr5x |
  132. ArchDefinePwr5 | ArchDefinePwr4 | ArchDefinePpcgr |
  133. ArchDefinePpcsq)
  134. .Cases("power7", "pwr7",
  135. ArchDefinePwr7 | ArchDefinePwr6 | ArchDefinePwr5x |
  136. ArchDefinePwr5 | ArchDefinePwr4 | ArchDefinePpcgr |
  137. ArchDefinePpcsq)
  138. // powerpc64le automatically defaults to at least power8.
  139. .Cases("power8", "pwr8", "ppc64le",
  140. ArchDefinePwr8 | ArchDefinePwr7 | ArchDefinePwr6 |
  141. ArchDefinePwr5x | ArchDefinePwr5 | ArchDefinePwr4 |
  142. ArchDefinePpcgr | ArchDefinePpcsq)
  143. .Cases("power9", "pwr9",
  144. ArchDefinePwr9 | ArchDefinePwr8 | ArchDefinePwr7 |
  145. ArchDefinePwr6 | ArchDefinePwr5x | ArchDefinePwr5 |
  146. ArchDefinePwr4 | ArchDefinePpcgr | ArchDefinePpcsq)
  147. .Cases("power10", "pwr10",
  148. ArchDefinePwr10 | ArchDefinePwr9 | ArchDefinePwr8 |
  149. ArchDefinePwr7 | ArchDefinePwr6 | ArchDefinePwr5x |
  150. ArchDefinePwr5 | ArchDefinePwr4 | ArchDefinePpcgr |
  151. ArchDefinePpcsq)
  152. .Case("future",
  153. ArchDefineFuture | ArchDefinePwr10 | ArchDefinePwr9 |
  154. ArchDefinePwr8 | ArchDefinePwr7 | ArchDefinePwr6 |
  155. ArchDefinePwr5x | ArchDefinePwr5 | ArchDefinePwr4 |
  156. ArchDefinePpcgr | ArchDefinePpcsq)
  157. .Cases("8548", "e500", ArchDefineE500)
  158. .Default(ArchDefineNone);
  159. }
  160. return CPUKnown;
  161. }
  162. StringRef getABI() const override { return ABI; }
  163. ArrayRef<Builtin::Info> getTargetBuiltins() const override;
  164. bool isCLZForZeroUndef() const override { return false; }
  165. void getTargetDefines(const LangOptions &Opts,
  166. MacroBuilder &Builder) const override;
  167. bool
  168. initFeatureMap(llvm::StringMap<bool> &Features, DiagnosticsEngine &Diags,
  169. StringRef CPU,
  170. const std::vector<std::string> &FeaturesVec) const override;
  171. void addP10SpecificFeatures(llvm::StringMap<bool> &Features) const;
  172. void addFutureSpecificFeatures(llvm::StringMap<bool> &Features) const;
  173. bool handleTargetFeatures(std::vector<std::string> &Features,
  174. DiagnosticsEngine &Diags) override;
  175. bool hasFeature(StringRef Feature) const override;
  176. void setFeatureEnabled(llvm::StringMap<bool> &Features, StringRef Name,
  177. bool Enabled) const override;
  178. ArrayRef<const char *> getGCCRegNames() const override;
  179. ArrayRef<TargetInfo::GCCRegAlias> getGCCRegAliases() const override;
  180. ArrayRef<TargetInfo::AddlRegName> getGCCAddlRegNames() const override;
  181. bool validateAsmConstraint(const char *&Name,
  182. TargetInfo::ConstraintInfo &Info) const override {
  183. switch (*Name) {
  184. default:
  185. return false;
  186. case 'O': // Zero
  187. break;
  188. case 'f': // Floating point register
  189. // Don't use floating point registers on soft float ABI.
  190. if (FloatABI == SoftFloat)
  191. return false;
  192. [[fallthrough]];
  193. case 'b': // Base register
  194. Info.setAllowsRegister();
  195. break;
  196. // FIXME: The following are added to allow parsing.
  197. // I just took a guess at what the actions should be.
  198. // Also, is more specific checking needed? I.e. specific registers?
  199. case 'd': // Floating point register (containing 64-bit value)
  200. case 'v': // Altivec vector register
  201. // Don't use floating point and altivec vector registers
  202. // on soft float ABI
  203. if (FloatABI == SoftFloat)
  204. return false;
  205. Info.setAllowsRegister();
  206. break;
  207. case 'w':
  208. switch (Name[1]) {
  209. case 'd': // VSX vector register to hold vector double data
  210. case 'f': // VSX vector register to hold vector float data
  211. case 's': // VSX vector register to hold scalar double data
  212. case 'w': // VSX vector register to hold scalar double data
  213. case 'a': // Any VSX register
  214. case 'c': // An individual CR bit
  215. case 'i': // FP or VSX register to hold 64-bit integers data
  216. break;
  217. default:
  218. return false;
  219. }
  220. Info.setAllowsRegister();
  221. Name++; // Skip over 'w'.
  222. break;
  223. case 'h': // `MQ', `CTR', or `LINK' register
  224. case 'q': // `MQ' register
  225. case 'c': // `CTR' register
  226. case 'l': // `LINK' register
  227. case 'x': // `CR' register (condition register) number 0
  228. case 'y': // `CR' register (condition register)
  229. case 'z': // `XER[CA]' carry bit (part of the XER register)
  230. Info.setAllowsRegister();
  231. break;
  232. case 'I': // Signed 16-bit constant
  233. case 'J': // Unsigned 16-bit constant shifted left 16 bits
  234. // (use `L' instead for SImode constants)
  235. case 'K': // Unsigned 16-bit constant
  236. case 'L': // Signed 16-bit constant shifted left 16 bits
  237. case 'M': // Constant larger than 31
  238. case 'N': // Exact power of 2
  239. case 'P': // Constant whose negation is a signed 16-bit constant
  240. case 'G': // Floating point constant that can be loaded into a
  241. // register with one instruction per word
  242. case 'H': // Integer/Floating point constant that can be loaded
  243. // into a register using three instructions
  244. break;
  245. case 'm': // Memory operand. Note that on PowerPC targets, m can
  246. // include addresses that update the base register. It
  247. // is therefore only safe to use `m' in an asm statement
  248. // if that asm statement accesses the operand exactly once.
  249. // The asm statement must also use `%U<opno>' as a
  250. // placeholder for the "update" flag in the corresponding
  251. // load or store instruction. For example:
  252. // asm ("st%U0 %1,%0" : "=m" (mem) : "r" (val));
  253. // is correct but:
  254. // asm ("st %1,%0" : "=m" (mem) : "r" (val));
  255. // is not. Use es rather than m if you don't want the base
  256. // register to be updated.
  257. case 'e':
  258. if (Name[1] != 's')
  259. return false;
  260. // es: A "stable" memory operand; that is, one which does not
  261. // include any automodification of the base register. Unlike
  262. // `m', this constraint can be used in asm statements that
  263. // might access the operand several times, or that might not
  264. // access it at all.
  265. Info.setAllowsMemory();
  266. Name++; // Skip over 'e'.
  267. break;
  268. case 'Q': // Memory operand that is an offset from a register (it is
  269. // usually better to use `m' or `es' in asm statements)
  270. Info.setAllowsRegister();
  271. [[fallthrough]];
  272. case 'Z': // Memory operand that is an indexed or indirect from a
  273. // register (it is usually better to use `m' or `es' in
  274. // asm statements)
  275. Info.setAllowsMemory();
  276. break;
  277. case 'R': // AIX TOC entry
  278. case 'a': // Address operand that is an indexed or indirect from a
  279. // register (`p' is preferable for asm statements)
  280. case 'S': // Constant suitable as a 64-bit mask operand
  281. case 'T': // Constant suitable as a 32-bit mask operand
  282. case 'U': // System V Release 4 small data area reference
  283. case 't': // AND masks that can be performed by two rldic{l, r}
  284. // instructions
  285. case 'W': // Vector constant that does not require memory
  286. case 'j': // Vector constant that is all zeros.
  287. break;
  288. // End FIXME.
  289. }
  290. return true;
  291. }
  292. std::string convertConstraint(const char *&Constraint) const override {
  293. std::string R;
  294. switch (*Constraint) {
  295. case 'e':
  296. case 'w':
  297. // Two-character constraint; add "^" hint for later parsing.
  298. R = std::string("^") + std::string(Constraint, 2);
  299. Constraint++;
  300. break;
  301. default:
  302. return TargetInfo::convertConstraint(Constraint);
  303. }
  304. return R;
  305. }
  306. const char *getClobbers() const override { return ""; }
  307. int getEHDataRegisterNumber(unsigned RegNo) const override {
  308. if (RegNo == 0)
  309. return 3;
  310. if (RegNo == 1)
  311. return 4;
  312. return -1;
  313. }
  314. bool hasSjLjLowering() const override { return true; }
  315. const char *getLongDoubleMangling() const override {
  316. if (LongDoubleWidth == 64)
  317. return "e";
  318. return LongDoubleFormat == &llvm::APFloat::PPCDoubleDouble()
  319. ? "g"
  320. : "u9__ieee128";
  321. }
  322. const char *getFloat128Mangling() const override { return "u9__ieee128"; }
  323. const char *getIbm128Mangling() const override { return "g"; }
  324. bool hasBitIntType() const override { return true; }
  325. bool isSPRegName(StringRef RegName) const override {
  326. return RegName.equals("r1") || RegName.equals("x1");
  327. }
  328. };
  329. class LLVM_LIBRARY_VISIBILITY PPC32TargetInfo : public PPCTargetInfo {
  330. public:
  331. PPC32TargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
  332. : PPCTargetInfo(Triple, Opts) {
  333. if (Triple.isOSAIX())
  334. resetDataLayout("E-m:a-p:32:32-i64:64-n32");
  335. else if (Triple.getArch() == llvm::Triple::ppcle)
  336. resetDataLayout("e-m:e-p:32:32-i64:64-n32");
  337. else
  338. resetDataLayout("E-m:e-p:32:32-i64:64-n32");
  339. switch (getTriple().getOS()) {
  340. case llvm::Triple::Linux:
  341. case llvm::Triple::FreeBSD:
  342. case llvm::Triple::NetBSD:
  343. SizeType = UnsignedInt;
  344. PtrDiffType = SignedInt;
  345. IntPtrType = SignedInt;
  346. break;
  347. case llvm::Triple::AIX:
  348. SizeType = UnsignedLong;
  349. PtrDiffType = SignedLong;
  350. IntPtrType = SignedLong;
  351. LongDoubleWidth = 64;
  352. LongDoubleAlign = DoubleAlign = 32;
  353. LongDoubleFormat = &llvm::APFloat::IEEEdouble();
  354. break;
  355. default:
  356. break;
  357. }
  358. if (Triple.isOSFreeBSD() || Triple.isOSNetBSD() || Triple.isOSOpenBSD() ||
  359. Triple.isMusl()) {
  360. LongDoubleWidth = LongDoubleAlign = 64;
  361. LongDoubleFormat = &llvm::APFloat::IEEEdouble();
  362. }
  363. // PPC32 supports atomics up to 4 bytes.
  364. MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 32;
  365. }
  366. BuiltinVaListKind getBuiltinVaListKind() const override {
  367. // This is the ELF definition, and is overridden by the Darwin sub-target
  368. return TargetInfo::PowerABIBuiltinVaList;
  369. }
  370. };
  371. // Note: ABI differences may eventually require us to have a separate
  372. // TargetInfo for little endian.
  373. class LLVM_LIBRARY_VISIBILITY PPC64TargetInfo : public PPCTargetInfo {
  374. public:
  375. PPC64TargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
  376. : PPCTargetInfo(Triple, Opts) {
  377. LongWidth = LongAlign = PointerWidth = PointerAlign = 64;
  378. IntMaxType = SignedLong;
  379. Int64Type = SignedLong;
  380. std::string DataLayout;
  381. if (Triple.isOSAIX()) {
  382. // TODO: Set appropriate ABI for AIX platform.
  383. DataLayout = "E-m:a-i64:64-n32:64";
  384. LongDoubleWidth = 64;
  385. LongDoubleAlign = DoubleAlign = 32;
  386. LongDoubleFormat = &llvm::APFloat::IEEEdouble();
  387. } else if ((Triple.getArch() == llvm::Triple::ppc64le)) {
  388. DataLayout = "e-m:e-i64:64-n32:64";
  389. ABI = "elfv2";
  390. } else {
  391. DataLayout = "E-m:e-i64:64-n32:64";
  392. if (Triple.isPPC64ELFv2ABI())
  393. ABI = "elfv2";
  394. else
  395. ABI = "elfv1";
  396. }
  397. if (Triple.isOSFreeBSD() || Triple.isOSOpenBSD() || Triple.isMusl()) {
  398. LongDoubleWidth = LongDoubleAlign = 64;
  399. LongDoubleFormat = &llvm::APFloat::IEEEdouble();
  400. }
  401. if (Triple.isOSAIX() || Triple.isOSLinux())
  402. DataLayout += "-S128-v256:256:256-v512:512:512";
  403. resetDataLayout(DataLayout);
  404. // Newer PPC64 instruction sets support atomics up to 16 bytes.
  405. MaxAtomicPromoteWidth = 128;
  406. // Baseline PPC64 supports inlining atomics up to 8 bytes.
  407. MaxAtomicInlineWidth = 64;
  408. }
  409. void setMaxAtomicWidth() override {
  410. // For power8 and up, backend is able to inline 16-byte atomic lock free
  411. // code.
  412. // TODO: We should allow AIX to inline quadword atomics in the future.
  413. if (!getTriple().isOSAIX() && hasFeature("quadword-atomics"))
  414. MaxAtomicInlineWidth = 128;
  415. }
  416. BuiltinVaListKind getBuiltinVaListKind() const override {
  417. return TargetInfo::CharPtrBuiltinVaList;
  418. }
  419. // PPC64 Linux-specific ABI options.
  420. bool setABI(const std::string &Name) override {
  421. if (Name == "elfv1" || Name == "elfv2") {
  422. ABI = Name;
  423. return true;
  424. }
  425. return false;
  426. }
  427. CallingConvCheckResult checkCallingConvention(CallingConv CC) const override {
  428. switch (CC) {
  429. case CC_Swift:
  430. return CCCR_OK;
  431. case CC_SwiftAsync:
  432. return CCCR_Error;
  433. default:
  434. return CCCR_Warning;
  435. }
  436. }
  437. };
  438. class LLVM_LIBRARY_VISIBILITY DarwinPPC32TargetInfo
  439. : public DarwinTargetInfo<PPC32TargetInfo> {
  440. public:
  441. DarwinPPC32TargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
  442. : DarwinTargetInfo<PPC32TargetInfo>(Triple, Opts) {
  443. HasAlignMac68kSupport = true;
  444. BoolWidth = BoolAlign = 32; // XXX support -mone-byte-bool?
  445. PtrDiffType = SignedInt; // for http://llvm.org/bugs/show_bug.cgi?id=15726
  446. LongLongAlign = 32;
  447. resetDataLayout("E-m:o-p:32:32-f64:32:64-n32", "_");
  448. }
  449. BuiltinVaListKind getBuiltinVaListKind() const override {
  450. return TargetInfo::CharPtrBuiltinVaList;
  451. }
  452. };
  453. class LLVM_LIBRARY_VISIBILITY DarwinPPC64TargetInfo
  454. : public DarwinTargetInfo<PPC64TargetInfo> {
  455. public:
  456. DarwinPPC64TargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
  457. : DarwinTargetInfo<PPC64TargetInfo>(Triple, Opts) {
  458. HasAlignMac68kSupport = true;
  459. resetDataLayout("E-m:o-i64:64-n32:64", "_");
  460. }
  461. };
  462. class LLVM_LIBRARY_VISIBILITY AIXPPC32TargetInfo :
  463. public AIXTargetInfo<PPC32TargetInfo> {
  464. public:
  465. using AIXTargetInfo::AIXTargetInfo;
  466. BuiltinVaListKind getBuiltinVaListKind() const override {
  467. return TargetInfo::CharPtrBuiltinVaList;
  468. }
  469. };
  470. class LLVM_LIBRARY_VISIBILITY AIXPPC64TargetInfo :
  471. public AIXTargetInfo<PPC64TargetInfo> {
  472. public:
  473. using AIXTargetInfo::AIXTargetInfo;
  474. };
  475. } // namespace targets
  476. } // namespace clang
  477. #endif // LLVM_CLANG_LIB_BASIC_TARGETS_PPC_H