• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/Mips/AsmParser/

Lines Matching refs:Res

344   bool parseMemOffset(const MCExpr *&Res, bool isParenExpr);
571 MCValue Res;
572 if (!JalExpr->evaluateAsRelocatable(Res, nullptr, nullptr))
574 if (Res.getSymB() != nullptr)
576 if (Res.getConstant() != 0)
1274 int64_t Res;
1275 return isImm() && getImm()->evaluateAsAbsolute(Res);
1332 MCValue Res;
1333 bool IsReloc = getMemOff()->evaluateAsRelocatable(Res, nullptr, nullptr);
1334 return IsReloc && isShiftedInt<Bits, ShiftAmount>(Res.getConstant());
1346 MCValue Res;
1347 bool IsReloc = getMemOff()->evaluateAsRelocatable(Res, nullptr, nullptr);
1348 return IsReloc && isIntN(PtrBits, Res.getConstant());
1387 MCValue Res;
1388 bool Success = getImm()->evaluateAsRelocatable(Res, nullptr, nullptr);
1389 return Success && isShiftedInt<Bits, ShiftLeftAmount>(Res.getConstant());
2890 MCValue Res;
2891 if (!SymExpr->evaluateAsRelocatable(Res, nullptr, nullptr)) {
2895 if (Res.getSymB() != nullptr) {
2902 Res.getSymA()->getSymbol().isInSection() ||
2903 Res.getSymA()->getSymbol().isTemporary() ||
2904 (Res.getSymA()->getSymbol().isELF() &&
2905 cast<MCSymbolELF>(Res.getSymA()->getSymbol()).getBinding() ==
2914 Res.getConstant() == 0 && !IsLocalSym) {
2963 MipsMCExpr::MEK_GOT_LO16, Res.getSymA(), getContext());
2972 if (Res.getConstant() != 0)
2975 Res.getConstant(), getContext())),
2994 GotExpr = MipsMCExpr::create(MipsMCExpr::MEK_GOT_DISP, Res.getSymA(),
2996 if (Res.getConstant() != 0) {
3000 LoExpr = MCConstantExpr::create(Res.getConstant(), getContext());
3004 if (Res.getConstant() < -0x8000 || Res.getConstant() > 0x7fff) {
3029 GotExpr = MipsMCExpr::create(MipsMCExpr::MEK_GOT, Res.getSymA(),
3031 if (Res.getConstant() != 0)
3032 LoExpr = MCConstantExpr::create(Res.getConstant(), getContext());
3722 MCValue Res;
3723 if (!OffsetOp.getExpr()->evaluateAsRelocatable(Res, nullptr, nullptr)) {
3727 if (Res.getSymB() != nullptr) {
3732 loadAndAddSymbolAddress(Res.getSymA(), TmpReg, BaseReg,
3734 emitInstWithOffset(MCOperand::createImm(int16_t(Res.getConstant())));
6180 const MCExpr *Res =
6183 Operands.push_back(MipsOperand::CreateImm(Res, S, E, *this));
6229 bool MipsAsmParser::parseMemOffset(const MCExpr *&Res, bool isParenExpr) {
6233 return getParser().parseParenExprOfDepth(0, Res, S);
6234 return getParser().parseExpression(Res);
6244 OperandMatchResultTy Res = MatchOperand_NoMatch;
6337 Res = parseAnyRegister(Operands);
6338 if (Res != MatchOperand_Success)
6339 return Res;