You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.167
Former-commit-id: 289509151e0fee68a1b591a20c9f109c3c789d3a
This commit is contained in:
parent
e19d552987
commit
b084638f15
@ -1,76 +0,0 @@
|
||||
//===-- ARMAsmBackend.h - ARM Assembler Backend -----------------*- C++ -*-===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is distributed under the University of Illinois Open Source
|
||||
// License. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_LIB_TARGET_ARM_ARMASMBACKEND_H
|
||||
#define LLVM_LIB_TARGET_ARM_ARMASMBACKEND_H
|
||||
|
||||
#include "MCTargetDesc/ARMFixupKinds.h"
|
||||
#include "MCTargetDesc/ARMMCTargetDesc.h"
|
||||
#include "llvm/MC/MCAsmBackend.h"
|
||||
#include "llvm/MC/MCSubtargetInfo.h"
|
||||
#include "llvm/Support/TargetRegistry.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
class ARMAsmBackend : public MCAsmBackend {
|
||||
const MCSubtargetInfo &STI;
|
||||
bool isThumbMode; // Currently emitting Thumb code.
|
||||
bool IsLittleEndian; // Big or little endian.
|
||||
public:
|
||||
ARMAsmBackend(const Target &T, const MCSubtargetInfo &STI, bool IsLittle)
|
||||
: MCAsmBackend(), STI(STI),
|
||||
isThumbMode(STI.getTargetTriple().isThumb()),
|
||||
IsLittleEndian(IsLittle) {}
|
||||
|
||||
unsigned getNumFixupKinds() const override {
|
||||
return ARM::NumTargetFixupKinds;
|
||||
}
|
||||
|
||||
bool hasNOP() const { return STI.getFeatureBits()[ARM::HasV6T2Ops]; }
|
||||
|
||||
const MCFixupKindInfo &getFixupKindInfo(MCFixupKind Kind) const override;
|
||||
|
||||
bool shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup,
|
||||
const MCValue &Target) override;
|
||||
|
||||
unsigned adjustFixupValue(const MCAssembler &Asm, const MCFixup &Fixup,
|
||||
const MCValue &Target, uint64_t Value,
|
||||
bool IsResolved, MCContext &Ctx,
|
||||
bool IsLittleEndian) const;
|
||||
|
||||
void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
|
||||
const MCValue &Target, MutableArrayRef<char> Data,
|
||||
uint64_t Value, bool IsResolved) const override;
|
||||
|
||||
unsigned getRelaxedOpcode(unsigned Op) const;
|
||||
|
||||
bool mayNeedRelaxation(const MCInst &Inst) const override;
|
||||
|
||||
const char *reasonForFixupRelaxation(const MCFixup &Fixup,
|
||||
uint64_t Value) const;
|
||||
|
||||
bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
|
||||
const MCRelaxableFragment *DF,
|
||||
const MCAsmLayout &Layout) const override;
|
||||
|
||||
void relaxInstruction(const MCInst &Inst, const MCSubtargetInfo &STI,
|
||||
MCInst &Res) const override;
|
||||
|
||||
bool writeNopData(uint64_t Count, MCObjectWriter *OW) const override;
|
||||
|
||||
void handleAssemblerFlag(MCAssemblerFlag Flag) override;
|
||||
|
||||
unsigned getPointerSize() const { return 4; }
|
||||
bool isThumb() const { return isThumbMode; }
|
||||
void setIsThumb(bool it) { isThumbMode = it; }
|
||||
bool isLittle() const { return IsLittleEndian; }
|
||||
};
|
||||
} // end namespace llvm
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user