Lines Matching refs:MCE
442 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isSImm9() local
443 if (!MCE) in isSImm9()
445 int64_t Val = MCE->getValue(); in isSImm9()
451 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isSImm7s4() local
452 if (!MCE) in isSImm7s4()
454 int64_t Val = MCE->getValue(); in isSImm7s4()
460 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isSImm7s8() local
461 if (!MCE) in isSImm7s8()
463 int64_t Val = MCE->getValue(); in isSImm7s8()
469 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isSImm7s16() local
470 if (!MCE) in isSImm7s16()
472 int64_t Val = MCE->getValue(); in isSImm7s16()
513 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isUImm12Offset() local
514 if (!MCE) in isUImm12Offset()
517 int64_t Val = MCE->getValue(); in isUImm12Offset()
524 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm0_1() local
525 if (!MCE) in isImm0_1()
527 int64_t Val = MCE->getValue(); in isImm0_1()
533 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm0_7() local
534 if (!MCE) in isImm0_7()
536 int64_t Val = MCE->getValue(); in isImm0_7()
542 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm1_8() local
543 if (!MCE) in isImm1_8()
545 int64_t Val = MCE->getValue(); in isImm1_8()
551 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm0_15() local
552 if (!MCE) in isImm0_15()
554 int64_t Val = MCE->getValue(); in isImm0_15()
560 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm1_16() local
561 if (!MCE) in isImm1_16()
563 int64_t Val = MCE->getValue(); in isImm1_16()
569 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm0_31() local
570 if (!MCE) in isImm0_31()
572 int64_t Val = MCE->getValue(); in isImm0_31()
578 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm1_31() local
579 if (!MCE) in isImm1_31()
581 int64_t Val = MCE->getValue(); in isImm1_31()
587 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm1_32() local
588 if (!MCE) in isImm1_32()
590 int64_t Val = MCE->getValue(); in isImm1_32()
596 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm0_63() local
597 if (!MCE) in isImm0_63()
599 int64_t Val = MCE->getValue(); in isImm0_63()
605 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm1_63() local
606 if (!MCE) in isImm1_63()
608 int64_t Val = MCE->getValue(); in isImm1_63()
614 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm1_64() local
615 if (!MCE) in isImm1_64()
617 int64_t Val = MCE->getValue(); in isImm1_64()
623 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm0_127() local
624 if (!MCE) in isImm0_127()
626 int64_t Val = MCE->getValue(); in isImm0_127()
632 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm0_255() local
633 if (!MCE) in isImm0_255()
635 int64_t Val = MCE->getValue(); in isImm0_255()
641 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm0_65535() local
642 if (!MCE) in isImm0_65535()
644 int64_t Val = MCE->getValue(); in isImm0_65535()
650 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm32_63() local
651 if (!MCE) in isImm32_63()
653 int64_t Val = MCE->getValue(); in isImm32_63()
659 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isLogicalImm32() local
660 if (!MCE) in isLogicalImm32()
662 int64_t Val = MCE->getValue(); in isLogicalImm32()
671 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isLogicalImm64() local
672 if (!MCE) in isLogicalImm64()
674 return AArch64_AM::isLogicalImmediate(MCE->getValue(), 64); in isLogicalImm64()
679 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isLogicalImm32Not() local
680 if (!MCE) in isLogicalImm32Not()
682 int64_t Val = ~MCE->getValue() & 0xFFFFFFFF; in isLogicalImm32Not()
688 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isLogicalImm64Not() local
689 if (!MCE) in isLogicalImm64Not()
691 return AArch64_AM::isLogicalImmediate(~MCE->getValue(), 64); in isLogicalImm64Not()
755 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isSIMDImmType10() local
756 if (!MCE) in isSIMDImmType10()
758 return AArch64_AM::isAdvSIMDModImmType10(MCE->getValue()); in isSIMDImmType10()
763 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isBranchTarget26() local
764 if (!MCE) in isBranchTarget26()
766 int64_t Val = MCE->getValue(); in isBranchTarget26()
774 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isPCRelLabel19() local
775 if (!MCE) in isPCRelLabel19()
777 int64_t Val = MCE->getValue(); in isPCRelLabel19()
785 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isBranchTarget14() local
786 if (!MCE) in isBranchTarget14()
788 int64_t Val = MCE->getValue(); in isBranchTarget14()
1282 const MCExpr *MCE = isShiftedImm() ? getShiftedImmVal() : getImm(); in addAddSubImmNegOperands() local
1283 const MCConstantExpr *CE = cast<MCConstantExpr>(MCE); in addAddSubImmNegOperands()
1298 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in addAdrpLabelOperands() local
1299 if (!MCE) in addAdrpLabelOperands()
1302 Inst.addOperand(MCOperand::createImm(MCE->getValue() >> 12)); in addAdrpLabelOperands()
1312 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in addUImm12OffsetOperands() local
1314 if (!MCE) { in addUImm12OffsetOperands()
1318 Inst.addOperand(MCOperand::createImm(MCE->getValue() / Scale)); in addUImm12OffsetOperands()
1323 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addSImm9Operands() local
1324 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addSImm9Operands()
1329 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addSImm7s4Operands() local
1330 Inst.addOperand(MCOperand::createImm(MCE->getValue() / 4)); in addSImm7s4Operands()
1335 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addSImm7s8Operands() local
1336 Inst.addOperand(MCOperand::createImm(MCE->getValue() / 8)); in addSImm7s8Operands()
1341 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addSImm7s16Operands() local
1342 Inst.addOperand(MCOperand::createImm(MCE->getValue() / 16)); in addSImm7s16Operands()
1347 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm0_1Operands() local
1348 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm0_1Operands()
1353 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm0_7Operands() local
1354 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm0_7Operands()
1359 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm1_8Operands() local
1360 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm1_8Operands()
1365 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm0_15Operands() local
1366 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm0_15Operands()
1371 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm1_16Operands() local
1372 assert(MCE && "Invalid constant immediate operand!"); in addImm1_16Operands()
1373 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm1_16Operands()
1378 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm0_31Operands() local
1379 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm0_31Operands()
1384 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm1_31Operands() local
1385 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm1_31Operands()
1390 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm1_32Operands() local
1391 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm1_32Operands()
1396 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm0_63Operands() local
1397 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm0_63Operands()
1402 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm1_63Operands() local
1403 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm1_63Operands()
1408 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm1_64Operands() local
1409 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm1_64Operands()
1414 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm0_127Operands() local
1415 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm0_127Operands()
1420 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm0_255Operands() local
1421 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm0_255Operands()
1426 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm0_65535Operands() local
1427 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm0_65535Operands()
1432 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addImm32_63Operands() local
1433 Inst.addOperand(MCOperand::createImm(MCE->getValue())); in addImm32_63Operands()
1438 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addLogicalImm32Operands() local
1440 AArch64_AM::encodeLogicalImmediate(MCE->getValue() & 0xFFFFFFFF, 32); in addLogicalImm32Operands()
1446 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addLogicalImm64Operands() local
1447 uint64_t encoding = AArch64_AM::encodeLogicalImmediate(MCE->getValue(), 64); in addLogicalImm64Operands()
1453 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addLogicalImm32NotOperands() local
1454 int64_t Val = ~MCE->getValue() & 0xFFFFFFFF; in addLogicalImm32NotOperands()
1461 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addLogicalImm64NotOperands() local
1463 AArch64_AM::encodeLogicalImmediate(~MCE->getValue(), 64); in addLogicalImm64NotOperands()
1469 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm()); in addSIMDImmType10Operands() local
1470 uint64_t encoding = AArch64_AM::encodeAdvSIMDModImmType10(MCE->getValue()); in addSIMDImmType10Operands()
1479 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in addBranchTarget26Operands() local
1480 if (!MCE) { in addBranchTarget26Operands()
1484 assert(MCE && "Invalid constant immediate operand!"); in addBranchTarget26Operands()
1485 Inst.addOperand(MCOperand::createImm(MCE->getValue() >> 2)); in addBranchTarget26Operands()
1493 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in addPCRelLabel19Operands() local
1494 if (!MCE) { in addPCRelLabel19Operands()
1498 assert(MCE && "Invalid constant immediate operand!"); in addPCRelLabel19Operands()
1499 Inst.addOperand(MCOperand::createImm(MCE->getValue() >> 2)); in addPCRelLabel19Operands()
1507 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in addBranchTarget14Operands() local
1508 if (!MCE) { in addBranchTarget14Operands()
1512 assert(MCE && "Invalid constant immediate operand!"); in addBranchTarget14Operands()
1513 Inst.addOperand(MCOperand::createImm(MCE->getValue() >> 2)); in addBranchTarget14Operands()
2079 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(ImmVal); in tryParsePrefetch() local
2080 if (!MCE) { in tryParsePrefetch()
2084 unsigned prfop = MCE->getValue(); in tryParsePrefetch()
2093 Mapper.toString(MCE->getValue(), getSTI().getFeatureBits(), Valid); in tryParsePrefetch()
2298 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(Imm); in tryParseAddSubImm() local
2299 if (MCE) { in tryParseAddSubImm()
2300 int64_t Val = MCE->getValue(); in tryParseAddSubImm()
2460 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(ImmVal); in tryParseOptionalShiftExtend() local
2461 if (!MCE) { in tryParseOptionalShiftExtend()
2468 ShOp, MCE->getValue(), true, S, E, getContext())); in tryParseOptionalShiftExtend()
2756 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(ImmVal); in tryParseBarrierOperand() local
2757 if (!MCE) { in tryParseBarrierOperand()
2761 if (MCE->getValue() < 0 || MCE->getValue() > 15) { in tryParseBarrierOperand()
2768 Mapper.toString(MCE->getValue(), getSTI().getFeatureBits(), Valid); in tryParseBarrierOperand()
2769 Operands.push_back( AArch64Operand::CreateBarrier(MCE->getValue(), Name, in tryParseBarrierOperand()
2864 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(ImmVal); in tryParseVectorRegister() local
2865 if (!MCE) { in tryParseVectorRegister()
2878 Operands.push_back(AArch64Operand::CreateVectorIndex(MCE->getValue(), SIdx, in tryParseVectorRegister()
3086 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(ImmVal); in parseVectorList() local
3087 if (!MCE) { in parseVectorList()
3100 Operands.push_back(AArch64Operand::CreateVectorIndex(MCE->getValue(), SIdx, in parseVectorList()