Lines Matching refs:MCSymbolRefExpr
73 const MCSymbolRefExpr &SRE = cast<MCSymbolRefExpr>(*this); in print()
87 const MCSymbolRefExpr::VariantKind Kind = SRE.getKind(); in print()
88 if (Kind != MCSymbolRefExpr::VK_None) { in print()
90 OS << '(' << MCSymbolRefExpr::getVariantKindName(Kind) << ')'; in print()
92 OS << '@' << MCSymbolRefExpr::getVariantKindName(Kind); in print()
117 if (isa<MCConstantExpr>(BE.getLHS()) || isa<MCSymbolRefExpr>(BE.getLHS())) { in print()
159 if (isa<MCConstantExpr>(BE.getRHS()) || isa<MCSymbolRefExpr>(BE.getRHS())) { in print()
201 MCSymbolRefExpr::MCSymbolRefExpr(const MCSymbol *Symbol, VariantKind Kind, in MCSymbolRefExpr() function in MCSymbolRefExpr
209 const MCSymbolRefExpr *MCSymbolRefExpr::create(const MCSymbol *Sym, in create()
212 return new (Ctx) MCSymbolRefExpr(Sym, Kind, Ctx.getAsmInfo(), Loc); in create()
215 const MCSymbolRefExpr *MCSymbolRefExpr::create(StringRef Name, VariantKind Kind, in create()
220 StringRef MCSymbolRefExpr::getVariantKindName(VariantKind Kind) { in getVariantKindName()
404 MCSymbolRefExpr::VariantKind
405 MCSymbolRefExpr::getVariantKindForName(StringRef Name) { in getVariantKindForName()
591 const MCSymbolRefExpr *&A, const MCSymbolRefExpr *&B, int64_t &Addend) { in AttemptToFoldSymbolOffsetDifference()
740 const MCSymbolRefExpr *LHS_A = LHS.getSymA(); in evaluateSymbolicAdd()
741 const MCSymbolRefExpr *LHS_B = LHS.getSymB(); in evaluateSymbolicAdd()
744 const MCSymbolRefExpr *RHS_A = RHS.getSymA(); in evaluateSymbolicAdd()
745 const MCSymbolRefExpr *RHS_B = RHS.getSymB(); in evaluateSymbolicAdd()
782 const MCSymbolRefExpr *A = LHS_A ? LHS_A : RHS_A; in evaluateSymbolicAdd()
783 const MCSymbolRefExpr *B = LHS_B ? LHS_B : RHS_B; in evaluateSymbolicAdd()
803 const auto *Inner = dyn_cast<MCSymbolRefExpr>(Expr); in canExpand()
805 if (Inner->getKind() == MCSymbolRefExpr::VK_WEAKREF) in canExpand()
828 const MCSymbolRefExpr *SRE = cast<MCSymbolRefExpr>(this); in evaluateAsRelocatableImpl()
834 if (Sym.isVariable() && (Kind == MCSymbolRefExpr::VK_None || Layout) && in evaluateAsRelocatableImpl()
839 if (Kind != MCSymbolRefExpr::VK_None) { in evaluateAsRelocatableImpl()
847 if (Res.getRefKind() != MCSymbolRefExpr::VK_None || !Res.getSymA() || in evaluateAsRelocatableImpl()
851 MCValue::get(MCSymbolRefExpr::create(&Res.getSymA()->getSymbol(), in evaluateAsRelocatableImpl()
858 const MCSymbolRefExpr *A = Res.getSymA(); in evaluateAsRelocatableImpl()
859 const MCSymbolRefExpr *B = Res.getSymB(); in evaluateAsRelocatableImpl()
1040 const MCSymbolRefExpr *SRE = cast<MCSymbolRefExpr>(this); in findAssociatedFragment()