Home
last modified time | relevance | path

Searched refs:Fixup (Results 1 - 25 of 105) sorted by relevance

12345

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRAsmBackend.cpp38 const MCFixup &Fixup, MCContext *Ctx = nullptr) { in signed_width()
49 Ctx->reportFatalError(Fixup.getLoc(), Diagnostic); in signed_width()
57 const MCFixup &Fixup, MCContext *Ctx = nullptr) { in unsigned_width()
67 Ctx->reportFatalError(Fixup.getLoc(), Diagnostic); in unsigned_width()
75 void adjustBranch(unsigned Size, const MCFixup &Fixup, uint64_t &Value, in adjustBranch() argument
79 unsigned_width(Size + 1, Value, std::string("branch target"), Fixup, Ctx); in adjustBranch()
86 void adjustRelativeBranch(unsigned Size, const MCFixup &Fixup, uint64_t &Value, in adjustRelativeBranch() argument
90 signed_width(Size + 1, Value, std::string("branch target"), Fixup, Ctx); in adjustRelativeBranch()
104 void fixup_call(unsigned Size, const MCFixup &Fixup, uint64_t &Value, in fixup_call() argument
106 adjustBranch(Size, Fixup, Valu in fixup_call()
37 signed_width(unsigned Width, uint64_t Value, std::string Description, const MCFixup &Fixup, MCContext *Ctx = nullptr) signed_width() argument
56 unsigned_width(unsigned Width, uint64_t Value, std::string Description, const MCFixup &Fixup, MCContext *Ctx = nullptr) unsigned_width() argument
120 fixup_7_pcrel(unsigned Size, const MCFixup &Fixup, uint64_t &Value, MCContext *Ctx = nullptr) fixup_7_pcrel() argument
134 fixup_13_pcrel(unsigned Size, const MCFixup &Fixup, uint64_t &Value, MCContext *Ctx = nullptr) fixup_13_pcrel() argument
147 fixup_6_adiw(const MCFixup &Fixup, uint64_t &Value, MCContext *Ctx = nullptr) fixup_6_adiw() argument
158 fixup_port5(const MCFixup &Fixup, uint64_t &Value, MCContext *Ctx = nullptr) fixup_port5() argument
171 fixup_port6(const MCFixup &Fixup, uint64_t &Value, MCContext *Ctx = nullptr) fixup_port6() argument
192 fixup(unsigned Size, const MCFixup &Fixup, uint64_t &Value, MCContext *Ctx = nullptr) fixup() argument
202 lo8(unsigned Size, const MCFixup &Fixup, uint64_t &Value, MCContext *Ctx = nullptr) lo8() argument
208 hi8(unsigned Size, const MCFixup &Fixup, uint64_t &Value, MCContext *Ctx = nullptr) hi8() argument
214 hh8(unsigned Size, const MCFixup &Fixup, uint64_t &Value, MCContext *Ctx = nullptr) hh8() argument
220 ms8(unsigned Size, const MCFixup &Fixup, uint64_t &Value, MCContext *Ctx = nullptr) ms8() argument
232 adjustFixupValue(const MCFixup &Fixup, const MCValue &Target, uint64_t &Value, MCContext *Ctx) const adjustFixupValue() argument
359 applyFixup(const MCAssembler &Asm, const MCFixup &Fixup, const MCValue &Target, MutableArrayRef<char> Data, uint64_t Value, bool IsResolved, const MCSubtargetInfo *STI) const applyFixup() argument
466 shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup, const MCValue &Target) shouldForceRelocation() argument
[all...]
H A DAVRAsmBackend.h36 void adjustFixupValue(const MCFixup &Fixup, const MCValue &Target,
42 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
58 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
70 bool shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64ELFObjectWriter.cpp39 const MCFixup &Fixup, bool IsPCRel) const override;
57 static bool isNonILP32reloc(const MCFixup &Fixup, in isNonILP32reloc() argument
60 if (Fixup.getTargetKind() != AArch64::fixup_aarch64_movw) in isNonILP32reloc()
64 Ctx.reportError(Fixup.getLoc(), BAD_ILP32_MOV(MOVW_UABS_G3)); in isNonILP32reloc()
67 Ctx.reportError(Fixup.getLoc(), BAD_ILP32_MOV(MOVW_UABS_G2)); in isNonILP32reloc()
70 Ctx.reportError(Fixup.getLoc(), BAD_ILP32_MOV(MOVW_SABS_G2)); in isNonILP32reloc()
73 Ctx.reportError(Fixup.getLoc(), BAD_ILP32_MOV(MOVW_UABS_G2_NC)); in isNonILP32reloc()
76 Ctx.reportError(Fixup.getLoc(), BAD_ILP32_MOV(MOVW_SABS_G1)); in isNonILP32reloc()
79 Ctx.reportError(Fixup.getLoc(), BAD_ILP32_MOV(MOVW_UABS_G1_NC)); in isNonILP32reloc()
82 Ctx.reportError(Fixup in isNonILP32reloc()
105 getRelocType(MCContext &Ctx, const MCValue &Target, const MCFixup &Fixup, bool IsPCRel) const getRelocType() argument
[all...]
H A DAArch64MachObjectWriter.cpp35 bool getAArch64FixupKindMachOInfo(const MCFixup &Fixup, unsigned &RelocType,
45 const MCFixup &Fixup, MCValue Target,
52 const MCFixup &Fixup, unsigned &RelocType, const MCSymbolRefExpr *Sym, in getAArch64FixupKindMachOInfo()
57 switch (Fixup.getTargetKind()) { in getAArch64FixupKindMachOInfo()
102 Asm.getContext().reportError(Fixup.getLoc(), in getAArch64FixupKindMachOInfo()
153 const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, in recordRelocation()
155 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordRelocation()
163 unsigned Kind = Fixup.getKind(); in recordRelocation()
166 FixupOffset += Fixup.getOffset(); in recordRelocation()
182 Asm.getContext().reportError(Fixup in recordRelocation()
51 getAArch64FixupKindMachOInfo( const MCFixup &Fixup, unsigned &RelocType, const MCSymbolRefExpr *Sym, unsigned &Log2Size, const MCAssembler &Asm) getAArch64FixupKindMachOInfo() argument
151 recordRelocation( MachObjectWriter *Writer, MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, uint64_t &FixedValue) recordRelocation() argument
[all...]
H A DAArch64AsmBackend.cpp79 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
86 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
99 bool shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup,
166 static uint64_t adjustFixupValue(const MCFixup &Fixup, const MCValue &Target, in adjustFixupValue() argument
170 switch (Fixup.getTargetKind()) { in adjustFixupValue()
175 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
186 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
188 Ctx.reportError(Fixup.getLoc(), "fixup not sufficiently aligned"); in adjustFixupValue()
197 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
204 Ctx.reportError(Fixup in adjustFixupValue()
384 applyFixup(const MCAssembler &Asm, const MCFixup &Fixup, const MCValue &Target, MutableArrayRef<char> Data, uint64_t Value, bool IsResolved, const MCSubtargetInfo *STI) const applyFixup() argument
443 fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, const MCRelaxableFragment *DF, const MCAsmLayout &Layout) const fixupNeedsRelaxation() argument
473 shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup, const MCValue &Target) shouldForceRelocation() argument
[all...]
H A DAArch64WinCOFFObjectWriter.cpp36 const MCFixup &Fixup, bool IsCrossSection,
45 MCContext &Ctx, const MCValue &Target, const MCFixup &Fixup, in getRelocType()
49 const MCExpr *Expr = Fixup.getValue(); in getRelocType()
51 switch (static_cast<unsigned>(Fixup.getKind())) { in getRelocType()
53 const MCFixupKindInfo &Info = MAB.getFixupKindInfo(Fixup.getKind()); in getRelocType()
116 bool AArch64WinCOFFObjectWriter::recordRelocation(const MCFixup &Fixup) const { in recordRelocation()
44 getRelocType( MCContext &Ctx, const MCValue &Target, const MCFixup &Fixup, bool IsCrossSection, const MCAsmBackend &MAB) const getRelocType() argument
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/MCTargetDesc/
H A DX86MachObjectWriter.cpp31 const MCFixup &Fixup,
39 const MCFixup &Fixup,
47 const MCFixup &Fixup,
52 const MCFragment *Fragment, const MCFixup &Fixup,
61 const MCFixup &Fixup, MCValue Target,
64 RecordX86_64Relocation(Writer, Asm, Layout, Fragment, Fixup, Target,
67 RecordX86Relocation(Writer, Asm, Layout, Fragment, Fixup, Target,
104 const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, in RecordX86_64Relocation()
106 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordX86_64Relocation()
107 unsigned IsRIPRel = isFixupKindRIPRel(Fixup in RecordX86_64Relocation()
102 RecordX86_64Relocation( MachObjectWriter *Writer, MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, uint64_t &FixedValue) RecordX86_64Relocation() argument
363 recordScatteredRelocation(MachObjectWriter *Writer, const MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, unsigned Log2Size, uint64_t &FixedValue) recordScatteredRelocation() argument
463 recordTLVPRelocation(MachObjectWriter *Writer, const MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, uint64_t &FixedValue) recordTLVPRelocation() argument
503 RecordX86Relocation(MachObjectWriter *Writer, const MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, uint64_t &FixedValue) RecordX86Relocation() argument
[all...]
H A DX86WinCOFFObjectWriter.cpp30 const MCFixup &Fixup, bool IsCrossSection,
42 const MCFixup &Fixup, in getRelocType()
45 unsigned FixupKind = Fixup.getKind(); in getRelocType()
48 Ctx.reportError(Fixup.getLoc(), "Cannot represent this expression"); in getRelocType()
81 Ctx.reportError(Fixup.getLoc(), "unsupported relocation type"); in getRelocType()
103 Ctx.reportError(Fixup.getLoc(), "unsupported relocation type"); in getRelocType()
40 getRelocType(MCContext &Ctx, const MCValue &Target, const MCFixup &Fixup, bool IsCrossSection, const MCAsmBackend &MAB) const getRelocType() argument
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/BPF/MCTargetDesc/
H A DBPFAsmBackend.cpp29 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
38 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
69 void BPFAsmBackend::applyFixup(const MCAssembler &Asm, const MCFixup &Fixup, in applyFixup() argument
74 if (Fixup.getKind() == FK_SecRel_4 || Fixup.getKind() == FK_SecRel_8) { in applyFixup()
78 support::endian::write<uint32_t>(&Data[Fixup.getOffset() + 4], in applyFixup()
81 } else if (Fixup.getKind() == FK_Data_4) { in applyFixup()
82 support::endian::write<uint32_t>(&Data[Fixup.getOffset()], Value, Endian); in applyFixup()
83 } else if (Fixup.getKind() == FK_Data_8) { in applyFixup()
84 support::endian::write<uint64_t>(&Data[Fixup in applyFixup()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVAsmBackend.cpp30 const MCFixup &Fixup, in shouldForceRelocation()
32 switch (Fixup.getTargetKind()) { in shouldForceRelocation()
51 bool RISCVAsmBackend::fixupNeedsRelaxationAdvanced(const MCFixup &Fixup, in fixupNeedsRelaxationAdvanced() argument
65 switch (Fixup.getTargetKind()) { in fixupNeedsRelaxationAdvanced()
154 static uint64_t adjustFixupValue(const MCFixup &Fixup, uint64_t Value, in adjustFixupValue() argument
156 switch (Fixup.getTargetKind()) { in adjustFixupValue()
184 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
186 Ctx.reportError(Fixup.getLoc(), "fixup value must be 2-byte aligned"); in adjustFixupValue()
201 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
203 Ctx.reportError(Fixup in adjustFixupValue()
29 shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup, const MCValue &Target) shouldForceRelocation() argument
255 evaluateTargetFixup( const MCAssembler &Asm, const MCAsmLayout &Layout, const MCFixup &Fixup, const MCFragment *DF, const MCValue &Target, uint64_t &Value, bool &WasForced) evaluateTargetFixup() argument
316 applyFixup(const MCAssembler &Asm, const MCFixup &Fixup, const MCValue &Target, MutableArrayRef<char> Data, uint64_t Value, bool IsResolved, const MCSubtargetInfo *STI) const applyFixup() argument
385 MCFixup Fixup = shouldInsertFixupForCodeAlign() local
[all...]
H A DRISCVELFObjectWriter.cpp38 const MCFixup &Fixup, bool IsPCRel) const override;
50 const MCFixup &Fixup, in getRelocType()
52 const MCExpr *Expr = Fixup.getValue(); in getRelocType()
54 unsigned Kind = Fixup.getTargetKind(); in getRelocType()
58 Ctx.reportError(Fixup.getLoc(), "Unsupported relocation type"); in getRelocType()
92 Ctx.reportError(Fixup.getLoc(), "Unsupported relocation type"); in getRelocType()
95 Ctx.reportError(Fixup.getLoc(), "1-byte data relocations not supported"); in getRelocType()
98 Ctx.reportError(Fixup.getLoc(), "2-byte data relocations not supported"); in getRelocType()
48 getRelocType(MCContext &Ctx, const MCValue &Target, const MCFixup &Fixup, bool IsPCRel) const getRelocType() argument
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/MSP430/MCTargetDesc/
H A DMSP430AsmBackend.cpp32 uint64_t adjustFixupValue(const MCFixup &Fixup, uint64_t Value,
40 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
50 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
56 bool fixupNeedsRelaxationAdvanced(const MCFixup &Fixup, bool Resolved,
104 uint64_t MSP430AsmBackend::adjustFixupValue(const MCFixup &Fixup, in adjustFixupValue() argument
107 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
111 Ctx.reportError(Fixup.getLoc(), "fixup value must be 2-byte aligned"); in adjustFixupValue()
121 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue()
133 void MSP430AsmBackend::applyFixup(const MCAssembler &Asm, const MCFixup &Fixup, in applyFixup() argument
138 Value = adjustFixupValue(Fixup, Valu in applyFixup()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMMachObjectWriter.cpp34 const MCFixup &Fixup,
43 const MCFixup &Fixup, MCValue Target,
57 const MCFixup &Fixup, MCValue Target,
144 const MCFixup &Fixup, in RecordARMScatteredHalfRelocation()
147 uint32_t FixupOffset = Layout.getFragmentOffset(Fragment)+Fixup.getOffset(); in RecordARMScatteredHalfRelocation()
150 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredHalfRelocation()
157 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordARMScatteredHalfRelocation()
164 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredHalfRelocation()
179 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredHalfRelocation()
207 switch (Fixup in RecordARMScatteredHalfRelocation()
140 RecordARMScatteredHalfRelocation(MachObjectWriter *Writer, const MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, uint64_t &FixedValue) RecordARMScatteredHalfRelocation() argument
253 RecordARMScatteredRelocation(MachObjectWriter *Writer, const MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, unsigned Type, unsigned Log2Size, uint64_t &FixedValue) RecordARMScatteredRelocation() argument
375 recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, uint64_t &FixedValue) recordRelocation() argument
[all...]
H A DARMAsmBackend.cpp232 const char *ARMAsmBackend::reasonForFixupRelaxation(const MCFixup &Fixup, in reasonForFixupRelaxation() argument
234 switch (Fixup.getTargetKind()) { in reasonForFixupRelaxation()
311 bool ARMAsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument
314 return reasonForFixupRelaxation(Fixup, Value); in fixupNeedsRelaxation()
415 const MCFixup &Fixup, in adjustFixupValue()
419 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
437 Ctx.reportError(Fixup.getLoc(), "bad relocation fixup type"); in adjustFixupValue()
491 Ctx.reportError(Fixup.getLoc(), "out of range pc-relative fixup value"); in adjustFixupValue()
512 Ctx.reportError(Fixup.getLoc(), "out of range pc-relative fixup value"); in adjustFixupValue()
543 dyn_cast<MCSymbolRefExpr>(Fixup in adjustFixupValue()
414 adjustFixupValue(const MCAssembler &Asm, const MCFixup &Fixup, const MCValue &Target, uint64_t Value, bool IsResolved, MCContext &Ctx, const MCSubtargetInfo* STI) const adjustFixupValue() argument
866 shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup, const MCValue &Target) shouldForceRelocation() argument
1033 applyFixup(const MCAssembler &Asm, const MCFixup &Fixup, const MCValue &Target, MutableArrayRef<char> Data, uint64_t Value, bool IsResolved, const MCSubtargetInfo* STI) const applyFixup() argument
[all...]
H A DARMWinCOFFObjectWriter.cpp37 const MCFixup &Fixup, bool IsCrossSection,
47 const MCFixup &Fixup, in getRelocType()
56 switch (static_cast<unsigned>(Fixup.getKind())) { in getRelocType()
58 const MCFixupKindInfo &Info = MAB.getFixupKindInfo(Fixup.getKind()); in getRelocType()
87 bool ARMWinCOFFObjectWriter::recordRelocation(const MCFixup &Fixup) const { in recordRelocation()
88 return static_cast<unsigned>(Fixup.getKind()) != ARM::fixup_t2_movt_hi16; in recordRelocation()
45 getRelocType(MCContext &Ctx, const MCValue &Target, const MCFixup &Fixup, bool IsCrossSection, const MCAsmBackend &MAB) const getRelocType() argument
H A DARMELFObjectWriter.cpp30 unsigned GetRelocTypeInner(const MCValue &Target, const MCFixup &Fixup,
39 const MCFixup &Fixup, bool IsPCRel) const override;
69 // Need to examine the Fixup when determining whether to
73 const MCFixup &Fixup, in getRelocType()
75 return GetRelocTypeInner(Target, Fixup, IsPCRel, Ctx); in getRelocType()
79 const MCFixup &Fixup, in GetRelocTypeInner()
85 switch (Fixup.getTargetKind()) { in GetRelocTypeInner()
87 Ctx.reportFatalError(Fixup.getLoc(), "unsupported relocation on symbol"); in GetRelocTypeInner()
148 switch (Fixup.getTargetKind()) { in GetRelocTypeInner()
150 Ctx.reportFatalError(Fixup in GetRelocTypeInner()
72 getRelocType(MCContext &Ctx, const MCValue &Target, const MCFixup &Fixup, bool IsPCRel) const getRelocType() argument
78 GetRelocTypeInner(const MCValue &Target, const MCFixup &Fixup, bool IsPCRel, MCContext &Ctx) const GetRelocTypeInner() argument
[all...]
H A DARMAsmBackend.h44 bool shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup,
47 unsigned adjustFixupValue(const MCAssembler &Asm, const MCFixup &Fixup,
52 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
62 const char *reasonForFixupRelaxation(const MCFixup &Fixup,
65 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/
H A DMCFixup.h105 /// the given Fixup.
106 static MCFixup createAddFor(const MCFixup &Fixup) {
108 FI.Value = Fixup.getValue();
109 FI.Offset = Fixup.getOffset();
110 FI.Kind = getAddKindForKind(Fixup.getKind());
111 FI.Loc = Fixup.getLoc();
116 /// the given Fixup.
117 static MCFixup createSubFor(const MCFixup &Fixup) {
119 FI.Value = Fixup.getValue();
120 FI.Offset = Fixup
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCMachObjectWriter.cpp30 const MCFixup &Fixup, MCValue Target,
35 const MCFragment *Fragment, const MCFixup &Fixup,
44 const MCFixup &Fixup, MCValue Target,
49 RecordPPCRelocation(Writer, Asm, Layout, Fragment, Fixup, Target,
84 // Fixup.getKind() in getRelocType()
177 const MCFixup &Fixup) { in getFixupOffset()
178 uint32_t FixupOffset = Layout.getFragmentOffset(Fragment) + Fixup.getOffset(); in getFixupOffset()
181 if (Fixup.getTargetKind() == PPC::fixup_ppc_half16) in getFixupOffset()
192 const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, in recordScatteredRelocation()
195 const uint32_t FixupOffset = getFixupOffset(Layout, Fragment, Fixup); in recordScatteredRelocation()
175 getFixupOffset(const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup) getFixupOffset() argument
190 recordScatteredRelocation( MachObjectWriter *Writer, const MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, unsigned Log2Size, uint64_t &FixedValue) recordScatteredRelocation() argument
300 RecordPPCRelocation( MachObjectWriter *Writer, const MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, uint64_t &FixedValue) RecordPPCRelocation() argument
[all...]
H A DPPCAsmBackend.cpp122 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
126 Value = adjustFixupValue(Fixup.getKind(), Value);
129 unsigned Offset = Fixup.getOffset();
130 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind());
141 bool shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup,
143 switch ((unsigned)Fixup.getKind()) {
173 bool fixupNeedsRelaxation(const MCFixup &Fixup,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsAsmBackend.cpp38 static unsigned adjustFixupValue(const MCFixup &Fixup, uint64_t Value, in adjustFixupValue() argument
41 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
82 Ctx.reportError(Fixup.getLoc(), "out of range PC16 fixup"); in adjustFixupValue()
92 Ctx.reportError(Fixup.getLoc(), "out of range PC19 fixup"); in adjustFixupValue()
131 Ctx.reportError(Fixup.getLoc(), "out of range PC7 fixup"); in adjustFixupValue()
141 Ctx.reportError(Fixup.getLoc(), "out of range PC10 fixup"); in adjustFixupValue()
151 Ctx.reportError(Fixup.getLoc(), "out of range PC16 fixup"); in adjustFixupValue()
160 Ctx.reportError(Fixup.getLoc(), "out of range PC18 fixup"); in adjustFixupValue()
167 Ctx.reportError(Fixup.getLoc(), "out of range PC18 fixup"); in adjustFixupValue()
173 Ctx.reportError(Fixup in adjustFixupValue()
243 applyFixup(const MCAssembler &Asm, const MCFixup &Fixup, const MCValue &Target, MutableArrayRef<char> Data, uint64_t Value, bool IsResolved, const MCSubtargetInfo *STI) const applyFixup() argument
533 shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup, const MCValue &Target) shouldForceRelocation() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUAsmBackend.cpp34 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
38 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
65 bool AMDGPUAsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup, in fixupNeedsRelaxation() argument
108 static uint64_t adjustFixupValue(const MCFixup &Fixup, uint64_t Value, in adjustFixupValue() argument
112 switch (Fixup.getTargetKind()) { in adjustFixupValue()
117 Ctx->reportError(Fixup.getLoc(), "branch size exceeds simm16"); in adjustFixupValue()
133 void AMDGPUAsmBackend::applyFixup(const MCAssembler &Asm, const MCFixup &Fixup, in applyFixup() argument
138 Value = adjustFixupValue(Fixup, Value, &Asm.getContext()); in applyFixup()
142 MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind()); in applyFixup()
147 unsigned NumBytes = getFixupKindNumBytes(Fixup in applyFixup()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Sparc/MCTargetDesc/
H A DSparcELFObjectWriter.cpp33 const MCFixup &Fixup, bool IsPCRel) const override;
43 const MCFixup &Fixup, in getRelocType()
46 if (const SparcMCExpr *SExpr = dyn_cast<SparcMCExpr>(Fixup.getValue())) { in getRelocType()
52 switch(Fixup.getTargetKind()) { in getRelocType()
68 switch(Fixup.getTargetKind()) { in getRelocType()
72 case FK_Data_2: return ((Fixup.getOffset() % 2) in getRelocType()
75 case FK_Data_4: return ((Fixup.getOffset() % 4) in getRelocType()
78 case FK_Data_8: return ((Fixup.getOffset() % 8) in getRelocType()
41 getRelocType(MCContext &Ctx, const MCValue &Target, const MCFixup &Fixup, bool IsPCRel) const getRelocType() argument
H A DSparcAsmBackend.cpp226 bool shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup,
228 switch ((Sparc::Fixups)Fixup.getKind()) {
265 bool fixupNeedsRelaxation(const MCFixup &Fixup,
298 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
303 Value = adjustFixupValue(Fixup.getKind(), Value);
306 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind());
307 unsigned Offset = Fixup.getOffset();
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
H A DIceELFSection.h241 void addRelocation(const AssemblerFixup &Fixup) { Fixups.push_back(Fixup); } in addRelocation() argument
359 for (const AssemblerFixup &Fixup : Fixups) { in writeData()
361 if (Fixup.isNullSymbol()) { in writeData()
363 } else if (Fixup.valueIsSymbol()) { in writeData()
364 Symbol = Fixup.getSymbolValue(); in writeData()
366 GlobalString Name = Fixup.symbol(); in writeData()
374 Rela.r_offset = Fixup.position(); in writeData()
375 Rela.setSymbolAndType(Symbol->getNumber(), Fixup.kind()); in writeData()
376 Rela.r_addend = Fixup in writeData()
[all...]

Completed in 18 milliseconds

12345