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

1 2 3 4 5 6 7 8 910

  /device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/Ipf/
PeCoffLoaderEx.c 78 IN OUT CHAR8 *Fixup,
86 Performs an Itanium-based specific relocation fixup
92 Fixup - Pointer to the address to fix up
96 Adjust - The offset to adjust the fixup
116 Fixup = (CHAR8 *)((UINTN) Fixup & (UINTN) ~(15));
123 (UINT32 *)Fixup + IMM64_IMM7B_INST_WORD_X,
130 (UINT32 *)Fixup + IMM64_IMM9D_INST_WORD_X,
137 (UINT32 *)Fixup + IMM64_IMM5C_INST_WORD_X,
144 (UINT32 *)Fixup + IMM64_IC_INST_WORD_X,
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/BPF/MCTargetDesc/
BPFAsmBackend.cpp 30 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
39 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
70 void BPFAsmBackend::applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
75 if (Fixup.getKind() == FK_SecRel_4 || Fixup.getKind() == FK_SecRel_8) {
78 Ctx.reportError(Fixup.getLoc(),
82 } else if (Fixup.getKind() == FK_Data_4) {
83 support::endian::write<uint32_t>(&Data[Fixup.getOffset()], Value, Endian);
84 } else if (Fixup.getKind() == FK_Data_8) {
85 support::endian::write<uint64_t>(&Data[Fixup.getOffset()], Value, Endian)
    [all...]
BPFELFObjectWriter.cpp 29 const MCFixup &Fixup, bool IsPCRel) const override;
39 const MCFixup &Fixup,
42 switch ((unsigned)Fixup.getKind()) {
44 llvm_unreachable("invalid fixup kind!");
  /device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffLib/Ipf/
PeCoffLoaderEx.c 75 Performs an Itanium-based specific relocation fixup.
78 @param Fixup Pointer to the address to fix up.
80 @param Adjust The offset to adjust the fixup.
88 IN OUT CHAR8 *Fixup,
104 Fixup = (CHAR8 *)((UINTN) Fixup & (UINTN) ~(15));
111 (UINT32 *)Fixup + IMM64_IMM7B_INST_WORD_X,
118 (UINT32 *)Fixup + IMM64_IMM9D_INST_WORD_X,
125 (UINT32 *)Fixup + IMM64_IMM5C_INST_WORD_X,
132 (UINT32 *)Fixup + IMM64_IC_INST_WORD_X,
    [all...]
  /device/linaro/bootloader/edk2/MdePkg/Library/BasePeCoffLib/Ipf/
PeCoffLoaderEx.c 67 Performs an Itanium-based specific relocation fixup.
70 @param Fixup The pointer to the address to fix up.
72 @param Adjust The offset to adjust the fixup.
81 IN OUT CHAR8 *Fixup,
97 Fixup = (CHAR8 *)((UINTN) Fixup & (UINTN) ~(15));
104 (UINT32 *)Fixup + IMM64_IMM7B_INST_WORD_X,
111 (UINT32 *)Fixup + IMM64_IMM9D_INST_WORD_X,
118 (UINT32 *)Fixup + IMM64_IMM5C_INST_WORD_X,
125 (UINT32 *)Fixup + IMM64_IC_INST_WORD_X,
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AVR/MCTargetDesc/
AVRAsmBackend.cpp 39 const MCFixup &Fixup, MCContext *Ctx = nullptr) {
50 Ctx->reportFatalError(Fixup.getLoc(), Diagnostic);
58 const MCFixup &Fixup, MCContext *Ctx = nullptr) {
68 Ctx->reportFatalError(Fixup.getLoc(), Diagnostic);
75 /// Adjusts the value of a branch target before fixup application.
76 void adjustBranch(unsigned Size, const MCFixup &Fixup, uint64_t &Value,
80 unsigned_width(Size + 1, Value, std::string("branch target"), Fixup, Ctx);
86 /// Adjusts the value of a relative branch target before fixup application.
87 void adjustRelativeBranch(unsigned Size, const MCFixup &Fixup, uint64_t &Value,
91 signed_width(Size + 1, Value, std::string("branch target"), Fixup, Ctx)
193 void fixup(unsigned Size, const MCFixup &Fixup, uint64_t &Value, function in namespace:adjust::ldi
    [all...]
  /external/llvm/lib/Target/BPF/MCTargetDesc/
BPFAsmBackend.cpp 34 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
40 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
66 void BPFAsmBackend::applyFixup(const MCFixup &Fixup, char *Data,
70 if (Fixup.getKind() == FK_SecRel_4 || Fixup.getKind() == FK_SecRel_8) {
72 } else if (Fixup.getKind() == FK_Data_4 || Fixup.getKind() == FK_Data_8) {
73 unsigned Size = Fixup.getKind() == FK_Data_4 ? 4 : 8;
77 Data[Fixup.getOffset() + Idx] = uint8_t(Value >> (i * 8));
80 assert(Fixup.getKind() == FK_PCRel_2)
    [all...]
BPFELFObjectWriter.cpp 26 const MCFixup &Fixup, bool IsPCRel) const override;
37 const MCFixup &Fixup,
40 switch ((unsigned)Fixup.getKind()) {
42 llvm_unreachable("invalid fixup kind!");
  /external/llvm/lib/Target/WebAssembly/MCTargetDesc/
WebAssemblyELFObjectWriter.cpp 29 const MCFixup &Fixup, bool IsPCRel) const override;
40 const MCFixup &Fixup,
45 dyn_cast<MCSymbolRefExpr>(Fixup.getValue()))
49 switch (Fixup.getKind()) {
57 llvm_unreachable("unimplemented fixup kind");
WebAssemblyAsmBackend.cpp 38 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
44 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
73 void WebAssemblyAsmBackend::applyFixup(const MCFixup &Fixup, char *Data,
76 const MCFixupKindInfo &Info = getFixupKindInfo(Fixup.getKind());
86 unsigned Offset = Fixup.getOffset();
87 assert(Offset + NumBytes <= DataSize && "Invalid fixup offset!");
89 // For each byte of the fragment that the fixup touches, mask in the
90 // bits from the fixup value.
  /external/llvm/lib/Target/ARM/MCTargetDesc/
ARMWinCOFFObjectWriter.cpp 31 unsigned getRelocType(const MCValue &Target, const MCFixup &Fixup,
39 const MCFixup &Fixup,
48 switch (static_cast<unsigned>(Fixup.getKind())) {
50 const MCFixupKindInfo &Info = MAB.getFixupKindInfo(Fixup.getKind());
79 bool ARMWinCOFFObjectWriter::recordRelocation(const MCFixup &Fixup) const {
80 return static_cast<unsigned>(Fixup.getKind()) != ARM::fixup_t2_movt_hi16;
ARMAsmBackend.h 41 /// processFixupValue - Target hook to process the literal value of a fixup
44 const MCFixup &Fixup, const MCFragment *DF,
48 unsigned adjustFixupValue(const MCFixup &Fixup, uint64_t Value, bool IsPCRel,
52 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
59 const char *reasonForFixupRelaxation(const MCFixup &Fixup,
62 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/MCTargetDesc/
ARMWinCOFFObjectWriter.cpp 38 const MCFixup &Fixup, bool IsCrossSection,
48 const MCFixup &Fixup,
57 switch (static_cast<unsigned>(Fixup.getKind())) {
59 const MCFixupKindInfo &Info = MAB.getFixupKindInfo(Fixup.getKind());
88 bool ARMWinCOFFObjectWriter::recordRelocation(const MCFixup &Fixup) const {
89 return static_cast<unsigned>(Fixup.getKind()) != ARM::fixup_t2_movt_hi16;
ARMAsmBackend.h 43 bool shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup,
46 unsigned adjustFixupValue(const MCAssembler &Asm, const MCFixup &Fixup,
51 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
61 const char *reasonForFixupRelaxation(const MCFixup &Fixup,
64 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/MCTargetDesc/
AArch64ELFObjectWriter.cpp 40 const MCFixup &Fixup, bool IsPCRel) const override;
58 static bool isNonILP32reloc(const MCFixup &Fixup,
61 if ((unsigned)Fixup.getKind() != AArch64::fixup_aarch64_movw)
65 Ctx.reportError(Fixup.getLoc(), BAD_ILP32_MOV(MOVW_UABS_G3));
68 Ctx.reportError(Fixup.getLoc(), BAD_ILP32_MOV(MOVW_UABS_G2));
71 Ctx.reportError(Fixup.getLoc(), BAD_ILP32_MOV(MOVW_SABS_G2));
74 Ctx.reportError(Fixup.getLoc(), BAD_ILP32_MOV(MOVW_UABS_G2_NC));
77 Ctx.reportError(Fixup.getLoc(), BAD_ILP32_MOV(MOVW_SABS_G1));
80 Ctx.reportError(Fixup.getLoc(), BAD_ILP32_MOV(MOVW_UABS_G1_NC));
83 Ctx.reportError(Fixup.getLoc(), BAD_ILP32_MOV(TLSLD_MOVW_DTPREL_G2))
    [all...]
AArch64WinCOFFObjectWriter.cpp 37 const MCFixup &Fixup, bool IsCrossSection,
46 MCContext &Ctx, const MCValue &Target, const MCFixup &Fixup,
50 const MCExpr *Expr = Fixup.getValue();
52 switch (static_cast<unsigned>(Fixup.getKind())) {
54 const MCFixupKindInfo &Info = MAB.getFixupKindInfo(Fixup.getKind());
117 bool AArch64WinCOFFObjectWriter::recordRelocation(const MCFixup &Fixup) const {
  /external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/MC/
MCFixup.h 22 /// Extensible enumeration to represent the type of a fixup.
24 FK_Data_1 = 0, ///< A one-byte fixup.
25 FK_Data_2, ///< A two-byte fixup.
26 FK_Data_4, ///< A four-byte fixup.
27 FK_Data_8, ///< A eight-byte fixup.
28 FK_PCRel_1, ///< A one-byte pc relative fixup.
29 FK_PCRel_2, ///< A two-byte pc relative fixup.
30 FK_PCRel_4, ///< A four-byte pc relative fixup.
31 FK_PCRel_8, ///< A eight-byte pc relative fixup.
32 FK_GPRel_1, ///< A one-byte gp relative fixup
    [all...]
  /device/linaro/bootloader/edk2/BaseTools/Source/C/Common/
PeCoffLoaderEx.c 73 IN OUT CHAR8 *Fixup,
81 Performs an IA-32 specific relocation fixup
87 Fixup - Pointer to the address to fix up
91 Adjust - The offset to adjust the fixup
105 IN OUT CHAR8 *Fixup,
113 Performs an Itanium-based specific relocation fixup
119 Fixup - Pointer to the address to fix up
123 Adjust - The offset to adjust the fixup
143 Fixup = (CHAR8 *)((UINTN) Fixup & (UINTN) ~(15));
    [all...]
  /external/llvm/lib/Target/AArch64/MCTargetDesc/
AArch64MachObjectWriter.cpp 28 bool getAArch64FixupKindMachOInfo(const MCFixup &Fixup, unsigned &RelocType,
38 const MCFixup &Fixup, MCValue Target,
44 const MCFixup &Fixup, unsigned &RelocType, const MCSymbolRefExpr *Sym,
49 switch ((unsigned)Fixup.getKind()) {
94 Asm.getContext().reportError(Fixup.getLoc(),
146 const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target,
148 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind());
156 unsigned Kind = Fixup.getKind();
159 FixupOffset += Fixup.getOffset();
175 Asm.getContext().reportError(Fixup.getLoc()
    [all...]
  /external/llvm/lib/Target/AMDGPU/MCTargetDesc/
AMDGPUELFObjectWriter.cpp 24 const MCFixup &Fixup, bool IsPCRel) const override;
39 const MCFixup &Fixup,
55 switch (Fixup.getKind()) {
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Nios2/MCTargetDesc/
Nios2AsmBackend.cpp 27 static unsigned adjustFixupValue(const MCFixup &Fixup, uint64_t Value) {
29 unsigned Kind = Fixup.getKind();
53 /// ApplyFixup - Apply the \p Value for given \p Fixup into the provided
54 /// data fragment, at the offset specified by the fixup and following the
55 /// fixup kind as appropriate.
56 void Nios2AsmBackend::applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
60 MCFixupKind Kind = Fixup.getKind();
61 Value = adjustFixupValue(Fixup, Value);
67 unsigned Offset = Fixup.getOffset();
68 // Number of bytes we need to fixup
    [all...]
  /device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffLib/Ebc/
PeCoffLoaderEx.c 26 Performs an EBC specific relocation fixup.
29 @param Fixup Pointer to the address to fix up.
31 @param Adjust The offset to adjust the fixup.
39 IN OUT CHAR8 *Fixup,
77 Performs an Itanium-based specific re-relocation fixup and is a no-op on other
82 @param Fixup Pointer to the address to fix up.
84 @param Adjust The offset to adjust the fixup.
92 IN OUT CHAR8 *Fixup,
  /device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffLib/Ia32/
PeCoffLoaderEx.c 26 Performs an IA-32 specific relocation fixup.
29 @param Fixup Pointer to the address to fix up.
31 @param Adjust The offset to adjust the fixup.
39 IN OUT CHAR8 *Fixup,
76 Performs an Itanium-based specific re-relocation fixup and is a no-op on other
81 @param Fixup Pointer to the address to fix up.
83 @param Adjust The offset to adjust the fixup.
91 IN OUT CHAR8 *Fixup,
  /device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffLib/X64/
PeCoffLoaderEx.c 27 Performs an x64 specific relocation fixup.
30 @param Fixup Pointer to the address to fix up
32 @param Adjust The offset to adjust the fixup
40 IN OUT CHAR8 *Fixup,
78 Performs an X64 specific re-relocation fixup and is a no-op on other
83 @param Fixup Pointer to the address to fix up.
85 @param Adjust The offset to adjust the fixup.
93 IN OUT CHAR8 *Fixup,
  /device/linaro/bootloader/edk2/MdePkg/Library/BasePeCoffLib/
PeCoffLoaderEx.c 19 Performs an Itanium-based specific relocation fixup and is a no-op on other
23 @param Fixup The pointer to the address to fix up.
25 @param Adjust The offset to adjust the fixup.
33 IN OUT CHAR8 *Fixup,
68 Performs an Itanium-based specific re-relocation fixup and is a no-op on other
73 @param Fixup The pointer to the address to fix up.
75 @param Adjust The offset to adjust the fixup.
83 IN OUT CHAR8 *Fixup,

Completed in 616 milliseconds

1 2 3 4 5 6 7 8 910