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 35 of file ThinLTOCodeGenerator.h.
std::unique_ptr< TargetMachine > TargetMachineBuilder::create | ( | ) | const |
Definition at line 581 of file ThinLTOCodeGenerator.cpp.
References assert(), CGOptLevel, llvm::Target::createTargetMachine(), llvm::SubtargetFeatures::getDefaultSubtargetFeatures(), llvm::SubtargetFeatures::getString(), llvm::TargetRegistry::lookupTarget(), MAttr, MCpu, Options, RelocModel, llvm::report_fatal_error(), llvm::Triple::str(), TheTriple, and TM.
Referenced by llvm::ThinLTOCodeGenerator::optimize(), and llvm::ThinLTOCodeGenerator::run().
CodeGenOptLevel llvm::TargetMachineBuilder::CGOptLevel = CodeGenOptLevel::Aggressive |
Definition at line 41 of file ThinLTOCodeGenerator.h.
Referenced by create(), and llvm::ThinLTOCodeGenerator::setCodeGenOptLevel().
std::string llvm::TargetMachineBuilder::MAttr |
Definition at line 38 of file ThinLTOCodeGenerator.h.
Referenced by create(), and llvm::ThinLTOCodeGenerator::setAttr().
std::string llvm::TargetMachineBuilder::MCpu |
Definition at line 37 of file ThinLTOCodeGenerator.h.
Referenced by create(), and llvm::ThinLTOCodeGenerator::setCpu().
TargetOptions llvm::TargetMachineBuilder::Options |
Definition at line 39 of file ThinLTOCodeGenerator.h.
Referenced by create(), and llvm::ThinLTOCodeGenerator::setTargetOptions().
std::optional<Reloc::Model> llvm::TargetMachineBuilder::RelocModel |
Definition at line 40 of file ThinLTOCodeGenerator.h.
Referenced by create(), and llvm::ThinLTOCodeGenerator::setCodePICModel().
Triple llvm::TargetMachineBuilder::TheTriple |
Definition at line 36 of file ThinLTOCodeGenerator.h.
Referenced by llvm::ThinLTOCodeGenerator::addModule(), create(), llvm::ThinLTOCodeGenerator::internalize(), llvm::ThinLTOCodeGenerator::run(), and llvm::ThinLTOCodeGenerator::writeGeneratedObject().