| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | #ifndef LLVM_CLANG_LIB_BASIC_TARGETS_H |
| 16 | #define LLVM_CLANG_LIB_BASIC_TARGETS_H |
| 17 | |
| 18 | #include "clang/Basic/LangOptions.h" |
| 19 | #include "clang/Basic/MacroBuilder.h" |
| 20 | #include "clang/Basic/TargetInfo.h" |
| 21 | #include "llvm/ADT/StringRef.h" |
| 22 | |
| 23 | namespace clang { |
| 24 | namespace targets { |
| 25 | |
| 26 | LLVM_LIBRARY_VISIBILITY |
| 27 | clang::TargetInfo *AllocateTarget(const llvm::Triple &Triple, |
| 28 | const clang::TargetOptions &Opts); |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | LLVM_LIBRARY_VISIBILITY |
| 34 | void DefineStd(clang::MacroBuilder &Builder, llvm::StringRef MacroName, |
| 35 | const clang::LangOptions &Opts); |
| 36 | |
| 37 | LLVM_LIBRARY_VISIBILITY |
| 38 | void defineCPUMacros(clang::MacroBuilder &Builder, llvm::StringRef CPUName, |
| 39 | bool Tuning = true); |
| 40 | |
| 41 | LLVM_LIBRARY_VISIBILITY |
| 42 | void addMinGWDefines(const llvm::Triple &Triple, const clang::LangOptions &Opts, |
| 43 | clang::MacroBuilder &Builder); |
| 44 | |
| 45 | LLVM_LIBRARY_VISIBILITY |
| 46 | void addCygMingDefines(const clang::LangOptions &Opts, |
| 47 | clang::MacroBuilder &Builder); |
| 48 | } |
| 49 | } |
| 50 | #endif |
| 51 | |