diff options
Diffstat (limited to 'include/llvm/Support/Host.h')
-rw-r--r-- | include/llvm/Support/Host.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/include/llvm/Support/Host.h b/include/llvm/Support/Host.h index 9a4036a8af..ab52671861 100644 --- a/include/llvm/Support/Host.h +++ b/include/llvm/Support/Host.h @@ -46,6 +46,47 @@ namespace sys { /// CPU_TYPE-VENDOR-KERNEL-OPERATING_SYSTEM std::string getDefaultTargetTriple(); + /// getDefaultTargetCpu() - Return the default target cpu for which the + /// compiler is configured to generate code for (ie. -mcpu), or "" if empty. + std::string getDefaultTargetCpu(); + + /// hasDefaultTargetCpu() - Return true if the compiler was configured to + /// generate by default code for a given target cpu and false otherwise. + bool hasDefaultTargetCpu(); + + /// getDefaultTargetFloat() - Return the default target float abi for which + /// the compiler is configured to generate code for, or "" if empty. + std::string getDefaultTargetFloat(); + + /// hasDefaultTargetFloat() - Return true if the compiler was configured to + /// generate by default code for a given floating point abi and false + /// otherwise. + bool hasDefaultTargetFloat(); + + /// getDefaultTargetFpu() - Return the default target FPU for which the + /// compiler is configured to generate code for, or "" if empty. + std::string getDefaultTargetFpu(); + + /// hasDefaultTargetFpu() - Return true if the compiler was configured to + /// generate by default code for a given FPU and false otherwise. + bool hasDefaultTargetFpu(); + + /// getDefaultTargetHashStyle() - Return the default target hash-style for + /// which the compiler is configured to generated for, or "" if empty. + std::string getDefaultTargetHashStyle(); + + /// hasDefaultTargetHashStyle() - Return true if the compiler was configured + /// to generate by default code with a given hash-style and false otherwise. + bool hasDefaultTargetHashStyle(); + + /// getDefaultTargetAbi() - Return the default target ABI for which the + /// compiler is configured to generate code for, or "" if empty. + std::string getDefaultTargetAbi(); + + /// hasDefaultTargetAbi() - Return true if the compiler was configured to + /// generate code for a given ABI and false otherwise. + bool hasDefaultTargetAbi(); + /// getProcessTriple() - Return an appropriate target triple for generating /// code to be loaded into the current process, e.g. when using the JIT. std::string getProcessTriple(); |