Home
last modified time | relevance | path

Searched refs:Fixup (Results 1 – 25 of 132) sorted by relevance

123456

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AVR/MCTargetDesc/
DAVRAsmBackend.cpp38 const MCFixup &Fixup, MCContext *Ctx = nullptr) { in signed_width() argument
49 Ctx->reportFatalError(Fixup.getLoc(), Diagnostic); in signed_width()
57 const MCFixup &Fixup, MCContext *Ctx = nullptr) { in unsigned_width() argument
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, Value, Ctx); in fixup_call()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/MCTargetDesc/
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.getLoc(), BAD_ILP32_MOV(TLSLD_MOVW_DTPREL_G2)); in isNonILP32reloc()
[all …]
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.getLoc(), "fixup value out of range"); in adjustFixupValue()
[all …]
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() argument
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() argument
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.getLoc(), in recordRelocation()
[all …]
DAArch64WinCOFFObjectWriter.cpp36 const MCFixup &Fixup, bool IsCrossSection,
45 MCContext &Ctx, const MCValue &Target, const MCFixup &Fixup, in getRelocType() argument
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()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/BPF/MCTargetDesc/
DBPFAsmBackend.cpp29 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
38 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument
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.getOffset()], Value, Endian); in applyFixup()
85 } else if (Fixup.getKind() == FK_PCRel_4) { in applyFixup()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/MCTargetDesc/
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, in recordRelocation() argument
64 RecordX86_64Relocation(Writer, Asm, Layout, Fragment, Fixup, Target, in recordRelocation()
67 RecordX86Relocation(Writer, Asm, Layout, Fragment, Fixup, Target, in recordRelocation()
104 const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, in RecordX86_64Relocation() argument
106 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordX86_64Relocation()
107 unsigned IsRIPRel = isFixupKindRIPRel(Fixup.getKind()); in RecordX86_64Relocation()
[all …]
DX86WinCOFFObjectWriter.cpp30 const MCFixup &Fixup, bool IsCrossSection,
42 const MCFixup &Fixup, in getRelocType() argument
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()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/MCTargetDesc/
DARMMachObjectWriter.cpp34 const MCFixup &Fixup,
43 const MCFixup &Fixup, MCValue Target,
57 const MCFixup &Fixup, MCValue Target,
144 const MCFixup &Fixup, in RecordARMScatteredHalfRelocation() argument
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.getTargetKind()) { in RecordARMScatteredHalfRelocation()
[all …]
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() argument
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.getValue())) in adjustFixupValue()
[all …]
DARMWinCOFFObjectWriter.cpp37 const MCFixup &Fixup, bool IsCrossSection,
47 const MCFixup &Fixup, in getRelocType() argument
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()
DARMELFObjectWriter.cpp30 unsigned GetRelocTypeInner(const MCValue &Target, const MCFixup &Fixup,
39 const MCFixup &Fixup, bool IsPCRel) const override;
73 const MCFixup &Fixup, in getRelocType() argument
75 return GetRelocTypeInner(Target, Fixup, IsPCRel, Ctx); in getRelocType()
79 const MCFixup &Fixup, in GetRelocTypeInner() argument
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.getLoc(), "unsupported relocation on symbol"); in GetRelocTypeInner()
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/lib/Target/RISCV/MCTargetDesc/
DRISCVAsmBackend.cpp30 const MCFixup &Fixup, in shouldForceRelocation() argument
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.getLoc(), "fixup value must be 2-byte aligned"); in adjustFixupValue()
[all …]
DRISCVELFObjectWriter.cpp38 const MCFixup &Fixup, bool IsPCRel) const override;
50 const MCFixup &Fixup, in getRelocType() argument
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()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/MSP430/MCTargetDesc/
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, in fixupNeedsRelaxation() argument
56 bool fixupNeedsRelaxationAdvanced(const MCFixup &Fixup, bool Resolved, in fixupNeedsRelaxationAdvanced() argument
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, Value, Asm.getContext()); in applyFixup()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/MCTargetDesc/
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.getLoc(), "out of range PC18 fixup"); in adjustFixupValue()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/
DMCFixup.h106 static MCFixup createAddFor(const MCFixup &Fixup) { in createAddFor() argument
108 FI.Value = Fixup.getValue(); in createAddFor()
109 FI.Offset = Fixup.getOffset(); in createAddFor()
110 FI.Kind = getAddKindForKind(Fixup.getKind()); in createAddFor()
111 FI.Loc = Fixup.getLoc(); in createAddFor()
117 static MCFixup createSubFor(const MCFixup &Fixup) { in createSubFor() argument
119 FI.Value = Fixup.getValue(); in createSubFor()
120 FI.Offset = Fixup.getOffset(); in createSubFor()
121 FI.Kind = getSubKindForKind(Fixup.getKind()); in createSubFor()
122 FI.Loc = Fixup.getLoc(); in createSubFor()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/MCTargetDesc/
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.getKind()); in applyFixup()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/MCTargetDesc/
DPPCMachObjectWriter.cpp30 const MCFixup &Fixup, MCValue Target,
35 const MCFragment *Fragment, const MCFixup &Fixup,
44 const MCFixup &Fixup, MCValue Target, in recordRelocation() argument
49 RecordPPCRelocation(Writer, Asm, Layout, Fragment, Fixup, Target, in recordRelocation()
177 const MCFixup &Fixup) { in getFixupOffset() argument
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() argument
195 const uint32_t FixupOffset = getFixupOffset(Layout, Fragment, Fixup); in recordScatteredRelocation()
196 const MCFixupKind FK = Fixup.getKind(); in recordScatteredRelocation()
[all …]
DPPCAsmBackend.cpp122 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup, in applyFixup() argument
126 Value = adjustFixupValue(Fixup.getKind(), Value); in applyFixup()
129 unsigned Offset = Fixup.getOffset(); in applyFixup()
130 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup()
141 bool shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup, in shouldForceRelocation() argument
143 switch ((unsigned)Fixup.getKind()) { in shouldForceRelocation()
173 bool fixupNeedsRelaxation(const MCFixup &Fixup, in fixupNeedsRelaxation() argument
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Sparc/MCTargetDesc/
DSparcELFObjectWriter.cpp33 const MCFixup &Fixup, bool IsPCRel) const override;
43 const MCFixup &Fixup, in getRelocType() argument
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()
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceELFSection.h241 void addRelocation(const AssemblerFixup &Fixup) { Fixups.push_back(Fixup); } in addRelocation() argument
359 for (const AssemblerFixup &Fixup : Fixups) { in writeData() local
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.offset(); in writeData()
382 Rel.r_offset = Fixup.position(); in writeData()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/
DMCAssembler.cpp192 const MCFixup &Fixup, const MCFragment *DF, in evaluateFixup() argument
203 const MCExpr *Expr = Fixup.getValue(); in evaluateFixup()
207 if (!Expr->evaluateAsRelocatable(Target, &Layout, &Fixup)) { in evaluateFixup()
208 Ctx.reportError(Fixup.getLoc(), "expected relocatable expression"); in evaluateFixup()
213 Ctx.reportError(Fixup.getLoc(), in evaluateFixup()
220 bool IsTarget = getBackendPtr()->getFixupKindInfo(Fixup.getKind()).Flags & in evaluateFixup()
224 return getBackend().evaluateTargetFixup(*this, Layout, Fixup, DF, Target, in evaluateFixup()
227 unsigned FixupFlags = getBackendPtr()->getFixupKindInfo(Fixup.getKind()).Flags; in evaluateFixup()
228 bool IsPCRel = getBackendPtr()->getFixupKindInfo(Fixup.getKind()).Flags & in evaluateFixup()
265 bool ShouldAlignPC = getBackend().getFixupKindInfo(Fixup.getKind()).Flags & in evaluateFixup()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/MCTargetDesc/
DWebAssemblyAsmBackend.cpp47 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
56 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument
102 const MCFixup &Fixup, in applyFixup() argument
107 const MCFixupKindInfo &Info = getFixupKindInfo(Fixup.getKind()); in applyFixup()
117 unsigned Offset = Fixup.getOffset(); in applyFixup()

123456