Home
last modified time | relevance | path

Searched refs:SymA (Results 1 – 21 of 21) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/MCTargetDesc/
H A DWebAssemblyWasmObjectWriter.cpp69 auto &SymA = cast<MCSymbolWasm>(*Target.getAddSym()); in getRelocType() local
73 SymA.setUsedInGOT(); in getRelocType()
76 SymA.setUsedInGOT(); in getRelocType()
77 SymA.setTLS(); in getRelocType()
80 assert(SymA.isFunction()); in getRelocType()
84 SymA.setTLS(); in getRelocType()
88 assert(SymA.isData()); in getRelocType()
101 if (SymA.isFunction()) in getRelocType()
105 if (SymA.isFunction()) in getRelocType()
109 if (SymA.isGlobal()) in getRelocType()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCValue.h31 const MCSymbol *SymA = nullptr, *SymB = nullptr; variable
49 const MCSymbol *getAddSym() const { return SymA; } in getAddSym()
50 void setAddSym(const MCSymbol *A) { SymA = A; } in setAddSym()
54 bool isAbsolute() const { return !SymA && !SymB; } in isAbsolute()
56 static MCValue get(const MCSymbol *SymA, const MCSymbol *SymB = nullptr,
60 R.SymA = SymA;
69 R.SymA = nullptr; in get()
H A DMCWinCOFFObjectWriter.h68 bool isSymbolRefDifferenceFullyResolvedImpl(const MCSymbol &SymA,
H A DMCObjectWriter.h93 virtual bool isSymbolRefDifferenceFullyResolvedImpl(const MCSymbol &SymA,
H A DMCELFObjectWriter.h178 bool isSymbolRefDifferenceFullyResolvedImpl(const MCSymbol &SymA,
H A DMCMachObjectWriter.h340 bool isSymbolRefDifferenceFullyResolvedImpl(const MCSymbol &SymA,
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUELFObjectWriter.cpp40 if (const auto *SymA = Target.getAddSym()) { in getRelocType() local
43 if (SymA->getName() == "SCRATCH_RSRC_DWORD0" || in getRelocType()
44 SymA->getName() == "SCRATCH_RSRC_DWORD1") in getRelocType()
80 const auto *SymA = Target.getAddSym(); in getRelocType() local
81 assert(SymA); in getRelocType()
83 if (SymA->isUndefined()) { in getRelocType()
85 Twine("undefined label '") + SymA->getName() + "'"); in getRelocType()
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DELFObjectWriter.cpp1331 const auto *SymA = cast_or_null<MCSymbolELF>(Target.getAddSym()); in recordRelocation() local
1332 const MCSectionELF *SecA = (SymA && SymA->isInSection()) in recordRelocation()
1333 ? cast<MCSectionELF>(&SymA->getSection()) in recordRelocation()
1372 bool UseSectionSym = SymA && SymA->getBinding() == ELF::STB_LOCAL && in recordRelocation()
1373 !SymA->isUndefined() && in recordRelocation()
1375 if (UseSectionSym && useSectionSymbol(Target, SymA, Addend, Type)) { in recordRelocation()
1376 Addend += Asm->getSymbolOffset(*SymA); in recordRelocation()
1377 SymA = cast<MCSymbolELF>(SecA->getBeginSymbol()); in recordRelocation()
1378 } else if (const MCSymbolELF *R = Renames.lookup(SymA)) { in recordRelocation()
1379 SymA = R; in recordRelocation()
[all …]
H A DMCObjectWriter.cpp45 const MCSymbol &SymA, const MCFragment &FB, bool InSet, in isSymbolRefDifferenceFullyResolvedImpl() argument
47 const MCSection &SecA = SymA.getSection(); in isSymbolRefDifferenceFullyResolvedImpl()
H A DMCValue.cpp29 SymA->print(OS, nullptr); in print()
H A DWasmObjectWriter.cpp518 const auto *SymA = cast<MCSymbolWasm>(Target.getAddSym()); in recordRelocation() local
522 SymA->setUsedInInitArray(); in recordRelocation()
540 SymA->isDefined()) { in recordRelocation()
551 const MCSection &SecA = SymA->getSection(); in recordRelocation()
563 C += Asm->getSymbolOffset(*SymA); in recordRelocation()
564 SymA = cast<MCSymbolWasm>(SectionSymbol); in recordRelocation()
591 if (SymA->getName().empty()) in recordRelocation()
595 SymA->setUsedInReloc(); in recordRelocation()
598 WasmRelocationEntry Rec(FixupOffset, SymA, C, Type, &FixupSection); in recordRelocation()
H A DXCOFFObjectWriter.cpp687 const MCSymbol *const SymA = Target.getAddSym(); in recordRelocation() local
693 const MCSectionXCOFF *SymASec = getContainingCsect(cast<MCSymbolXCOFF>(SymA)); in recordRelocation()
701 const uint32_t Index = getIndex(SymA, SymASec); in recordRelocation()
709 FixedValue = getVirtualAddress(SymA, SymASec) + Target.getConstant(); in recordRelocation()
761 FixedValue = getVirtualAddress(SymA, SymASec) - BRInstrAddress + in recordRelocation()
779 if (SymA == SymB) in recordRelocation()
H A DMCMachOStreamer.cpp182 if (const auto *SymA = Res.getAddSym()) { in emitAssignment() local
184 (SymA->getName().empty() || Res.getConstant() != 0)) in emitAssignment()
H A DWinCOFFObjectWriter.cpp1179 const MCSymbol &SymA, const MCFragment &FB, bool InSet, in isSymbolRefDifferenceFullyResolvedImpl() argument
1187 uint16_t Type = cast<MCSymbolCOFF>(SymA).getType(); in isSymbolRefDifferenceFullyResolvedImpl()
1190 return &SymA.getSection() == FB.getParent(); in isSymbolRefDifferenceFullyResolvedImpl()
H A DMachObjectWriter.cpp718 const MCSymbol &SymA, const MCFragment &FB, bool InSet, in isSymbolRefDifferenceFullyResolvedImpl() argument
728 const MCSymbol &SA = findAliasedSymbol(SymA); in isSymbolRefDifferenceFullyResolvedImpl()
H A DMCExpr.cpp613 std::swap(RHSValue.SymA, RHSValue.SymB); in evaluateAsRelocatableImpl()
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/MCTargetDesc/
H A DLoongArchAsmBackend.h35 bool isPCRelFixupResolved(const MCSymbol *SymA, const MCFragment &F);
H A DLoongArchAsmBackend.cpp429 bool LoongArchAsmBackend::isPCRelFixupResolved(const MCSymbol *SymA, in isPCRelFixupResolved() argument
444 MCExpr::evaluateSymbolicAdd(Asm, false, MCValue::get(SymA), in isPCRelFixupResolved()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVAsmBackend.h32 bool isPCRelFixupResolved(const MCSymbol *SymA, const MCFragment &F);
H A DRISCVAsmBackend.cpp631 bool RISCVAsmBackend::isPCRelFixupResolved(const MCSymbol *SymA, in isPCRelFixupResolved() argument
646 MCExpr::evaluateSymbolicAdd(Asm, false, MCValue::get(SymA), in isPCRelFixupResolved()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86MachObjectWriter.cpp445 const MCSymbol *SymA = Target.getAddSym(); in recordTLVPRelocation() local
474 Writer->addRelocation(SymA, Fragment->getParent(), MRE); in recordTLVPRelocation()