HomeSort by relevance Sort by last modified time
    Searched refs:Fixup (Results 1 - 25 of 53) sorted by null

1 2 3

  /frameworks/compile/mclinker/lib/Fragment/
Stub.cpp 22 for (fixup_iterator fixup= fixup_begin(); fixup != fixup_end(); ++fixup)
23 delete(*fixup);
34 m_FixupList.push_back(new Fixup(pOffset, pAddend, pType));
37 void Stub::addFixup(const Fixup& pFixup)
40 m_FixupList.push_back(new Fixup(pFixup));
  /external/llvm/lib/Target/R600/MCTargetDesc/
AMDGPUAsmBackend.cpp 33 const MCFixup &Fixup,
48 virtual void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
50 virtual bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
73 void AMDGPUAsmBackend::applyFixup(const MCFixup &Fixup, char *Data,
76 uint16_t *Dst = (uint16_t*)(Data + Fixup.getOffset());
77 assert(Fixup.getKind() == FK_PCRel_4);
AMDGPUELFObjectWriter.cpp 22 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
  /external/llvm/include/llvm/MC/
MCELFObjectWriter.h 36 const MCFixup *Fixup;
39 : r_offset(0), Index(0), Type(0), Symbol(0), r_addend(0), Fixup(0) {}
42 const MCSymbol *Sym, uint64_t Addend, const MCFixup &Fixup)
44 r_addend(Addend), Fixup(&Fixup) {}
74 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
80 const MCFixup &Fixup,
83 const MCFixup &Fixup,
MCWinCOFFObjectWriter.h 30 const MCFixup &Fixup,
MCAsmBackend.h 92 /// @name Target Fixup Interfaces
95 /// getNumFixupKinds - Get the number of target specific fixup kinds.
98 /// getFixupKindInfo - Get information on a fixup kind.
101 /// processFixupValue - Target hook to adjust the literal value of a fixup
106 const MCFixup &Fixup, const MCFragment *DF,
112 /// applyFixup - Apply the \p Value for given \p Fixup into the provided
113 /// data fragment, at the offset specified by the fixup and following the
114 /// fixup kind as appropriate.
115 virtual void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
130 /// fixup requires the associated instruction to be relaxed
    [all...]
  /frameworks/compile/mclinker/include/mcld/Fragment/
Stub.h 35 class Fixup
38 Fixup(DWord pOffset, SWord pAddend, Type pType)
42 ~Fixup()
58 typedef std::vector<Fixup*> FixupListType;
96 /// ----- Fixup ----- ///
116 /// addFixup - add a fixup for this stub to build a relocation
119 /// addFixup - add a fixup from a existing fixup of the prototype
120 void addFixup(const Fixup& pFixup);
  /external/llvm/lib/Target/ARM/MCTargetDesc/
ARMMachObjectWriter.cpp 34 const MCFixup &Fixup,
42 const MCFixup &Fixup, MCValue Target,
59 const MCFragment *Fragment, const MCFixup &Fixup,
151 const MCFixup &Fixup,
154 uint32_t FixupOffset = Layout.getFragmentOffset(Fragment)+Fixup.getOffset();
155 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind());
163 Asm.getContext().FatalError(Fixup.getLoc(),
177 Asm.getContext().FatalError(Fixup.getLoc(),
203 switch ((unsigned)Fixup.getKind()) {
256 const MCFixup &Fixup,
    [all...]
ARMAsmBackend.cpp 111 /// processFixupValue - Target hook to process the literal value of a fixup
114 const MCFixup &Fixup, const MCFragment *DF,
119 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
124 bool fixupNeedsRelaxation(const MCFixup &Fixup,
167 bool ARMAsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup,
171 switch ((unsigned)Fixup.getKind()) {
200 llvm_unreachable("Unexpected fixup kind in fixupNeedsRelaxation()!");
254 static unsigned adjustFixupValue(const MCFixup &Fixup, uint64_t Value,
256 unsigned Kind = Fixup.getKind();
259 llvm_unreachable("Unknown fixup kind!")
    [all...]
ARMELFObjectWriter.cpp 28 const MCFixup &Fixup,
37 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
43 const MCFixup &Fixup,
65 const MCFixup &Fixup,
74 RelocType = GetRelocTypeInner(Target, Fixup, IsPCRel);
142 // Need to examine the Fixup when determining whether to
146 const MCFixup &Fixup,
150 return GetRelocTypeInner(Target, Fixup, IsPCRel);
154 const MCFixup &Fixup,
161 switch ((unsigned)Fixup.getKind())
    [all...]
  /art/compiler/
elf_fixup.h 31 // Fixup an ELF file so that that oat header will be loaded at oat_begin.
33 static bool Fixup(File* file, uintptr_t oat_data_begin);
36 // Fixup .dynamic d_ptr values for the expected base_address.
39 // Fixup Elf32_Shdr p_vaddr to load at the desired address.
42 // Fixup Elf32_Phdr p_vaddr to load at the desired address.
45 // Fixup symbol table
48 // Fixup dynamic relocations
  /external/chromium_org/third_party/mesa/src/src/gallium/drivers/radeon/MCTargetDesc/
AMDGPUAsmBackend.cpp 32 const MCFixup &Fixup,
48 virtual void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
50 virtual bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
SIMCCodeEmitter.cpp 88 SmallVectorImpl<MCFixup> &Fixup) const;
92 SmallVectorImpl<MCFixup> &Fixup) const;
97 SmallVectorImpl<MCFixup> &Fixup) const;
101 SmallVectorImpl<MCFixup> &Fixup) const;
169 SmallVectorImpl<MCFixup> &Fixup) const {
175 SmallVectorImpl<MCFixup> &Fixup) const {
181 SmallVectorImpl<MCFixup> &Fixup) const {
198 SmallVectorImpl<MCFixup> &Fixup) const {
207 (getMachineOpValue(MI, OffsetOp, Fixup) & SMRD_OFFSET_MASK)
209 | ((GPR2AlignEncode(MI, OpNo, Fixup) & SMRD_SBASE_MASK) << SMRD_SBASE_SHIFT
    [all...]
  /external/llvm/lib/Target/Mips/MCTargetDesc/
MipsBaseInfo.h 125 MipsGetSymAndOffset(const MCFixup &Fixup) {
126 MCFixupKind FixupKind = Fixup.getKind();
132 const MCExpr *Expr = Fixup.getValue();
  /external/llvm/lib/Target/X86/MCTargetDesc/
X86WinCOFFObjectWriter.cpp 33 const MCFixup &Fixup,
46 const MCFixup &Fixup,
48 unsigned FixupKind = IsCrossSection ? FK_PCRel_4 : Fixup.getKind();
X86MachObjectWriter.cpp 32 const MCFixup &Fixup,
40 const MCFixup &Fixup,
48 const MCFixup &Fixup,
55 const MCFixup &Fixup,
66 const MCFragment *Fragment, const MCFixup &Fixup,
69 RecordX86_64Relocation(Writer, Asm, Layout, Fragment, Fixup, Target,
72 RecordX86Relocation(Writer, Asm, Layout, Fragment, Fixup, Target,
86 llvm_unreachable("invalid fixup kind!");
105 const MCFixup &Fixup,
108 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind())
    [all...]
X86ELFObjectWriter.cpp 27 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
43 const MCFixup &Fixup,
54 switch ((unsigned)Fixup.getKind()) {
55 default: llvm_unreachable("invalid fixup kind!");
102 switch ((unsigned)Fixup.getKind()) {
103 default: llvm_unreachable("invalid fixup kind!");
147 switch ((unsigned)Fixup.getKind()) {
148 default: llvm_unreachable("invalid fixup kind!");
170 switch ((unsigned)Fixup.getKind()) {
171 default: llvm_unreachable("invalid fixup kind!")
    [all...]
  /external/mesa3d/src/gallium/drivers/radeon/MCTargetDesc/
AMDGPUAsmBackend.cpp 32 const MCFixup &Fixup,
48 virtual void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
50 virtual bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
SIMCCodeEmitter.cpp 88 SmallVectorImpl<MCFixup> &Fixup) const;
92 SmallVectorImpl<MCFixup> &Fixup) const;
97 SmallVectorImpl<MCFixup> &Fixup) const;
101 SmallVectorImpl<MCFixup> &Fixup) const;
169 SmallVectorImpl<MCFixup> &Fixup) const {
175 SmallVectorImpl<MCFixup> &Fixup) const {
181 SmallVectorImpl<MCFixup> &Fixup) const {
198 SmallVectorImpl<MCFixup> &Fixup) const {
207 (getMachineOpValue(MI, OffsetOp, Fixup) & SMRD_OFFSET_MASK)
209 | ((GPR2AlignEncode(MI, OpNo, Fixup) & SMRD_SBASE_MASK) << SMRD_SBASE_SHIFT
    [all...]
  /external/llvm/lib/Target/SystemZ/MCTargetDesc/
SystemZMCObjectWriter.cpp 27 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
33 const MCFixup &Fixup,
89 const MCFixup &Fixup,
96 unsigned Kind = Fixup.getKind();
124 const MCFixup &Fixup,
SystemZMCAsmBackend.cpp 22 // fixup kind Kind.
35 llvm_unreachable("Unknown fixup kind!");
60 virtual void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
63 virtual bool fixupNeedsRelaxation(const MCFixup &Fixup,
100 void SystemZMCAsmBackend::applyFixup(const MCFixup &Fixup, char *Data,
102 MCFixupKind Kind = Fixup.getKind();
103 unsigned Offset = Fixup.getOffset();
106 assert(Offset + Size <= DataSize && "Invalid fixup offset!");
122 SystemZMCAsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup,
127 Value = extractBitsForFixup(Fixup.getKind(), Value)
    [all...]
  /external/llvm/lib/Target/PowerPC/MCTargetDesc/
PPCAsmBackend.cpp 28 llvm_unreachable("Unknown fixup kind!");
51 llvm_unreachable("Unknown fixup kind!");
80 const MCFragment *Fragment, const MCFixup &Fixup,
113 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
115 Value = adjustFixupValue(Fixup.getKind(), Value);
118 unsigned Offset = Fixup.getOffset();
119 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind());
121 // For each byte of the fragment that the fixup touches, mask in the bits
122 // from the fixup value. The Value has been "split up" into the appropriate
133 bool fixupNeedsRelaxation(const MCFixup &Fixup,
    [all...]
PPCELFObjectWriter.cpp 28 const MCFixup &Fixup,
30 virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
36 const MCFixup &Fixup,
39 const MCFixup &Fixup,
53 const MCFixup &Fixup,
62 switch ((unsigned)Fixup.getKind()) {
100 switch ((unsigned)Fixup.getKind()) {
101 default: llvm_unreachable("invalid fixup kind!");
358 const MCFixup &Fixup,
362 return getRelocTypeInner(Target, Fixup, IsPCRel)
    [all...]
  /external/llvm/lib/Target/AArch64/MCTargetDesc/
AArch64AsmBackend.cpp 11 // which is principally concerned with relaxation of the various fixup kinds.
45 const MCFixup &Fixup, const MCFragment *DF,
53 const MCFixup &Fixup,
69 if ((uint32_t)Fixup.getKind() == AArch64::fixup_a64_adr_prel_page ||
70 (uint32_t)Fixup.getKind() == AArch64::fixup_a64_adr_prel_got_page ||
71 (uint32_t)Fixup.getKind() == AArch64::fixup_a64_adr_gottprel_page ||
72 (uint32_t)Fixup.getKind() == AArch64::fixup_a64_tlsdesc_adr_page)
88 bool fixupNeedsRelaxation(const MCFixup &Fixup,
178 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
180 unsigned NumBytes = getFixupKindInfo(Fixup.getKind()).TargetSize / 8
    [all...]