#include "NVPTXSubtarget.h"
#include "NVPTXTargetMachine.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/FormatVariadic.h"
usingnamespacellvm;
#define DEBUG_TYPE …
#define GET_SUBTARGETINFO_ENUM
#define GET_SUBTARGETINFO_TARGET_DESC
#define GET_SUBTARGETINFO_CTOR
#include "NVPTXGenSubtargetInfo.inc"
static cl::opt<bool>
NoF16Math("nvptx-no-f16-math", cl::Hidden,
cl::desc("NVPTX Specific: Disable generation of f16 math ops."),
cl::init(false));
void NVPTXSubtarget::anchor() { … }
NVPTXSubtarget &NVPTXSubtarget::initializeSubtargetDependencies(StringRef CPU,
StringRef FS) { … }
NVPTXSubtarget::NVPTXSubtarget(const Triple &TT, const std::string &CPU,
const std::string &FS,
const NVPTXTargetMachine &TM)
: … { … }
bool NVPTXSubtarget::hasImageHandles() const { … }
bool NVPTXSubtarget::allowFP16Math() const { … }
void NVPTXSubtarget::failIfClustersUnsupported(
std::string const &FailureMessage) const { … }