#include "llvm/Target/TargetMachine.h"
#include "llvm/Analysis/TargetTransformInfo.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/GlobalValue.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/Mangler.h"
#include "llvm/IR/Module.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCInstrInfo.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/Support/CodeGen.h"
#include "llvm/Target/TargetLoweringObjectFile.h"
usingnamespacellvm;
TargetMachine::TargetMachine(const Target &T, StringRef DataLayoutString,
const Triple &TT, StringRef CPU, StringRef FS,
const TargetOptions &Options)
: … { … }
TargetMachine::~TargetMachine() = default;
bool TargetMachine::isLargeGlobalValue(const GlobalValue *GVal) const { … }
bool TargetMachine::isPositionIndependent() const { … }
void TargetMachine::resetTargetOptions(const Function &F) const { … }
Reloc::Model TargetMachine::getRelocationModel() const { … }
uint64_t TargetMachine::getMaxCodeSize() const { … }
static TLSModel::Model getSelectedTLSModel(const GlobalValue *GV) { … }
bool TargetMachine::shouldAssumeDSOLocal(const GlobalValue *GV) const { … }
bool TargetMachine::useEmulatedTLS() const { … }
bool TargetMachine::useTLSDESC() const { … }
TLSModel::Model TargetMachine::getTLSModel(const GlobalValue *GV) const { … }
TargetTransformInfo
TargetMachine::getTargetTransformInfo(const Function &F) const { … }
void TargetMachine::getNameWithPrefix(SmallVectorImpl<char> &Name,
const GlobalValue *GV, Mangler &Mang,
bool MayAlwaysUsePrivate) const { … }
MCSymbol *TargetMachine::getSymbol(const GlobalValue *GV) const { … }
TargetIRAnalysis TargetMachine::getTargetIRAnalysis() const { … }
std::pair<int, int> TargetMachine::parseBinutilsVersion(StringRef Version) { … }