39 Value = ((Value + 0x8000) >> 16) & 0xffff;
48 assert(i <= 3 &&
"Index out of range!");
50 return (1 - i / 2) * 2 + i % 2;
59 bool IsResolved)
const {
73 for (
unsigned i = 0; i != NumBytes; ++i) {
75 CurVal |= (uint64_t)((uint8_t)Data[Offset + Idx]) << (i * 8);
79 CurVal |= Value &
Mask;
82 for (
unsigned i = 0; i != NumBytes; ++i) {
84 Data[Offset + Idx] = (uint8_t)((CurVal >> (i * 8)) & 0xff);
103 {
"fixup_Nios2_32", 0, 32, 0},
104 {
"fixup_Nios2_HI16", 0, 16, 0},
105 {
"fixup_Nios2_LO16", 0, 16, 0}};
115 std::unique_ptr<MCObjectTargetWriter>
Compute iterated dominance frontiers using a linear time algorithm.
This represents an "assembler immediate".
OSType getOS() const
getOS - Get the parsed operating system type of this triple.
virtual const MCFixupKindInfo & getFixupKindInfo(MCFixupKind Kind) const
Get information on a fixup kind.
Encode information on a single operation to perform on a byte sequence (e.g., an encoded instruction)...
const Triple & getTargetTriple() const
static unsigned calculateLEIndex(unsigned i)
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE R Default(T Value)
Nios2AsmBackend(const Target &T, Triple::OSType OSType)
static unsigned adjustFixupValue(const MCFixup &Fixup, uint64_t Value)
MCRegisterInfo base class - We assume that the target defines a static array of MCRegisterDesc object...
A switch()-like statement whose cases are string literals.
unsigned const MachineRegisterInfo * MRI
MutableArrayRef - Represent a mutable reference to an array (0 or more elements consecutively in memo...
MCFixupKind
Extensible enumeration to represent the type of a fixup.
uint32_t getOffset() const
void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup, const MCValue &Target, MutableArrayRef< char > Data, uint64_t Value, bool IsResolved) const override
ApplyFixup - Apply the Value for given Fixup into the provided data fragment, at the offset specified...
unsigned getNumFixupKinds() const override
Get the number of target specific fixup kinds.
virtual Optional< MCFixupKind > getFixupKind(StringRef Name) const
Map a relocation name used in .reloc to a fixup kind.
unsigned TargetSize
The number of bits written by this fixup.
Target - Wrapper for Target specific information.
std::unique_ptr< MCObjectTargetWriter > createNios2ELFObjectWriter(uint8_t OSABI)
std::unique_ptr< MCObjectTargetWriter > createObjectTargetWriter() const override
Generic base class for all target subtargets.
bool writeNopData(raw_ostream &OS, uint64_t Count) const override
Write an (optimal) nop sequence of Count bytes to the given output.
Target independent information on a fixup kind.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
LLVM Value Representation.
Generic interface to target specific assembler backends.
std::underlying_type< E >::type Mask()
Get a bitmask with 1s in all places up to the high-order bit of E's largest value.
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.
Optional< MCFixupKind > getFixupKind(StringRef Name) const override
Map a relocation name used in .reloc to a fixup kind.
MCAsmBackend * createNios2AsmBackend(const Target &T, const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, const MCTargetOptions &Options)
MCFixupKind getKind() const
const MCFixupKindInfo & getFixupKindInfo(MCFixupKind Kind) const override
Get information on a fixup kind.