Lines Matching refs:MCE
444 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isSImm9() local
445 if (!MCE) in isSImm9()
447 int64_t Val = MCE->getValue(); in isSImm9()
453 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isSImm7s4() local
454 if (!MCE) in isSImm7s4()
456 int64_t Val = MCE->getValue(); in isSImm7s4()
462 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isSImm7s8() local
463 if (!MCE) in isSImm7s8()
465 int64_t Val = MCE->getValue(); in isSImm7s8()
471 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isSImm7s16() local
472 if (!MCE) in isSImm7s16()
474 int64_t Val = MCE->getValue(); in isSImm7s16()
515 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isUImm12Offset() local
516 if (!MCE) in isUImm12Offset()
519 int64_t Val = MCE->getValue(); in isUImm12Offset()
526 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm0_1() local
527 if (!MCE) in isImm0_1()
529 int64_t Val = MCE->getValue(); in isImm0_1()
535 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm0_7() local
536 if (!MCE) in isImm0_7()
538 int64_t Val = MCE->getValue(); in isImm0_7()
544 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm1_8() local
545 if (!MCE) in isImm1_8()
547 int64_t Val = MCE->getValue(); in isImm1_8()
553 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm0_15() local
554 if (!MCE) in isImm0_15()
556 int64_t Val = MCE->getValue(); in isImm0_15()
562 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm1_16() local
563 if (!MCE) in isImm1_16()
565 int64_t Val = MCE->getValue(); in isImm1_16()
571 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm0_31() local
572 if (!MCE) in isImm0_31()
574 int64_t Val = MCE->getValue(); in isImm0_31()
580 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm1_31() local
581 if (!MCE) in isImm1_31()
583 int64_t Val = MCE->getValue(); in isImm1_31()
589 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm1_32() local
590 if (!MCE) in isImm1_32()
592 int64_t Val = MCE->getValue(); in isImm1_32()
598 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm0_63() local
599 if (!MCE) in isImm0_63()
601 int64_t Val = MCE->getValue(); in isImm0_63()
607 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm1_63() local
608 if (!MCE) in isImm1_63()
610 int64_t Val = MCE->getValue(); in isImm1_63()
616 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm1_64() local
617 if (!MCE) in isImm1_64()
619 int64_t Val = MCE->getValue(); in isImm1_64()
625 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm0_127() local
626 if (!MCE) in isImm0_127()
628 int64_t Val = MCE->getValue(); in isImm0_127()
634 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm0_255() local
635 if (!MCE) in isImm0_255()
637 int64_t Val = MCE->getValue(); in isImm0_255()
643 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm0_65535() local
644 if (!MCE) in isImm0_65535()
646 int64_t Val = MCE->getValue(); in isImm0_65535()
652 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm32_63() local
653 if (!MCE) in isImm32_63()
655 int64_t Val = MCE->getValue(); in isImm32_63()
661 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isLogicalImm32() local
662 if (!MCE) in isLogicalImm32()
664 int64_t Val = MCE->getValue(); in isLogicalImm32()
673 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isLogicalImm64() local
674 if (!MCE) in isLogicalImm64()
676 return AArch64_AM::isLogicalImmediate(MCE->getValue(), 64); in isLogicalImm64()
681 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isLogicalImm32Not() local
682 if (!MCE) in isLogicalImm32Not()
684 int64_t Val = ~MCE->getValue() & 0xFFFFFFFF; in isLogicalImm32Not()
690 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isLogicalImm64Not() local
691 if (!MCE) in isLogicalImm64Not()
693 return AArch64_AM::isLogicalImmediate(~MCE->getValue(), 64); in isLogicalImm64Not()
757 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isSIMDImmType10() local
758 if (!MCE) in isSIMDImmType10()
760 return AArch64_AM::isAdvSIMDModImmType10(MCE->getValue()); in isSIMDImmType10()
765 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isBranchTarget26() local
766 if (!MCE) in isBranchTarget26()
768 int64_t Val = MCE->getValue(); in isBranchTarget26()
776 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isPCRelLabel19() local
777 if (!MCE) in isPCRelLabel19()
779 int64_t Val = MCE->getValue(); in isPCRelLabel19()
787 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isBranchTarget14() local
788 if (!MCE) in isBranchTarget14()
790 int64_t Val = MCE->getValue(); in isBranchTarget14()
1268 const MCExpr *MCE = isShiftedImm() ? getShiftedImmVal() : getImm(); in addAddSubImmNegOperands() local
1269 const MCConstantExpr *CE = cast<MCConstantExpr>(MCE); in addAddSubImmNegOperands()
1284 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in addAdrpLabelOperands() local
1285 if (!MCE) in addAdrpLabelOperands()
1288 Inst.addOperand(MCOperand::createImm(MCE->getValue() >> 12)); in addAdrpLabelOperands()
1298 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in addUImm12OffsetOperands() local
1300 if (!MCE) { in addUImm12OffsetOperands()
1304 Inst.addOperand(MCOperand::createImm(MCE->getValue() / Scale)); in addUImm12OffsetOperands()
1309 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addSImm9Operands() local
1310 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addSImm9Operands()
1315 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addSImm7s4Operands() local
1316 Inst.addOperand(MCOperand::createImm(MCE->getValue() / 4)); in addSImm7s4Operands()
1321 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addSImm7s8Operands() local
1322 Inst.addOperand(MCOperand::createImm(MCE->getValue() / 8)); in addSImm7s8Operands()
1327 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addSImm7s16Operands() local
1328 Inst.addOperand(MCOperand::createImm(MCE->getValue() / 16)); in addSImm7s16Operands()
1333 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm0_1Operands() local
1334 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm0_1Operands()
1339 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm0_7Operands() local
1340 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm0_7Operands()
1345 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm1_8Operands() local
1346 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm1_8Operands()
1351 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm0_15Operands() local
1352 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm0_15Operands()
1357 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm1_16Operands() local
1358 assert(MCE && "Invalid constant immediate operand!"); in addImm1_16Operands()
1359 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm1_16Operands()
1364 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm0_31Operands() local
1365 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm0_31Operands()
1370 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm1_31Operands() local
1371 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm1_31Operands()
1376 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm1_32Operands() local
1377 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm1_32Operands()
1382 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm0_63Operands() local
1383 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm0_63Operands()
1388 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm1_63Operands() local
1389 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm1_63Operands()
1394 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm1_64Operands() local
1395 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm1_64Operands()
1400 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm0_127Operands() local
1401 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm0_127Operands()
1406 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm0_255Operands() local
1407 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm0_255Operands()
1412 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm0_65535Operands() local
1413 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm0_65535Operands()
1418 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm32_63Operands() local
1419 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm32_63Operands()
1424 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addLogicalImm32Operands() local
1426 AArch64_AM::encodeLogicalImmediate(MCE->getValue() & 0xFFFFFFFF, 32); in addLogicalImm32Operands()
1432 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addLogicalImm64Operands() local
1433 uint64_t encoding = AArch64_AM::encodeLogicalImmediate(MCE->getValue(), 64); in addLogicalImm64Operands()
1439 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addLogicalImm32NotOperands() local
1440 int64_t Val = ~MCE->getValue() & 0xFFFFFFFF; in addLogicalImm32NotOperands()
1447 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addLogicalImm64NotOperands() local
1449 AArch64_AM::encodeLogicalImmediate(~MCE->getValue(), 64); in addLogicalImm64NotOperands()
1455 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addSIMDImmType10Operands() local
1456 uint64_t encoding = AArch64_AM::encodeAdvSIMDModImmType10(MCE->getValue()); in addSIMDImmType10Operands()
1465 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in addBranchTarget26Operands() local
1466 if (!MCE) { in addBranchTarget26Operands()
1470 assert(MCE && "Invalid constant immediate operand!"); in addBranchTarget26Operands()
1471 Inst.addOperand(MCOperand::createImm(MCE->getValue() >> 2)); in addBranchTarget26Operands()
1479 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in addPCRelLabel19Operands() local
1480 if (!MCE) { in addPCRelLabel19Operands()
1484 assert(MCE && "Invalid constant immediate operand!"); in addPCRelLabel19Operands()
1485 Inst.addOperand(MCOperand::createImm(MCE->getValue() >> 2)); in addPCRelLabel19Operands()
1493 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in addBranchTarget14Operands() local
1494 if (!MCE) { in addBranchTarget14Operands()
1498 assert(MCE && "Invalid constant immediate operand!"); in addBranchTarget14Operands()
1499 Inst.addOperand(MCOperand::createImm(MCE->getValue() >> 2)); in addBranchTarget14Operands()
2065 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(ImmVal); in tryParsePrefetch() local
2066 if (!MCE) { in tryParsePrefetch()
2070 unsigned prfop = MCE->getValue(); in tryParsePrefetch()
2076 auto PRFM = AArch64PRFM::lookupPRFMByEncoding(MCE->getValue()); in tryParsePrefetch()
2275 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(Imm); in tryParseAddSubImm() local
2276 if (MCE) { in tryParseAddSubImm()
2277 int64_t Val = MCE->getValue(); in tryParseAddSubImm()
2437 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(ImmVal); in tryParseOptionalShiftExtend() local
2438 if (!MCE) { in tryParseOptionalShiftExtend()
2445 ShOp, MCE->getValue(), true, S, E, getContext())); in tryParseOptionalShiftExtend()
2733 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(ImmVal); in tryParseBarrierOperand() local
2734 if (!MCE) { in tryParseBarrierOperand()
2738 if (MCE->getValue() < 0 || MCE->getValue() > 15) { in tryParseBarrierOperand()
2742 auto DB = AArch64DB::lookupDBByEncoding(MCE->getValue()); in tryParseBarrierOperand()
2744 MCE->getValue(), DB ? DB->Name : "", ExprLoc, getContext())); in tryParseBarrierOperand()
2829 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(ImmVal); in tryParseVectorRegister() local
2830 if (!MCE) { in tryParseVectorRegister()
2843 Operands.push_back(AArch64Operand::CreateVectorIndex(MCE->getValue(), SIdx, in tryParseVectorRegister()
3051 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(ImmVal); in parseVectorList() local
3052 if (!MCE) { in parseVectorList()
3065 Operands.push_back(AArch64Operand::CreateVectorIndex(MCE->getValue(), SIdx, in parseVectorList()