9 #ifndef LLVM_LIB_TARGET_RISCV_RISCVTARGETOBJECTFILE_H 10 #define LLVM_LIB_TARGET_RISCV_RISCVTARGETOBJECTFILE_H 15 class RISCVTargetMachine;
21 unsigned SSThreshold = 8;
39 unsigned &
Align)
const override;
Instances of this class represent a uniqued identifier for a section in the current translation unit...
A parsed version of the target data layout string in and methods for querying it. ...
This class represents lattice values for constants.
A Module instance is used to store all the information related to an LLVM module. ...
MCSection * getSectionForConstant(const DataLayout &DL, SectionKind Kind, const Constant *C, unsigned &Align) const override
Given a constant with the SectionKind, return a section that it should be placed in.
bool isGlobalInSmallSection(const GlobalObject *GO, const TargetMachine &TM) const
Return true if this global address should be placed into small data/bss section.
Context object for machine code objects.
void getModuleMetadata(Module &M) override
Get the module-level metadata that the platform cares about.
bool isConstantInSmallSection(const DataLayout &DL, const Constant *CN) const
Return true if this constant should be placed into small data section.
MCSection * SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const override
This is an important base class in LLVM.
SectionKind - This is a simple POD value that classifies the properties of a section.
This struct is a compact representation of a valid (non-zero power of two) alignment.
Primary interface to the complete machine description for the target machine.
This implementation is used for RISCV ELF targets.
bool isInSmallSection(uint64_t Size) const
void Initialize(MCContext &Ctx, const TargetMachine &TM) override
This method must be called before any actual lowering is done.