Lines Matching defs:getImm

247   int64_t getImm() const {
350 bool isU1Imm() const { return Kind == Immediate && isUInt<1>(getImm()); }
351 bool isU2Imm() const { return Kind == Immediate && isUInt<2>(getImm()); }
352 bool isU3Imm() const { return Kind == Immediate && isUInt<3>(getImm()); }
353 bool isU4Imm() const { return Kind == Immediate && isUInt<4>(getImm()); }
354 bool isU5Imm() const { return Kind == Immediate && isUInt<5>(getImm()); }
355 bool isS5Imm() const { return Kind == Immediate && isInt<5>(getImm()); }
356 bool isU6Imm() const { return Kind == Immediate && isUInt<6>(getImm()); }
358 isUInt<6>(getImm()) &&
359 (getImm() & 1) == 0; }
360 bool isU7Imm() const { return Kind == Immediate && isUInt<7>(getImm()); }
362 isUInt<7>(getImm()) &&
363 (getImm() & 3) == 0; }
364 bool isU8Imm() const { return Kind == Immediate && isUInt<8>(getImm()); }
366 isUInt<8>(getImm()) &&
367 (getImm() & 7) == 0; }
369 bool isU10Imm() const { return Kind == Immediate && isUInt<10>(getImm()); }
370 bool isU12Imm() const { return Kind == Immediate && isUInt<12>(getImm()); }
381 return (Kind == Immediate && getImm() <= -8 && getImm() >= -512 &&
382 (getImm() & 7) == 0);
387 (Kind == Immediate && isInt<34>(getImm()) && (getImm() & 15) == 0);
392 return Kind == Expression || (Kind == Immediate && isInt<34>(getImm()));
402 if ((getImm() & 3) != 0)
404 if (isInt<26>(getImm()))
408 if (isUInt<32>(getImm()) && isInt<26>(static_cast<int32_t>(getImm())))
414 (Kind == Immediate && isInt<16>(getImm()) &&
415 (getImm() & 3) == 0); }
416 bool isImmZero() const { return Kind == Immediate && getImm() == 0; }
417 bool isRegNumber() const { return Kind == Immediate && isUInt<5>(getImm()); }
419 return Kind == Immediate && isUInt<3>(getImm());
422 return Kind == Immediate && isUInt<6>(getImm());
425 return Kind == Immediate && isUInt<5>(getImm());
428 return Kind == Immediate && isUInt<3>(getImm());
431 return Kind == Immediate && isUInt<2>(getImm());
434 return Kind == Immediate && isUInt<6>(getImm()) && ((getImm() & 1) == 0);
437 return Kind == Immediate && isUInt<6>(getImm());
442 && isUInt<3>(getImm())); }
446 && isUInt<5>(getImm())); }
448 bool isEvenRegNumber() const { return isRegNumber() && (getImm() & 1) == 0; }
451 return Kind == Immediate && isUInt<8>(getImm()) &&
452 llvm::has_single_bit<uint32_t>(getImm());
614 Inst.addOperand(MCOperand::createImm(getImm()));
623 Inst.addOperand(MCOperand::createImm(getImm()));
638 Inst.addOperand(MCOperand::createImm(getImm()));
652 Inst.addOperand(MCOperand::createImm(getImm() / 4));
787 OS << getImm();
801 Inst.addOperand(MCOperand::createImm(-Op.getImm()));
959 int64_t N = Inst.getOperand(2).getImm();
960 int64_t B = Inst.getOperand(3).getImm();
973 int64_t N = Inst.getOperand(2).getImm();
974 int64_t B = Inst.getOperand(3).getImm();
987 int64_t N = Inst.getOperand(2).getImm();
988 int64_t B = Inst.getOperand(3).getImm();
1002 int64_t N = Inst.getOperand(2).getImm();
1003 int64_t B = Inst.getOperand(3).getImm();
1017 int64_t N = Inst.getOperand(2).getImm();
1030 int64_t N = Inst.getOperand(2).getImm();
1043 int64_t N = Inst.getOperand(2).getImm();
1056 int64_t N = Inst.getOperand(2).getImm();
1069 int64_t B = Inst.getOperand(2).getImm();
1070 int64_t N = Inst.getOperand(3).getImm();
1083 int64_t N = Inst.getOperand(2).getImm();
1084 int64_t B = Inst.getOperand(3).getImm();
1096 int64_t N = Inst.getOperand(2).getImm();
1097 int64_t B = Inst.getOperand(3).getImm();
1109 int64_t N = Inst.getOperand(2).getImm();
1110 int64_t B = Inst.getOperand(3).getImm();
1123 int64_t N = Inst.getOperand(2).getImm();
1135 int64_t N = Inst.getOperand(2).getImm();
1146 int64_t N = Inst.getOperand(1).getImm();
1156 int64_t N = Inst.getOperand(2).getImm();
1168 int64_t N = Inst.getOperand(2).getImm();
1180 int64_t B = Inst.getOperand(2).getImm();
1181 int64_t N = Inst.getOperand(3).getImm();
1193 int64_t BM = Inst.getOperand(3).getImm();
1210 int64_t BM = Inst.getOperand(3).getImm();
1228 int64_t BM = Inst.getOperand(3).getImm();
1727 if (EHOp.isU1Imm() && EHOp.getImm() == 0)
1911 if (Op.isU3Imm() && Op.getImm() == ImmVal)