Jim Stichnoth | 999a22f | 2016-03-12 10:22:53 -0800 | [diff] [blame] | 1 | //===- subzero/src/SZTargets.def - Target enumeration x-macro ---*- C++ -*-===// |
| 2 | // |
| 3 | // The Subzero Code Generator |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file provides an alternate implementation of llvm/Config/SZTargets.def, |
| 11 | // such that when SZTARGET is defined, it enumerates the single SZTARGET instead |
| 12 | // of the complete list. This can be used to model a proper minimal build for |
| 13 | // the browser. |
| 14 | // |
| 15 | //===----------------------------------------------------------------------===// |
| 16 | |
| 17 | #ifdef SZTARGET |
| 18 | |
| 19 | #ifndef SUBZERO_TARGET |
| 20 | #error Please define the macro SUBZERO_TARGET(TargetName) |
| 21 | #endif |
| 22 | |
| 23 | SUBZERO_TARGET(SZTARGET) |
| 24 | |
| 25 | #undef SUBZERO_TARGET |
| 26 | |
| 27 | #else // !SZTARGET |
| 28 | |
Nicolas Capens | c0f1b6f | 2016-09-01 15:05:49 -0400 | [diff] [blame] | 29 | #ifdef PNACL_LLVM |
Jim Stichnoth | 999a22f | 2016-03-12 10:22:53 -0800 | [diff] [blame] | 30 | |
Nicolas Capens | c0f1b6f | 2016-09-01 15:05:49 -0400 | [diff] [blame] | 31 | #include "llvm/Config/SZTargets.def" |
Jim Stichnoth | f5fdd23 | 2016-05-09 12:24:36 -0700 | [diff] [blame] | 32 | |
| 33 | #else // !PNACL_LLVM |
| 34 | |
| 35 | SUBZERO_TARGET(ARM32) |
| 36 | SUBZERO_TARGET(MIPS32) |
| 37 | SUBZERO_TARGET(X8632) |
| 38 | SUBZERO_TARGET(X8664) |
| 39 | |
| 40 | #endif // !PNACL_LLVM |
Nicolas Capens | c0f1b6f | 2016-09-01 15:05:49 -0400 | [diff] [blame] | 41 | |
| 42 | #endif // !SZTARGET |