LLVM 20.0.0git
|
Helper to gather options relevant to the target machine creation. More...
#include "llvm/LTO/legacy/ThinLTOCodeGenerator.h"
Public Member Functions | |
std::unique_ptr< TargetMachine > | create () const |
Public Attributes | |
Triple | TheTriple |
std::string | MCpu |
std::string | MAttr |
TargetOptions | Options |
std::optional< Reloc::Model > | RelocModel |
CodeGenOptLevel | CGOptLevel = CodeGenOptLevel::Aggressive |
Helper to gather options relevant to the target machine creation.
Definition at line 42 of file ThinLTOCodeGenerator.h.
std::unique_ptr< TargetMachine > TargetMachineBuilder::create | ( | ) | const |
Definition at line 579 of file ThinLTOCodeGenerator.cpp.
References assert(), llvm::Target::createTargetMachine(), llvm::SubtargetFeatures::getDefaultSubtargetFeatures(), llvm::SubtargetFeatures::getString(), llvm::TargetRegistry::lookupTarget(), Options, and llvm::report_fatal_error().
Referenced by llvm::ThinLTOCodeGenerator::optimize(), and llvm::ThinLTOCodeGenerator::run().
CodeGenOptLevel llvm::ThinLTOCodeGeneratorImpl::TargetMachineBuilder::CGOptLevel = CodeGenOptLevel::Aggressive |
Definition at line 48 of file ThinLTOCodeGenerator.h.
Referenced by llvm::ThinLTOCodeGenerator::setCodeGenOptLevel().
std::string llvm::ThinLTOCodeGeneratorImpl::TargetMachineBuilder::MAttr |
Definition at line 45 of file ThinLTOCodeGenerator.h.
Referenced by llvm::ThinLTOCodeGenerator::setAttr().
std::string llvm::ThinLTOCodeGeneratorImpl::TargetMachineBuilder::MCpu |
Definition at line 44 of file ThinLTOCodeGenerator.h.
Referenced by initTMBuilder(), and llvm::ThinLTOCodeGenerator::setCpu().
TargetOptions llvm::ThinLTOCodeGeneratorImpl::TargetMachineBuilder::Options |
Definition at line 46 of file ThinLTOCodeGenerator.h.
Referenced by llvm::ThinLTOCodeGenerator::setTargetOptions().
std::optional<Reloc::Model> llvm::ThinLTOCodeGeneratorImpl::TargetMachineBuilder::RelocModel |
Definition at line 47 of file ThinLTOCodeGenerator.h.
Referenced by llvm::ThinLTOCodeGenerator::setCodePICModel().
Triple llvm::ThinLTOCodeGeneratorImpl::TargetMachineBuilder::TheTriple |
Definition at line 43 of file ThinLTOCodeGenerator.h.
Referenced by llvm::ThinLTOCodeGenerator::addModule(), initTMBuilder(), llvm::ThinLTOCodeGenerator::internalize(), llvm::ThinLTOCodeGenerator::run(), and llvm::ThinLTOCodeGenerator::writeGeneratedObject().