Go to the documentation of this file.
11 #ifndef LLVM_DIRECTX_DIRECTXTARGETMACHINE_H
12 #define LLVM_DIRECTX_DIRECTXTARGETMACHINE_H
21 std::unique_ptr<TargetLoweringObjectFile> TLOF;
22 std::unique_ptr<DirectXSubtarget> Subtarget;
27 std::optional<Reloc::Model>
RM,
54 #endif // LLVM_DIRECTX_DIRECTXTARGETMACHINE_H
TargetTransformInfo getTargetTransformInfo(const Function &F) const override
Get a TargetTransformInfo implementation for the target.
This is an optimization pass for GlobalISel generic memory operations.
Context object for machine code objects.
Target - Wrapper for Target specific information.
Triple - Helper class for working with autoconf configuration names.
~DirectXTargetMachine() override
This class provides access to building LLVM's passes.
void registerPassBuilderCallbacks(PassBuilder &PB) override
Allow the target to modify the pass pipeline.
FileType
Defines the file type this file represents.
Target-Independent Code Generator Pass Configuration Options.
An abstract base class for streams implementations that also support a pwrite operation.
TargetLoweringObjectFile * getObjFileLowering() const override
CodeGenFileType
These enums are meant to be passed into addPassesToEmitFile to indicate what type of file to emit,...
StringRef - Represent a constant reference to a string, i.e.
TargetPassConfig * createPassConfig(PassManagerBase &PM) override
Create a pass configuration object to be used by addPassToEmitX methods for generating a pipeline of ...
const DirectXSubtarget * getSubtargetImpl(const Function &) const override
Virtual method implemented by subclasses that returns a reference to that target's TargetSubtargetInf...
This class describes a target machine that is implemented with the LLVM target-independent code gener...
bool addPassesToEmitMC(PassManagerBase &PM, MCContext *&Ctx, raw_pwrite_stream &Out, bool DisableVerify) override
Add passes to the specified pass manager to get machine code emitted with the MCJIT.
DirectXTargetMachine(const Target &T, const Triple &TT, StringRef CPU, StringRef FS, const TargetOptions &Options, std::optional< Reloc::Model > RM, std::optional< CodeModel::Model > CM, CodeGenOpt::Level OL, bool JIT)
PassManagerBase - An abstract interface to allow code to add passes to a pass manager without having ...
bool addPassesToEmitFile(PassManagerBase &PM, raw_pwrite_stream &Out, raw_pwrite_stream *DwoOut, CodeGenFileType FileType, bool DisableVerify, MachineModuleInfoWrapperPass *MMIWP) override
Add passes to the specified pass manager to get the specified file emitted.
Level
Code generation optimization level.
PassBuilder PB(Machine, PassOpts->PTO, std::nullopt, &PIC)