LLVM 20.0.0git
|
Target independent information on a fixup kind. More...
#include "llvm/MC/MCFixupKindInfo.h"
Public Types | |
enum | FixupKindFlags { FKF_IsPCRel = (1 << 0) , FKF_IsAlignedDownTo32Bits = (1 << 1) , FKF_IsTarget = (1 << 2) , FKF_Constant = 1 << 3 } |
Public Attributes | |
const char * | Name |
A target specific name for the fixup kind. | |
unsigned | TargetOffset |
The bit offset to write the relocation into. | |
unsigned | TargetSize |
The number of bits written by this fixup. | |
unsigned | Flags |
Flags describing additional information on this fixup kind. | |
Target independent information on a fixup kind.
Definition at line 15 of file MCFixupKindInfo.h.
Enumerator | |
---|---|
FKF_IsPCRel | Is this fixup kind PCrelative? This is used by the assembler backend to evaluate fixup values in a target independent manner when possible. |
FKF_IsAlignedDownTo32Bits | Should this fixup kind force a 4-byte aligned effective PC value? |
FKF_IsTarget | Should this fixup be evaluated in a target dependent manner? |
FKF_Constant | This fixup kind should be resolved if defined. FIXME This is a workaround because we don't support certain ARM relocation types. This flag should eventually be removed. |
Definition at line 16 of file MCFixupKindInfo.h.
unsigned llvm::MCFixupKindInfo::Flags |
Flags describing additional information on this fixup kind.
Definition at line 45 of file MCFixupKindInfo.h.
Referenced by llvm::MachObjectWriter::isFixupKindPCRel(), and llvm::ELFObjectWriter::recordRelocation().
A target specific name for the fixup kind.
The names will be unique for distinct kinds on any given target.
Definition at line 35 of file MCFixupKindInfo.h.
unsigned llvm::MCFixupKindInfo::TargetOffset |
The bit offset to write the relocation into.
Definition at line 38 of file MCFixupKindInfo.h.
unsigned llvm::MCFixupKindInfo::TargetSize |
The number of bits written by this fixup.
The bits are assumed to be contiguous.
Definition at line 42 of file MCFixupKindInfo.h.
Referenced by llvm::AVRAsmBackend::adjustFixupValue(), and llvm::MipsAsmBackend::applyFixup().