/external/llvm/lib/Target/X86/MCTargetDesc/ |
D | X86MachObjectWriter.cpp | 32 const MCFixup &Fixup, 40 const MCFixup &Fixup, 48 const MCFixup &Fixup, 53 const MCFragment *Fragment, const MCFixup &Fixup, 62 const MCFixup &Fixup, MCValue Target, in recordRelocation() argument 65 RecordX86_64Relocation(Writer, Asm, Layout, Fragment, Fixup, Target, in recordRelocation() 68 RecordX86Relocation(Writer, Asm, Layout, Fragment, Fixup, Target, in recordRelocation() 99 const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, in RecordX86_64Relocation() argument 101 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordX86_64Relocation() 102 unsigned IsRIPRel = isFixupKindRIPRel(Fixup.getKind()); in RecordX86_64Relocation() [all …]
|
/external/llvm/lib/Target/BPF/MCTargetDesc/ |
D | BPFAsmBackend.cpp | 34 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize, 40 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument 65 void BPFAsmBackend::applyFixup(const MCFixup &Fixup, char *Data, in applyFixup() argument 69 if (Fixup.getKind() == FK_SecRel_4 || Fixup.getKind() == FK_SecRel_8) { in applyFixup() 71 } else if (Fixup.getKind() == FK_Data_4 || Fixup.getKind() == FK_Data_8) { in applyFixup() 72 unsigned Size = Fixup.getKind() == FK_Data_4 ? 4 : 8; in applyFixup() 76 Data[Fixup.getOffset() + Idx] = uint8_t(Value >> (i * 8)); in applyFixup() 79 assert(Fixup.getKind() == FK_PCRel_2); in applyFixup() 82 Data[Fixup.getOffset() + 2] = Value & 0xFF; in applyFixup() 83 Data[Fixup.getOffset() + 3] = Value >> 8; in applyFixup() [all …]
|
D | BPFELFObjectWriter.cpp | 25 unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup, 37 const MCFixup &Fixup, in GetRelocType() argument 40 switch ((unsigned)Fixup.getKind()) { in GetRelocType()
|
/external/llvm/lib/Target/AArch64/MCTargetDesc/ |
D | 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, in getAArch64FixupKindMachOInfo() argument 49 switch ((unsigned)Fixup.getKind()) { in getAArch64FixupKindMachOInfo() 94 Asm.getContext().reportError(Fixup.getLoc(), in getAArch64FixupKindMachOInfo() 146 const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, in recordRelocation() argument 148 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordRelocation() 156 unsigned Kind = Fixup.getKind(); in recordRelocation() 159 FixupOffset += Fixup.getOffset(); in recordRelocation() 175 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation() [all …]
|
D | AArch64AsmBackend.cpp | 70 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize, 74 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, 204 void AArch64AsmBackend::applyFixup(const MCFixup &Fixup, char *Data, in applyFixup() argument 207 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup() 210 MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind()); in applyFixup() 212 Value = adjustFixupValue(Fixup.getKind(), Value); in applyFixup() 217 unsigned Offset = Fixup.getOffset(); in applyFixup() 230 bool AArch64AsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup, in fixupNeedsRelaxation() argument 466 const MCFixup &Fixup, const MCFragment *DF, 470 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize, [all …]
|
/external/llvm/lib/Target/ARM/MCTargetDesc/ |
D | ARMMachObjectWriter.cpp | 33 const MCFixup &Fixup, 42 const MCFixup &Fixup, MCValue Target, 56 const MCFixup &Fixup, MCValue Target, 143 const MCFixup &Fixup, in RecordARMScatteredHalfRelocation() argument 146 uint32_t FixupOffset = Layout.getFragmentOffset(Fragment)+Fixup.getOffset(); in RecordARMScatteredHalfRelocation() 147 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordARMScatteredHalfRelocation() 154 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredHalfRelocation() 169 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredHalfRelocation() 197 switch ((unsigned)Fixup.getKind()) { in RecordARMScatteredHalfRelocation() 247 const MCFixup &Fixup, in RecordARMScatteredRelocation() argument [all …]
|
D | ARMAsmBackend.cpp | 187 const char *ARMAsmBackend::reasonForFixupRelaxation(const MCFixup &Fixup, in reasonForFixupRelaxation() argument 189 switch ((unsigned)Fixup.getKind()) { in reasonForFixupRelaxation() 240 bool ARMAsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument 243 return reasonForFixupRelaxation(Fixup, Value); in fixupNeedsRelaxation() 342 unsigned ARMAsmBackend::adjustFixupValue(const MCFixup &Fixup, uint64_t Value, in adjustFixupValue() argument 346 unsigned Kind = Fixup.getKind(); in adjustFixupValue() 399 Ctx->reportError(Fixup.getLoc(), "out of range pc-relative fixup value"); in adjustFixupValue() 420 Ctx->reportError(Fixup.getLoc(), "out of range pc-relative fixup value"); in adjustFixupValue() 451 dyn_cast<MCSymbolRefExpr>(Fixup.getValue())) in adjustFixupValue() 529 dyn_cast<MCSymbolRefExpr>(Fixup.getValue())) in adjustFixupValue() [all …]
|
D | ARMWinCOFFObjectWriter.cpp | 31 unsigned getRelocType(const MCValue &Target, const MCFixup &Fixup, 39 const MCFixup &Fixup, in getRelocType() argument 48 switch (static_cast<unsigned>(Fixup.getKind())) { in getRelocType() 50 const MCFixupKindInfo &Info = MAB.getFixupKindInfo(Fixup.getKind()); in getRelocType() 79 bool ARMWinCOFFObjectWriter::recordRelocation(const MCFixup &Fixup) const { in recordRelocation() 80 return static_cast<unsigned>(Fixup.getKind()) != ARM::fixup_t2_movt_hi16; in recordRelocation()
|
D | ARMAsmBackend.h | 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,
|
D | ARMELFObjectWriter.cpp | 28 const MCFixup &Fixup, 37 unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup, 71 const MCFixup &Fixup, in GetRelocType() argument 73 return GetRelocTypeInner(Target, Fixup, IsPCRel); in GetRelocType() 77 const MCFixup &Fixup, in GetRelocTypeInner() argument 83 switch ((unsigned)Fixup.getKind()) { in GetRelocTypeInner() 151 switch ((unsigned)Fixup.getKind()) { in GetRelocTypeInner()
|
/external/llvm/lib/Target/Mips/MCTargetDesc/ |
D | MipsAsmBackend.cpp | 33 static unsigned adjustFixupValue(const MCFixup &Fixup, uint64_t Value, in adjustFixupValue() argument 36 unsigned Kind = Fixup.getKind(); in adjustFixupValue() 67 Ctx->reportError(Fixup.getLoc(), "out of range PC16 fixup"); in adjustFixupValue() 76 Ctx->reportError(Fixup.getLoc(), "out of range PC19 fixup"); in adjustFixupValue() 112 Ctx->reportError(Fixup.getLoc(), "out of range PC7 fixup"); in adjustFixupValue() 122 Ctx->reportError(Fixup.getLoc(), "out of range PC10 fixup"); in adjustFixupValue() 132 Ctx->reportError(Fixup.getLoc(), "out of range PC16 fixup"); in adjustFixupValue() 141 Ctx->reportError(Fixup.getLoc(), "out of range PC18 fixup"); in adjustFixupValue() 150 Ctx->reportError(Fixup.getLoc(), "out of range PC21 fixup"); in adjustFixupValue() 159 Ctx->reportError(Fixup.getLoc(), "out of range PC26 fixup"); in adjustFixupValue() [all …]
|
D | MipsAsmBackend.h | 41 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize, 64 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument 85 const MCFixup &Fixup, const MCFragment *DF,
|
/external/llvm/lib/Target/AMDGPU/MCTargetDesc/ |
D | AMDGPUAsmBackend.cpp | 33 const MCFragment *Fragment, const MCFixup &Fixup, in recordRelocation() argument 49 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize, 51 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument 89 void AMDGPUAsmBackend::applyFixup(const MCFixup &Fixup, char *Data, in applyFixup() argument 93 switch ((unsigned)Fixup.getKind()) { in applyFixup() 95 uint16_t *Dst = (uint16_t*)(Data + Fixup.getOffset()); in applyFixup() 101 uint32_t *Dst = (uint32_t*)(Data + Fixup.getOffset()); in applyFixup() 123 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup() 126 MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind()); in applyFixup() 131 unsigned Offset = Fixup.getOffset(); in applyFixup()
|
/external/llvm/lib/Target/PowerPC/MCTargetDesc/ |
D | PPCMachObjectWriter.cpp | 31 const MCFixup &Fixup, MCValue Target, 36 const MCFragment *Fragment, const MCFixup &Fixup, 45 const MCFixup &Fixup, MCValue Target, in recordRelocation() argument 50 RecordPPCRelocation(Writer, Asm, Layout, Fragment, Fixup, Target, in recordRelocation() 178 const MCFixup &Fixup) { in getFixupOffset() argument 179 uint32_t FixupOffset = Layout.getFragmentOffset(Fragment) + Fixup.getOffset(); in getFixupOffset() 182 if (unsigned(Fixup.getKind()) == PPC::fixup_ppc_half16) in getFixupOffset() 193 const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, in recordScatteredRelocation() argument 196 const uint32_t FixupOffset = getFixupOffset(Layout, Fragment, Fixup); in recordScatteredRelocation() 197 const MCFixupKind FK = Fixup.getKind(); in recordScatteredRelocation() [all …]
|
D | PPCAsmBackend.cpp | 116 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize, in applyFixup() argument 118 Value = adjustFixupValue(Fixup.getKind(), Value); in applyFixup() 121 unsigned Offset = Fixup.getOffset(); in applyFixup() 122 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup() 134 const MCFixup &Fixup, const MCFragment *DF, in processFixupValue() argument 137 switch ((PPC::Fixups)Fixup.getKind()) { in processFixupValue() 163 bool fixupNeedsRelaxation(const MCFixup &Fixup, in fixupNeedsRelaxation() argument
|
D | PPCMCExpr.cpp | 95 const MCFixup *Fixup) const { in evaluateAsRelocatableImpl() 98 if (!getSubExpr()->evaluateAsRelocatable(Value, Layout, Fixup)) in evaluateAsRelocatableImpl() 103 if ((Fixup == nullptr || (unsigned)Fixup->getKind() != PPC::fixup_ppc_half16) && in evaluateAsRelocatableImpl()
|
/external/llvm/lib/Target/Sparc/MCTargetDesc/ |
D | SparcELFObjectWriter.cpp | 32 unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup, 42 const MCFixup &Fixup, in GetRelocType() argument 45 if (const SparcMCExpr *SExpr = dyn_cast<SparcMCExpr>(Fixup.getValue())) { in GetRelocType() 51 switch((unsigned)Fixup.getKind()) { in GetRelocType() 67 switch((unsigned)Fixup.getKind()) { in GetRelocType() 71 case FK_Data_2: return ((Fixup.getOffset() % 2) in GetRelocType() 74 case FK_Data_4: return ((Fixup.getOffset() % 4) in GetRelocType() 77 case FK_Data_8: return ((Fixup.getOffset() % 8) in GetRelocType()
|
D | SparcAsmBackend.cpp | 207 const MCFixup &Fixup, const MCFragment *DF, in processFixupValue() argument 210 switch ((Sparc::Fixups)Fixup.getKind()) { in processFixupValue() 243 bool fixupNeedsRelaxation(const MCFixup &Fixup, in fixupNeedsRelaxation() argument 275 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize, in applyFixup() argument 278 Value = adjustFixupValue(Fixup.getKind(), Value); in applyFixup() 281 unsigned Offset = Fixup.getOffset(); in applyFixup()
|
/external/mesa3d/src/gallium/drivers/radeon/MCTargetDesc/ |
D | 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 { in GPR2AlignEncode() 175 SmallVectorImpl<MCFixup> &Fixup) const { in GPR4AlignEncode() 181 SmallVectorImpl<MCFixup> &Fixup) const { in i32LiteralEncode() 198 SmallVectorImpl<MCFixup> &Fixup) const { in SMRDmemriEncode() 207 (getMachineOpValue(MI, OffsetOp, Fixup) & SMRD_OFFSET_MASK) in SMRDmemriEncode() 209 | ((GPR2AlignEncode(MI, OpNo, Fixup) & SMRD_SBASE_MASK) << SMRD_SBASE_SHIFT) in SMRDmemriEncode()
|
/external/llvm/lib/Target/WebAssembly/MCTargetDesc/ |
D | WebAssemblyAsmBackend.cpp | 38 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize, 44 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument 72 void WebAssemblyAsmBackend::applyFixup(const MCFixup &Fixup, char *Data, in applyFixup() argument 75 const MCFixupKindInfo &Info = getFixupKindInfo(Fixup.getKind()); in applyFixup() 83 unsigned Offset = Fixup.getOffset(); in applyFixup()
|
D | WebAssemblyELFObjectWriter.cpp | 28 unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup, 42 const MCFixup &Fixup, in GetRelocType() argument 45 return Fixup.getKind(); in GetRelocType()
|
/external/llvm/lib/Target/SystemZ/MCTargetDesc/ |
D | SystemZMCAsmBackend.cpp | 51 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize, 56 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument 87 void SystemZMCAsmBackend::applyFixup(const MCFixup &Fixup, char *Data, in applyFixup() argument 90 MCFixupKind Kind = Fixup.getKind(); in applyFixup() 91 unsigned Offset = Fixup.getOffset(); in applyFixup()
|
/external/clang/lib/CodeGen/ |
D | CGCleanup.cpp | 314 BranchFixup &Fixup = CGF.EHStack.getBranchFixup(I); in ResolveAllBranchFixups() local 315 if (Fixup.Destination == nullptr) continue; in ResolveAllBranchFixups() 325 if (Fixup.OptimisticBranchBlock == nullptr) { in ResolveAllBranchFixups() 326 createStoreInstBefore(CGF.Builder.getInt32(Fixup.DestinationIndex), in ResolveAllBranchFixups() 328 Fixup.InitialBranch); in ResolveAllBranchFixups() 329 Fixup.InitialBranch->setSuccessor(0, CleanupEntry); in ResolveAllBranchFixups() 333 if (!CasesAdded.insert(Fixup.Destination).second) in ResolveAllBranchFixups() 336 Switch->addCase(CGF.Builder.getInt32(Fixup.DestinationIndex), in ResolveAllBranchFixups() 337 Fixup.Destination); in ResolveAllBranchFixups() 377 BranchFixup &Fixup = EHStack.getBranchFixup(I); in ResolveBranchFixups() local [all …]
|
/external/llvm/include/llvm/MC/ |
D | MCAsmBackend.h | 83 const MCFixup &Fixup, const MCFragment *DF, in processFixupValue() argument 90 virtual void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize, 105 virtual bool fixupNeedsRelaxationAdvanced(const MCFixup &Fixup, bool Resolved, 111 virtual bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
|
/external/llvm/lib/MC/ |
D | MCAssembler.cpp | 438 const MCFixup &Fixup, const MCFragment *DF, in evaluateFixup() argument 445 const MCExpr *Expr = Fixup.getValue(); in evaluateFixup() 446 if (!Expr->evaluateAsRelocatable(Target, &Layout, &Fixup)) { in evaluateFixup() 447 getContext().reportError(Fixup.getLoc(), "expected relocatable expression"); in evaluateFixup() 455 Fixup.getKind()).Flags & MCFixupKindInfo::FKF_IsPCRel; in evaluateFixup() 491 bool ShouldAlignPC = Backend.getFixupKindInfo(Fixup.getKind()).Flags & in evaluateFixup() 497 uint32_t Offset = Layout.getFragmentOffset(DF) + Fixup.getOffset(); in evaluateFixup() 507 Backend.processFixupValue(*this, Layout, Fixup, DF, Target, Value, in evaluateFixup() 872 const MCFixup &Fixup) { in handleFixup() argument 876 bool IsPCRel = Backend.getFixupKindInfo(Fixup.getKind()).Flags & in handleFixup() [all …]
|