llir-opt
0.0.1
Low-Level Post-Link Optimiser for OCaml and C
|
7 #include <llvm/ADT/Triple.h>
37 const llvm::Triple &triple,
38 const std::string &cpu,
39 const std::string &tuneCPU,
40 const std::string &fs,
41 const std::string &abi,
57 return T::kKind ==
kind_ ?
static_cast<T *
>(
this) :
nullptr;
64 return T::kKind ==
kind_ ?
static_cast<const T *
>(
this) :
nullptr;
T * As()
Convert the target to a specific target.
Definition: target.h:55
llvm::StringRef getABI() const
Return the feature strings of the target.
Definition: target.h:78
llvm::Triple triple_
Target triple.
Definition: target.h:95
virtual bool AllowsUnalignedStores() const
Check whether the target allows unaligned stores.
Definition: target.h:89
std::string cpu_
Target CPU.
Definition: target.h:97
bool shared_
Flag indicating whether the target is a shared library.
Definition: target.h:105
std::string tuneCPU_
Target CPU to tune fore.
Definition: target.h:99
std::string abi_
Target ABI descriptor.
Definition: target.h:103
std::string fs_
Target feature string.
Definition: target.h:101
Type GetPointerType() const
Return the target pointer type.
Definition: target.cpp:10
Kind
Enumeration of supported targets.
Definition: target.h:27
llvm::StringRef getCPU() const
Returns the CPU to target.
Definition: target.h:72
llvm::StringRef getTuneCPU() const
Returns the CPU to target.
Definition: target.h:74
Kind kind_
Target kind.
Definition: target.h:93
const T * As() const
Convert the target to a specific target.
Definition: target.h:62
llvm::StringRef getFS() const
Return the feature strings of the target.
Definition: target.h:76
Kind GetKind() const
Return the target kind.
Definition: target.h:84
bool IsShared() const
Checks whether the target is a shared library.
Definition: target.h:68
const llvm::Triple & GetTriple() const
Returns the target triple.
Definition: target.h:70
virtual bool IsLittleEndian() const
Check whether the target is little endian.
Definition: target.h:87