| /llvm-project-15.0.7/llvm/lib/Target/AVR/MCTargetDesc/ |
| H A D | AVRAsmBackend.cpp | 106 adjustBranch(Size, Fixup, Value, Ctx); in fixup_call() 215 ldi::fixup(Size, Fixup, Value, Ctx); in lo8() 221 ldi::fixup(Size, Fixup, Value, Ctx); in hi8() 227 ldi::fixup(Size, Fixup, Value, Ctx); in hh8() 233 ldi::fixup(Size, Fixup, Value, Ctx); in ms8() 248 unsigned Kind = Fixup.getKind(); in adjustFixupValue() 332 adjust::fixup_6(Fixup, Value, Ctx); in adjustFixupValue() 339 adjust::fixup_port5(Fixup, Value, Ctx); in adjustFixupValue() 343 adjust::fixup_port6(Fixup, Value, Ctx); in adjustFixupValue() 382 unsigned Offset = Fixup.getOffset(); in applyFixup() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/MCTargetDesc/ |
| H A D | AArch64ELFObjectWriter.cpp | 140 Ctx.reportError(Fixup.getLoc(), in getRelocType() 148 Ctx.reportError(Fixup.getLoc(), in getRelocType() 170 Ctx.reportError(Fixup.getLoc(), in getRelocType() 194 switch (Fixup.getTargetKind()) { in getRelocType() 228 Ctx.reportError(Fixup.getLoc(), in getRelocType() 243 Ctx.reportError(Fixup.getLoc(), in getRelocType() 258 Ctx.reportError(Fixup.getLoc(), in getRelocType() 317 Ctx.reportError(Fixup.getLoc(), in getRelocType() 366 Ctx.reportError(Fixup.getLoc(), in getRelocType() 381 Ctx.reportError(Fixup.getLoc(), in getRelocType() [all …]
|
| H A D | AArch64AsmBackend.cpp | 85 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup, 90 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, 154 switch (Fixup.getTargetKind()) { in adjustFixupValue() 159 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue() 173 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue() 230 Ctx.reportError(Fixup.getLoc(), in adjustFixupValue() 240 Ctx.reportError(Fixup.getLoc(), in adjustFixupValue() 396 unsigned Kind = Fixup.getKind(); in applyFixup() 400 MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind()); in applyFixup() 409 unsigned Offset = Fixup.getOffset(); in applyFixup() [all …]
|
| H A D | AArch64MachObjectWriter.cpp | 57 switch (Fixup.getTargetKind()) { in getAArch64FixupKindMachOInfo() 102 Asm.getContext().reportError(Fixup.getLoc(), in getAArch64FixupKindMachOInfo() 163 unsigned Kind = Fixup.getKind(); in recordRelocation() 166 FixupOffset += Fixup.getOffset(); in recordRelocation() 182 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation() 193 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation() 212 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation() 265 Fixup.getLoc(), in recordRelocation() 272 Fixup.getLoc(), in recordRelocation() 312 Fixup.getLoc(), in recordRelocation() [all …]
|
| H A D | AArch64WinCOFFObjectWriter.cpp | 39 const MCFixup &Fixup, bool IsCrossSection, 48 MCContext &Ctx, const MCValue &Target, const MCFixup &Fixup, in getRelocType() argument 50 unsigned FixupKind = Fixup.getKind(); in getRelocType() 57 Ctx.reportError(Fixup.getLoc(), "Cannot represent this expression"); in getRelocType() 65 const MCExpr *Expr = Fixup.getValue(); in getRelocType() 75 Ctx.reportError(Fixup.getLoc(), "relocation variant " + in getRelocType() 85 Ctx.reportError(Fixup.getLoc(), "relocation type " + in getRelocType() 89 const MCFixupKindInfo &Info = MAB.getFixupKindInfo(Fixup.getKind()); in getRelocType() 90 Ctx.reportError(Fixup.getLoc(), Twine("relocation type ") + Info.Name + in getRelocType() 158 bool AArch64WinCOFFObjectWriter::recordRelocation(const MCFixup &Fixup) const { in recordRelocation()
|
| /llvm-project-15.0.7/llvm/lib/Target/BPF/MCTargetDesc/ |
| H A D | BPFAsmBackend.cpp | 29 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup, 38 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument 68 if (Fixup.getKind() == FK_SecRel_8) { in applyFixup() 72 support::endian::write<uint32_t>(&Data[Fixup.getOffset() + 4], in applyFixup() 75 } else if (Fixup.getKind() == FK_Data_4) { in applyFixup() 77 } else if (Fixup.getKind() == FK_Data_8) { in applyFixup() 79 } else if (Fixup.getKind() == FK_PCRel_4) { in applyFixup() 82 Data[Fixup.getOffset() + 1] = 0x10; in applyFixup() 83 support::endian::write32le(&Data[Fixup.getOffset() + 4], Value); in applyFixup() 85 Data[Fixup.getOffset() + 1] = 0x1; in applyFixup() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/MCTargetDesc/ |
| H A D | X86MachObjectWriter.cpp | 31 const MCFixup &Fixup, 39 const MCFixup &Fixup, 47 const MCFixup &Fixup, 157 Asm.getContext().reportError(Fixup.getLoc(), in RecordX86_64Relocation() 190 Asm.getContext().reportError(Fixup.getLoc(), in RecordX86_64Relocation() 260 Asm.getContext().reportError(Fixup.getLoc(), in RecordX86_64Relocation() 315 Fixup.getLoc(), in RecordX86_64Relocation() 344 Fixup.getLoc(), in RecordX86_64Relocation() 381 Fixup.getLoc(), in recordScatteredRelocation() 397 Fixup.getLoc(), in recordScatteredRelocation() [all …]
|
| H A D | X86WinCOFFObjectWriter.cpp | 30 const MCFixup &Fixup, bool IsCrossSection, 42 const MCFixup &Fixup, in getRelocType() argument 46 unsigned FixupKind = Fixup.getKind(); in getRelocType() 56 Ctx.reportError(Fixup.getLoc(), "Cannot represent this expression"); in getRelocType() 88 Ctx.reportError(Fixup.getLoc(), "unsupported relocation type"); in getRelocType() 110 Ctx.reportError(Fixup.getLoc(), "unsupported relocation type"); in getRelocType()
|
| /llvm-project-15.0.7/llvm/lib/Target/VE/MCTargetDesc/ |
| H A D | VEELFObjectWriter.cpp | 40 const MCFixup &Fixup, in getRelocType() argument 42 if (const VEMCExpr *SExpr = dyn_cast<VEMCExpr>(Fixup.getValue())) { in getRelocType() 48 switch (Fixup.getTargetKind()) { in getRelocType() 54 Ctx.reportError(Fixup.getLoc(), in getRelocType() 59 Ctx.reportError(Fixup.getLoc(), in getRelocType() 67 Ctx.reportError(Fixup.getLoc(), in getRelocType() 80 switch (Fixup.getTargetKind()) { in getRelocType() 82 Ctx.reportError(Fixup.getLoc(), "Unknown ELF relocation type"); in getRelocType() 97 Ctx.reportError(Fixup.getLoc(), in getRelocType() 105 Ctx.reportError(Fixup.getLoc(), in getRelocType() [all …]
|
| H A D | VEAsmBackend.cpp | 133 bool shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup, in shouldForceRelocation() argument 135 switch ((VE::Fixups)Fixup.getKind()) { in shouldForceRelocation() 156 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument 190 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup, in applyFixup() argument 194 Value = adjustFixupValue(Fixup.getKind(), Value); in applyFixup() 198 MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind()); in applyFixup() 203 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup() 204 unsigned Offset = Fixup.getOffset(); in applyFixup()
|
| /llvm-project-15.0.7/llvm/lib/Target/CSKY/MCTargetDesc/ |
| H A D | CSKYAsmBackend.cpp | 86 static uint64_t adjustFixupValue(const MCFixup &Fixup, uint64_t Value, in adjustFixupValue() argument 88 switch (Fixup.getTargetKind()) { in adjustFixupValue() 109 Ctx.reportError(Fixup.getLoc(), "fixup value must be 2-byte aligned."); in adjustFixupValue() 174 bool CSKYAsmBackend::fixupNeedsRelaxationAdvanced(const MCFixup &Fixup, in fixupNeedsRelaxationAdvanced() argument 187 switch (Fixup.getTargetKind()) { in fixupNeedsRelaxationAdvanced() 206 MCFixupKind Kind = Fixup.getKind(); in applyFixup() 214 Value = adjustFixupValue(Fixup, Value, Ctx); in applyFixup() 219 unsigned Offset = Fixup.getOffset(); in applyFixup() 264 const MCFixup &Fixup, in shouldForceRelocation() argument 266 if (Fixup.getKind() >= FirstLiteralRelocationKind) in shouldForceRelocation() [all …]
|
| H A D | CSKYELFObjectWriter.cpp | 29 const MCFixup &Fixup, bool IsPCRel) const override; 36 const MCFixup &Fixup, in getRelocType() argument 38 const MCExpr *Expr = Fixup.getValue(); in getRelocType() 40 unsigned Kind = Fixup.getTargetKind(); in getRelocType() 47 Ctx.reportError(Fixup.getLoc(), "Unsupported relocation type"); in getRelocType() 72 Ctx.reportError(Fixup.getLoc(), "Unsupported relocation type"); in getRelocType() 75 Ctx.reportError(Fixup.getLoc(), "1-byte data relocations not supported"); in getRelocType() 78 Ctx.reportError(Fixup.getLoc(), "2-byte data relocations not supported"); in getRelocType() 107 Ctx.reportError(Fixup.getLoc(), "unknown target FK_Data_4"); in getRelocType() 111 Ctx.reportError(Fixup.getLoc(), in getRelocType() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/MSP430/MCTargetDesc/ |
| H A D | MSP430AsmBackend.cpp | 32 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 97 uint64_t MSP430AsmBackend::adjustFixupValue(const MCFixup &Fixup, in adjustFixupValue() argument 100 unsigned Kind = Fixup.getKind(); in adjustFixupValue() 104 Ctx.reportError(Fixup.getLoc(), "fixup value must be 2-byte aligned"); in adjustFixupValue() 114 Ctx.reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue() 131 Value = adjustFixupValue(Fixup, Value, Asm.getContext()); in applyFixup() 132 MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind()); in applyFixup() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/MCTargetDesc/ |
| H A D | ARMELFObjectWriter.cpp | 73 const MCFixup &Fixup, in getRelocType() argument 75 return GetRelocTypeInner(Target, Fixup, IsPCRel, Ctx); in getRelocType() 79 const MCFixup &Fixup, in GetRelocTypeInner() argument 82 unsigned Kind = Fixup.getTargetKind(); in GetRelocTypeInner() 88 switch (Fixup.getTargetKind()) { in GetRelocTypeInner() 95 Ctx.reportError(Fixup.getLoc(), in GetRelocTypeInner() 167 Ctx.reportError(Fixup.getLoc(), in GetRelocTypeInner() 176 Ctx.reportError(Fixup.getLoc(), in GetRelocTypeInner() 185 Ctx.reportError(Fixup.getLoc(), in GetRelocTypeInner() 249 Ctx.reportError(Fixup.getLoc(), in GetRelocTypeInner() [all …]
|
| H A D | ARMMachObjectWriter.cpp | 34 const MCFixup &Fixup, 144 const MCFixup &Fixup, in RecordARMScatteredHalfRelocation() argument 150 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredHalfRelocation() 164 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredHalfRelocation() 179 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredHalfRelocation() 207 switch (Fixup.getTargetKind()) { in RecordARMScatteredHalfRelocation() 265 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredRelocation() 278 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredRelocation() 294 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredRelocation() 389 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation() [all …]
|
| H A D | ARMWinCOFFObjectWriter.cpp | 37 const MCFixup &Fixup, bool IsCrossSection, 47 const MCFixup &Fixup, in getRelocType() argument 53 unsigned FixupKind = Fixup.getKind(); in getRelocType() 56 Ctx.reportError(Fixup.getLoc(), "Cannot represent this expression"); in getRelocType() 65 const MCFixupKindInfo &Info = MAB.getFixupKindInfo(Fixup.getKind()); in getRelocType() 96 bool ARMWinCOFFObjectWriter::recordRelocation(const MCFixup &Fixup) const { in recordRelocation() 97 return static_cast<unsigned>(Fixup.getKind()) != ARM::fixup_t2_movt_hi16; in recordRelocation()
|
| H A D | ARMAsmBackend.cpp | 247 switch (Fixup.getTargetKind()) { in reasonForFixupRelaxation() 327 return reasonForFixupRelaxation(Fixup, Value); in fixupNeedsRelaxation() 433 unsigned Kind = Fixup.getKind(); in adjustFixupValue() 558 dyn_cast<MCSymbolRefExpr>(Fixup.getValue())) in adjustFixupValue() 827 Ctx.reportError(Fixup.getLoc(), FixupDiagnostic); in adjustFixupValue() 838 Ctx.reportError(Fixup.getLoc(), FixupDiagnostic); in adjustFixupValue() 857 Ctx.reportError(Fixup.getLoc(), FixupDiagnostic); in adjustFixupValue() 867 Ctx.reportError(Fixup.getLoc(), FixupDiagnostic); in adjustFixupValue() 886 const unsigned FixupKind = Fixup.getKind(); in shouldForceRelocation() 1049 unsigned Kind = Fixup.getKind(); in applyFixup() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/MCTargetDesc/ |
| H A D | AMDGPUAsmBackend.cpp | 35 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup, 39 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, 70 bool AMDGPUAsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup, in fixupNeedsRelaxation() argument 117 switch (Fixup.getTargetKind()) { in adjustFixupValue() 143 if (Fixup.getKind() >= FirstLiteralRelocationKind) in applyFixup() 146 Value = adjustFixupValue(Fixup, Value, &Asm.getContext()); in applyFixup() 150 MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind()); in applyFixup() 155 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup() 156 uint32_t Offset = Fixup.getOffset(); in applyFixup() 191 const MCFixup &Fixup, in shouldForceRelocation() argument [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/RISCV/MCTargetDesc/ |
| H A D | RISCVAsmBackend.cpp | 119 if (Fixup.getKind() >= FirstLiteralRelocationKind) in shouldForceRelocation() 121 switch (Fixup.getTargetKind()) { in shouldForceRelocation() 154 switch (Fixup.getTargetKind()) { in fixupNeedsRelaxationAdvanced() 232 std::pair<unsigned, unsigned> Fixup; in relaxDwarfLineAddr() local 376 switch (Fixup.getTargetKind()) { in adjustFixupValue() 495 switch (Fixup.getTargetKind()) { in evaluateTargetFixup() 499 AUIPCFixup = &Fixup; in evaluateTargetFixup() 554 MCFixupKind Kind = Fixup.getKind(); in applyFixup() 562 Value = adjustFixupValue(Fixup, Value, Ctx); in applyFixup() 567 unsigned Offset = Fixup.getOffset(); in applyFixup() [all …]
|
| H A D | RISCVELFObjectWriter.cpp | 38 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() 60 Ctx.reportError(Fixup.getLoc(), "Unsupported relocation type"); in getRelocType() 110 Ctx.reportError(Fixup.getLoc(), "Unsupported relocation type"); in getRelocType() 113 Ctx.reportError(Fixup.getLoc(), "1-byte data relocations not supported"); in getRelocType() 116 Ctx.reportError(Fixup.getLoc(), "2-byte data relocations not supported"); in getRelocType()
|
| /llvm-project-15.0.7/llvm/lib/Target/SystemZ/MCTargetDesc/ |
| H A D | SystemZMCAsmBackend.cpp | 27 const MCFixup &Fixup, MCContext &Ctx) { in extractBitsForFixup() argument 44 Ctx.reportError(Fixup.getLoc(), "Non-even PC relative offset."); in extractBitsForFixup() 94 bool shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup, 96 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup, 100 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument 156 const MCFixup &Fixup, in shouldForceRelocation() argument 158 return Fixup.getKind() >= FirstLiteralRelocationKind; in shouldForceRelocation() 162 const MCFixup &Fixup, in applyFixup() argument 167 MCFixupKind Kind = Fixup.getKind(); in applyFixup() 170 unsigned Offset = Fixup.getOffset(); in applyFixup() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/Mips/MCTargetDesc/ |
| H A D | MipsAsmBackend.cpp | 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() 248 MCFixupKind Kind = Fixup.getKind(); in applyFixup() 250 Value = adjustFixupValue(Fixup, Value, Ctx); in applyFixup() 256 unsigned Offset = Fixup.getOffset(); in applyFixup() 548 if (Fixup.getKind() >= FirstLiteralRelocationKind) in shouldForceRelocation() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | ReservedIdentifierCheck.cpp | 124 auto AppendFailure = [&](StringRef Kind, std::string &&Fixup) { in getFailureInfoImpl() argument 126 Info = FailureInfo{std::string(Kind), std::move(Fixup)}; in getFailureInfoImpl() 129 Info->Fixup = std::move(Fixup); in getFailureInfoImpl() 134 .map([](const FailureInfo &Info) { return StringRef(Info.Fixup); }) in getFailureInfoImpl() 137 if (auto Fixup = getDoubleUnderscoreFixup(InProgressFixup(), LangOpts)) in getFailureInfoImpl() local 138 AppendFailure(DoubleUnderscoreTag, std::move(*Fixup)); in getFailureInfoImpl() 139 if (auto Fixup = getUnderscoreCapitalFixup(InProgressFixup())) in getFailureInfoImpl() local 140 AppendFailure(UnderscoreCapitalTag, std::move(*Fixup)); in getFailureInfoImpl() 141 if (auto Fixup = getUnderscoreGlobalNamespaceFixup(InProgressFixup(), in getFailureInfoImpl() local 143 AppendFailure(GlobalUnderscoreTag, std::move(*Fixup)); in getFailureInfoImpl()
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/MCTargetDesc/ |
| H A D | PPCMCExpr.cpp | 105 const MCFixup *Fixup) const { in evaluateAsRelocatableImpl() 108 if (!getSubExpr()->evaluateAsRelocatable(Value, Layout, Fixup)) in evaluateAsRelocatableImpl() 113 bool IsHalf16 = Fixup && Fixup->getTargetKind() == PPC::fixup_ppc_half16; in evaluateAsRelocatableImpl() 115 Fixup && Fixup->getTargetKind() == PPC::fixup_ppc_half16ds; in evaluateAsRelocatableImpl() 117 Fixup && Fixup->getTargetKind() == PPC::fixup_ppc_half16dq; in evaluateAsRelocatableImpl()
|
| /llvm-project-15.0.7/llvm/lib/Target/Sparc/MCTargetDesc/ |
| H A D | SparcELFObjectWriter.cpp | 33 const MCFixup &Fixup, bool IsPCRel) const override; 43 const MCFixup &Fixup, in getRelocType() argument 45 MCFixupKind Kind = Fixup.getKind(); in getRelocType() 49 if (const SparcMCExpr *SExpr = dyn_cast<SparcMCExpr>(Fixup.getValue())) { in getRelocType() 55 switch(Fixup.getTargetKind()) { in getRelocType() 71 switch(Fixup.getTargetKind()) { in getRelocType() 76 case FK_Data_2: return ((Fixup.getOffset() % 2) in getRelocType() 79 case FK_Data_4: return ((Fixup.getOffset() % 4) in getRelocType() 82 case FK_Data_8: return ((Fixup.getOffset() % 8) in getRelocType()
|