Lines Matching refs:Expr
288 const MCExpr *Expr = getImm();
289 addExpr(Inst, Expr);
292 void addExpr(MCInst &Inst, const MCExpr *Expr) const{
294 if (!Expr)
296 else if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr))
299 Inst.addOperand(MCOperand::createExpr(Expr));
316 const MCExpr *Expr = getMemOff();
317 addExpr(Inst, Expr);
473 const MCExpr *Expr = adjustPICRelocation(SparcMCExpr::VK_Sparc_HI, ValExpr);
477 TmpInst.addOperand(MCOperand::createExpr(Expr));
494 const MCExpr *Expr;
496 Expr = ValExpr;
498 Expr = adjustPICRelocation(SparcMCExpr::VK_Sparc_LO, ValExpr);
503 TmpInst.addOperand(MCOperand::createExpr(Expr));
1109 static bool hasGOTReference(const MCExpr *Expr) {
1110 switch (Expr->getKind()) {
1112 if (const SparcMCExpr *SE = dyn_cast<SparcMCExpr>(Expr))
1120 const MCBinaryExpr *BE = cast<MCBinaryExpr>(Expr);
1125 const MCSymbolRefExpr &SymRef = *cast<MCSymbolRefExpr>(Expr);
1130 return hasGOTReference(cast<MCUnaryExpr>(Expr)->getSubExpr());