Home
last modified time | relevance | path

Searched refs:MCValue (Results 1 – 25 of 124) sorted by relevance

12345

/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCValue.h30 class MCValue {
43 MCValue() = default;
56 static MCValue get(const MCSymbol *SymA, const MCSymbol *SymB = nullptr,
58 MCValue R;
66 static MCValue get(int64_t Val) { in get()
67 MCValue R; in get()
H A DMCAsmBackend.h37 class MCValue; variable
130 MCValue &, uint64_t &) { in evaluateFixup() argument
134 void maybeAddReloc(const MCFragment &, const MCFixup &, const MCValue &,
143 const MCValue &Target, MutableArrayRef<char> Data,
160 virtual bool fixupNeedsRelaxationAdvanced(const MCFixup &, const MCValue &,
H A DMCELFObjectWriter.h33 class MCValue; variable
88 virtual unsigned getRelocType(const MCFixup &Fixup, const MCValue &Target,
91 virtual bool needsRelocateWithSymbol(const MCValue &, unsigned Type) const { in needsRelocateWithSymbol() argument
177 MCValue Target, uint64_t &FixedValue) override;
186 bool useSectionSymbol(const MCValue &Val, const MCSymbolELF *Sym, uint64_t C,
H A DMCExpr.h27 class MCValue; variable
73 LLVM_ABI bool evaluateAsRelocatableImpl(MCValue &Res, const MCAssembler *Asm,
118 LLVM_ABI bool evaluateAsRelocatable(MCValue &Res,
126 LLVM_ABI bool evaluateAsValue(MCValue &Res, const MCAssembler &Asm) const;
137 const MCValue &, const MCValue &,
138 MCValue &);
474 virtual bool evaluateAsRelocatableImpl(MCValue &Res,
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCExpr.cpp256 MCValue Value; in evaluateAsAbsolute()
417 const MCValue &LHS, const MCValue &RHS, in evaluateSymbolicAdd()
418 MCValue &Res) { in evaluateSymbolicAdd()
455 Res = MCValue::get(A, B, Result_Cst, Spec); in evaluateSymbolicAdd()
459 bool MCExpr::evaluateAsRelocatable(MCValue &Res, const MCAssembler *Asm) const { in evaluateAsRelocatable()
462 bool MCExpr::evaluateAsValue(MCValue &Res, const MCAssembler &Asm) const { in evaluateAsValue()
466 bool MCExpr::evaluateAsRelocatableImpl(MCValue &Res, const MCAssembler *Asm, in evaluateAsRelocatableImpl()
473 Res = MCValue::get(cast<MCConstantExpr>(this)->getValue()); in evaluateAsRelocatableImpl()
511 Res = MCValue::get(&Sym, nullptr, 0, Kind); in evaluateAsRelocatableImpl()
540 Res = MCValue::get(&Sym, nullptr, 0, Kind); in evaluateAsRelocatableImpl()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMAsmBackend.h33 bool shouldForceRelocation(const MCFixup &Fixup, const MCValue &Target);
36 const MCValue &Target, uint64_t Value,
40 std::optional<bool> evaluateFixup(const MCFragment &, MCFixup &, MCValue &,
42 void applyFixup(const MCFragment &, const MCFixup &, const MCValue &Target,
54 bool fixupNeedsRelaxationAdvanced(const MCFixup &, const MCValue &, uint64_t,
H A DARMMCAsmInfo.h38 bool evaluateAsRelocatableImpl(const MCSpecifierExpr &, MCValue &, in evaluateAsRelocatableImpl() argument
55 bool evaluateAsRelocatableImpl(const MCSpecifierExpr &, MCValue &, in evaluateAsRelocatableImpl() argument
70 bool evaluateAsRelocatableImpl(const MCSpecifierExpr &, MCValue &, in evaluateAsRelocatableImpl() argument
85 bool evaluateAsRelocatableImpl(const MCSpecifierExpr &, MCValue &, in evaluateAsRelocatableImpl() argument
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/MCTargetDesc/
H A DXtensaELFObjectWriter.cpp34 unsigned getRelocType(const MCFixup &, const MCValue &,
36 bool needsRelocateWithSymbol(const MCValue &, unsigned Type) const override;
47 const MCValue &Target, in getRelocType()
65 bool XtensaObjectWriter::needsRelocateWithSymbol(const MCValue &, in needsRelocateWithSymbol() argument
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/MCTargetDesc/
H A DCSKYAsmBackend.h25 std::optional<bool> evaluateFixup(const MCFragment &, MCFixup &, MCValue &,
27 void applyFixup(const MCFragment &, const MCFixup &, const MCValue &Target,
41 bool fixupNeedsRelaxationAdvanced(const MCFixup &, const MCValue &, uint64_t,
47 bool shouldForceRelocation(const MCFixup &Fixup, const MCValue &Target);
H A DCSKYELFObjectWriter.cpp30 unsigned getRelocType(const MCFixup &, const MCValue &,
32 bool needsRelocateWithSymbol(const MCValue &, unsigned Type) const override;
38 const MCValue &Target, in getRelocType()
166 bool CSKYELFObjectWriter::needsRelocateWithSymbol(const MCValue &V, in needsRelocateWithSymbol()
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/MCTargetDesc/
H A DLoongArchAsmBackend.cpp144 const MCValue &Target, in applyFixup()
235 return MCValue::get(&MCSym->getSymbol(), nullptr, in shouldInsertFixupForCodeAlign()
240 MCValue Value = MaxBytesToEmit >= InsertedNopBytes in shouldInsertFixupForCodeAlign()
241 ? MCValue::get(InsertedNopBytes) in shouldInsertFixupForCodeAlign()
249 const MCValue &Target) { in shouldForceRelocation()
443 MCValue Res; in isPCRelFixupResolved()
444 MCExpr::evaluateSymbolicAdd(Asm, false, MCValue::get(SymA), in isPCRelFixupResolved()
445 MCValue::get(nullptr, PCRelTemp), Res); in isPCRelFixupResolved()
450 const MCValue &Target, uint64_t &FixedValue, in addReloc()
508 MCValue A = MCValue::get(Target.getAddSym(), nullptr, Target.getConstant()); in addReloc()
[all …]
H A DLoongArchAsmBackend.h41 bool addReloc(const MCFragment &, const MCFixup &, const MCValue &,
44 void applyFixup(const MCFragment &, const MCFixup &, const MCValue &Target,
56 bool shouldForceRelocation(const MCFixup &Fixup, const MCValue &Target);
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/MCTargetDesc/
H A DLanaiELFObjectWriter.cpp27 unsigned getRelocType(const MCFixup &, const MCValue &,
29 bool needsRelocateWithSymbol(const MCValue &, unsigned Type) const override;
39 const MCValue &, bool) const { in getRelocType() argument
72 bool LanaiELFObjectWriter::needsRelocateWithSymbol(const MCValue &, in needsRelocateWithSymbol() argument
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUMCExpr.h64 bool evaluateExtraSGPRs(MCValue &Res, const MCAssembler *Asm) const;
65 bool evaluateTotalNumVGPR(MCValue &Res, const MCAssembler *Asm) const;
66 bool evaluateAlignTo(MCValue &Res, const MCAssembler *Asm) const;
67 bool evaluateOccupancy(MCValue &Res, const MCAssembler *Asm) const;
106 bool evaluateAsRelocatableImpl(MCValue &Res,
H A DAMDGPUMCExpr.cpp98 bool AMDGPUMCExpr::evaluateExtraSGPRs(MCValue &Res, in evaluateExtraSGPRs()
101 MCValue MCVal; in evaluateExtraSGPRs()
123 Res = MCValue::get(ExtraSGPRs); in evaluateExtraSGPRs()
127 bool AMDGPUMCExpr::evaluateTotalNumVGPR(MCValue &Res, in evaluateTotalNumVGPR()
130 MCValue MCVal; in evaluateTotalNumVGPR()
150 Res = MCValue::get(TotalNum); in evaluateTotalNumVGPR()
154 bool AMDGPUMCExpr::evaluateAlignTo(MCValue &Res, const MCAssembler *Asm) const { in evaluateAlignTo()
156 MCValue MCVal; in evaluateAlignTo()
170 Res = MCValue::get(alignTo(Value, Align)); in evaluateAlignTo()
174 bool AMDGPUMCExpr::evaluateOccupancy(MCValue &Res, in evaluateOccupancy()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVAsmBackend.cpp108 const MCValue &, in fixupNeedsRelaxationAdvanced() argument
645 MCValue Res; in isPCRelFixupResolved()
646 MCExpr::evaluateSymbolicAdd(Asm, false, MCValue::get(SymA), in isPCRelFixupResolved()
647 MCValue::get(nullptr, PCRelTemp), Res); in isPCRelFixupResolved()
658 MCValue AUIPCLoc; in getPCRelHiFixup()
704 MCValue &Target, in evaluateFixup()
708 MCValue AUIPCTarget; in evaluateFixup()
790 MCValue VendorTarget = MCValue::get(VendorSymbol); in maybeAddVendorReloc()
813 const MCValue &Target, uint64_t &FixedValue, in addReloc()
844 MCValue A = MCValue::get(Target.getAddSym(), nullptr, Target.getConstant()); in addReloc()
[all …]
H A DRISCVAsmBackend.h49 std::optional<bool> evaluateFixup(const MCFragment &, MCFixup &, MCValue &,
51 bool addReloc(const MCFragment &, const MCFixup &, const MCValue &,
56 void applyFixup(const MCFragment &, const MCFixup &, const MCValue &Target,
63 bool fixupNeedsRelaxationAdvanced(const MCFixup &, const MCValue &, uint64_t,
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86MachObjectWriter.cpp32 MCValue Target,
39 MCValue Target,
46 MCValue Target,
50 MCValue Target, uint64_t &FixedValue);
58 MCValue Target, uint64_t &FixedValue) override { in recordRelocation()
101 const MCFixup &Fixup, MCValue Target, uint64_t &FixedValue) { in RecordX86_64Relocation()
348 MCValue Target, in recordScatteredRelocation()
443 MCValue Target, in recordTLVPRelocation()
481 MCValue Target, in RecordX86Relocation()
533 MCValue Val; in RecordX86Relocation()
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRMCAsmInfo.cpp183 MCValue &Result, in evaluateAsRelocatableImpl()
186 MCValue Value; in evaluateAsRelocatableImpl()
192 Result = MCValue::get(E.evaluateAsInt64(Value.getConstant())); in evaluateAsRelocatableImpl()
206 MCValue::get(Value.getAddSym(), nullptr, Value.getConstant(), Spec); in evaluateAsRelocatableImpl()
213 MCValue Value; in evaluateAsConstant()
H A DAVRAsmBackend.h34 void adjustFixupValue(const MCFixup &Fixup, const MCValue &Target,
40 void applyFixup(const MCFragment &, const MCFixup &, const MCValue &Target,
51 const MCValue &Target);
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/MCTargetDesc/
H A DSparcELFObjectWriter.cpp35 unsigned getRelocType(const MCFixup &Fixup, const MCValue &Target,
38 bool needsRelocateWithSymbol(const MCValue &, unsigned Type) const override;
43 const MCValue &Target, in getRelocType()
120 bool SparcELFObjectWriter::needsRelocateWithSymbol(const MCValue &, in needsRelocateWithSymbol() argument
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/MCTargetDesc/
H A DVEELFObjectWriter.cpp32 unsigned getRelocType(const MCFixup &, const MCValue &,
35 bool needsRelocateWithSymbol(const MCValue &, unsigned Type) const override;
40 const MCValue &Target, in getRelocType()
144 bool VEELFObjectWriter::needsRelocateWithSymbol(const MCValue &, in needsRelocateWithSymbol() argument
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUDelayedMCExpr.cpp16 MCValue Val) { in getNode()
32 MCValue Res; in assignDocNode()
46 MCValue Res; in resolveDelayedExpressions()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCMCAsmInfo.cpp139 MCValue Value; in evaluateAsConstant()
153 static bool evaluateAsRelocatable(const MCSpecifierExpr &Expr, MCValue &Res, in evaluateAsRelocatable()
164 Res = MCValue::get(*MaybeInt); in evaluateAsRelocatable()
218 MCValue &Res, in evaluateAsRelocatableImpl()
255 const MCSpecifierExpr &Expr, MCValue &Res, const MCAssembler *Asm) const { in evaluateAsRelocatableImpl()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64MCAsmInfo.h25 class MCValue; variable
35 bool evaluateAsRelocatableImpl(const MCSpecifierExpr &Expr, MCValue &Res,
43 bool evaluateAsRelocatableImpl(const MCSpecifierExpr &Expr, MCValue &Res,
51 bool evaluateAsRelocatableImpl(const MCSpecifierExpr &Expr, MCValue &Res,
59 bool evaluateAsRelocatableImpl(const MCSpecifierExpr &Expr, MCValue &Res,

12345