|
LLVM
10.0.0
|
ARM_AM - ARM Addressing Mode Stuff. More...
Enumerations | |
| enum | ShiftOpc { no_shift = 0, asr, lsl, lsr, ror, rrx, uxtw } |
| enum | AddrOpc { sub = 0, add } |
| enum | AMSubMode { bad_am_submode = 0, ia, ib, da, db } |
Functions | |
| static ShiftOpc | getShiftOpcForNode (unsigned Opcode) |
| const char * | getAddrOpcStr (AddrOpc Op) |
| const char * | getShiftOpcStr (ShiftOpc Op) |
| unsigned | getShiftOpcEncoding (ShiftOpc Op) |
| const char * | getAMSubModeStr (AMSubMode Mode) |
| unsigned | rotr32 (unsigned Val, unsigned Amt) |
| rotr32 - Rotate a 32-bit unsigned value right by a specified # bits. More... | |
| unsigned | rotl32 (unsigned Val, unsigned Amt) |
| rotl32 - Rotate a 32-bit unsigned value left by a specified # bits. More... | |
| unsigned | getSORegOpc (ShiftOpc ShOp, unsigned Imm) |
| unsigned | getSORegOffset (unsigned Op) |
| ShiftOpc | getSORegShOp (unsigned Op) |
| unsigned | getSOImmValImm (unsigned Imm) |
| getSOImmValImm - Given an encoded imm field for the reg/imm form, return the 8-bit imm value. More... | |
| unsigned | getSOImmValRot (unsigned Imm) |
| getSOImmValRot - Given an encoded imm field for the reg/imm form, return the rotate amount. More... | |
| unsigned | getSOImmValRotate (unsigned Imm) |
| getSOImmValRotate - Try to handle Imm with an immediate shifter operand, computing the rotate amount to use. More... | |
| int | getSOImmVal (unsigned Arg) |
| getSOImmVal - Given a 32-bit immediate, if it is something that can fit into an shifter_operand immediate operand, return the 12-bit encoding for it. More... | |
| bool | isSOImmTwoPartVal (unsigned V) |
| isSOImmTwoPartVal - Return true if the specified value can be obtained by or'ing together two SOImmVal's. More... | |
| unsigned | getSOImmTwoPartFirst (unsigned V) |
| getSOImmTwoPartFirst - If V is a value that satisfies isSOImmTwoPartVal, return the first chunk of it. More... | |
| unsigned | getSOImmTwoPartSecond (unsigned V) |
| getSOImmTwoPartSecond - If V is a value that satisfies isSOImmTwoPartVal, return the second chunk of it. More... | |
| unsigned | getThumbImmValShift (unsigned Imm) |
| getThumbImmValShift - Try to handle Imm with a 8-bit immediate followed by a left shift. More... | |
| bool | isThumbImmShiftedVal (unsigned V) |
| isThumbImmShiftedVal - Return true if the specified value can be obtained by left shifting a 8-bit immediate. More... | |
| unsigned | getThumbImm16ValShift (unsigned Imm) |
| getThumbImm16ValShift - Try to handle Imm with a 16-bit immediate followed by a left shift. More... | |
| bool | isThumbImm16ShiftedVal (unsigned V) |
| isThumbImm16ShiftedVal - Return true if the specified value can be obtained by left shifting a 16-bit immediate. More... | |
| unsigned | getThumbImmNonShiftedVal (unsigned V) |
| getThumbImmNonShiftedVal - If V is a value that satisfies isThumbImmShiftedVal, return the non-shiftd value. More... | |
| int | getT2SOImmValSplatVal (unsigned V) |
| getT2SOImmValSplat - Return the 12-bit encoded representation if the specified value can be obtained by splatting the low 8 bits into every other byte or every byte of a 32-bit value. More... | |
| int | getT2SOImmValRotateVal (unsigned V) |
| getT2SOImmValRotateVal - Return the 12-bit encoded representation if the specified value is a rotated 8-bit value. More... | |
| int | getT2SOImmVal (unsigned Arg) |
| getT2SOImmVal - Given a 32-bit immediate, if it is something that can fit into a Thumb-2 shifter_operand immediate operand, return the 12-bit encoding for it. More... | |
| unsigned | getT2SOImmValRotate (unsigned V) |
| bool | isT2SOImmTwoPartVal (unsigned Imm) |
| unsigned | getT2SOImmTwoPartFirst (unsigned Imm) |
| unsigned | getT2SOImmTwoPartSecond (unsigned Imm) |
| unsigned | getAM2Opc (AddrOpc Opc, unsigned Imm12, ShiftOpc SO, unsigned IdxMode=0) |
| unsigned | getAM2Offset (unsigned AM2Opc) |
| AddrOpc | getAM2Op (unsigned AM2Opc) |
| ShiftOpc | getAM2ShiftOpc (unsigned AM2Opc) |
| unsigned | getAM2IdxMode (unsigned AM2Opc) |
| unsigned | getAM3Opc (AddrOpc Opc, unsigned char Offset, unsigned IdxMode=0) |
| getAM3Opc - This function encodes the addrmode3 opc field. More... | |
| unsigned char | getAM3Offset (unsigned AM3Opc) |
| AddrOpc | getAM3Op (unsigned AM3Opc) |
| unsigned | getAM3IdxMode (unsigned AM3Opc) |
| AMSubMode | getAM4SubMode (unsigned Mode) |
| unsigned | getAM4ModeImm (AMSubMode SubMode) |
| unsigned | getAM5Opc (AddrOpc Opc, unsigned char Offset) |
| getAM5Opc - This function encodes the addrmode5 opc field. More... | |
| unsigned char | getAM5Offset (unsigned AM5Opc) |
| AddrOpc | getAM5Op (unsigned AM5Opc) |
| unsigned | getAM5FP16Opc (AddrOpc Opc, unsigned char Offset) |
| getAM5FP16Opc - This function encodes the addrmode5fp16 opc field. More... | |
| unsigned char | getAM5FP16Offset (unsigned AM5Opc) |
| AddrOpc | getAM5FP16Op (unsigned AM5Opc) |
| unsigned | createVMOVModImm (unsigned OpCmode, unsigned Val) |
| unsigned | getVMOVModImmOpCmode (unsigned ModImm) |
| unsigned | getVMOVModImmVal (unsigned ModImm) |
| uint64_t | decodeVMOVModImm (unsigned ModImm, unsigned &EltBits) |
| decodeVMOVModImm - Decode a NEON/MVE modified immediate value into the element value and the element size in bits. More... | |
| bool | isNEONBytesplat (unsigned Value, unsigned Size) |
| bool | isNEONi16splat (unsigned Value) |
| Checks if Value is a correct immediate for instructions like VBIC/VORR. More... | |
| unsigned | encodeNEONi16splat (unsigned Value) |
| bool | isNEONi32splat (unsigned Value) |
| Checks if Value is a correct immediate for instructions like VBIC/VORR. More... | |
| unsigned | encodeNEONi32splat (unsigned Value) |
| Encode NEON 32 bits Splat immediate for instructions like VBIC/VORR. More... | |
| float | getFPImmFloat (unsigned Imm) |
| int | getFP16Imm (const APInt &Imm) |
| getFP16Imm - Return an 8-bit floating-point version of the 16-bit floating-point value. More... | |
| int | getFP16Imm (const APFloat &FPImm) |
| int | getFP32Imm (const APInt &Imm) |
| getFP32Imm - Return an 8-bit floating-point version of the 32-bit floating-point value. More... | |
| int | getFP32Imm (const APFloat &FPImm) |
| int | getFP64Imm (const APInt &Imm) |
| getFP64Imm - Return an 8-bit floating-point version of the 64-bit floating-point value. More... | |
| int | getFP64Imm (const APFloat &FPImm) |
| Enumerator | |
|---|---|
| sub | |
| add | |
Definition at line 37 of file ARMAddressingModes.h.
| Enumerator | |
|---|---|
| bad_am_submode | |
| ia | |
| ib | |
| da | |
| db | |
Definition at line 66 of file ARMAddressingModes.h.
| Enumerator | |
|---|---|
| no_shift | |
| asr | |
| lsl | |
| lsr | |
| ror | |
| rrx | |
| uxtw | |
Definition at line 27 of file ARMAddressingModes.h.
Definition at line 532 of file ARMAddressingModes.h.
Referenced by isVMOVModifiedImm(), LowerVectorINT_TO_FP(), and PromoteMVEPredVector().
decodeVMOVModImm - Decode a NEON/MVE modified immediate value into the element value and the element size in bits.
(If the element size is smaller than the vector, it is splatted into all the elements.)
Definition at line 543 of file ARMAddressingModes.h.
References getVMOVModImmOpCmode(), getVMOVModImmVal(), llvm::X86II::Imm8, and llvm_unreachable.
Referenced by PerformVDUPLANECombine(), and llvm::ARMInstPrinter::printVMOVModImmOperand().
Definition at line 600 of file ARMAddressingModes.h.
References assert(), and isNEONi16splat().
Encode NEON 32 bits Splat immediate for instructions like VBIC/VORR.
Definition at line 616 of file ARMAddressingModes.h.
References assert(), and isNEONi32splat().
Definition at line 42 of file ARMAddressingModes.h.
References sub.
Referenced by llvm::ARMInstPrinter::printAddrMode2OffsetOperand(), llvm::ARMInstPrinter::printAddrMode3OffsetOperand(), llvm::ARMInstPrinter::printAddrMode5FP16Operand(), llvm::ARMInstPrinter::printAddrMode5Operand(), llvm::ARMInstPrinter::printAM2PreOrOffsetIndexOp(), and llvm::ARMInstPrinter::printAM3PreOrOffsetIndexOp().
Definition at line 414 of file ARMAddressingModes.h.
Referenced by llvm::ARMInstPrinter::printAddrMode2Operand().
Definition at line 405 of file ARMAddressingModes.h.
Referenced by adjustDefLatency(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::ARMBaseRegisterInfo::getFrameIndexInstrOffset(), getNumMicroOpsSwiftLdSt(), llvm::ARMBaseInstrInfo::getOperandLatency(), HasConditionalBranch(), llvm::ARMBaseInstrInfo::isLdstScaledRegNotPlusLsl2(), llvm::ARMInstPrinter::printAddrMode2OffsetOperand(), llvm::ARMInstPrinter::printAM2PreOrOffsetIndexOp(), and llvm::rewriteARMFrameIndex().
Definition at line 408 of file ARMAddressingModes.h.
Referenced by adjustDefLatency(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::ARMBaseRegisterInfo::getFrameIndexInstrOffset(), getNumMicroOpsSwiftLdSt(), HasConditionalBranch(), llvm::ARMBaseInstrInfo::isLdstScaledRegNotPlusLsl2(), llvm::ARMBaseInstrInfo::isLdstSoMinusReg(), llvm::ARMInstPrinter::printAddrMode2OffsetOperand(), llvm::ARMInstPrinter::printAM2PreOrOffsetIndexOp(), and llvm::rewriteARMFrameIndex().
|
inline |
Definition at line 399 of file ARMAddressingModes.h.
Referenced by DecodeAddrMode2IdxInstruction(), DecodeSORegMemOperand(), getPostIndexedLoadStoreOpcode(), and llvm::ARMFrameLowering::ResolveFrameIndexReference().
Definition at line 411 of file ARMAddressingModes.h.
Referenced by adjustDefLatency(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), getNumMicroOpsSwiftLdSt(), llvm::ARMBaseInstrInfo::getOperandLatency(), HasConditionalBranch(), llvm::ARMBaseInstrInfo::isAm2ScaledReg(), llvm::ARMBaseInstrInfo::isLdstScaledReg(), llvm::ARMBaseInstrInfo::isLdstScaledRegNotPlusLsl2(), llvm::ARMInstPrinter::printAddrMode2OffsetOperand(), and llvm::ARMInstPrinter::printAM2PreOrOffsetIndexOp().
Definition at line 440 of file ARMAddressingModes.h.
Referenced by llvm::ARMInstPrinter::printAddrMode3Operand().
Definition at line 436 of file ARMAddressingModes.h.
Referenced by llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::ARMBaseRegisterInfo::getFrameIndexInstrOffset(), getMemoryOpOffset(), HasConditionalBranch(), llvm::ARMInstPrinter::printAddrMode3OffsetOperand(), llvm::ARMInstPrinter::printAM3PreOrOffsetIndexOp(), and llvm::rewriteARMFrameIndex().
Definition at line 437 of file ARMAddressingModes.h.
Referenced by llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::ARMBaseRegisterInfo::getFrameIndexInstrOffset(), getMemoryOpOffset(), getNumMicroOpsSwiftLdSt(), HasConditionalBranch(), llvm::ARMBaseInstrInfo::isAddrMode3OpMinusReg(), llvm::ARMInstPrinter::printAddrMode3OffsetOperand(), llvm::ARMInstPrinter::printAM3PreOrOffsetIndexOp(), and llvm::rewriteARMFrameIndex().
getAM3Opc - This function encodes the addrmode3 opc field.
Definition at line 431 of file ARMAddressingModes.h.
References sub.
Referenced by IsSafeAndProfitableToMove().
Definition at line 461 of file ARMAddressingModes.h.
Definition at line 457 of file ARMAddressingModes.h.
Referenced by llvm::ARMInstPrinter::printLdStmModeOperand().
Definition at line 500 of file ARMAddressingModes.h.
Referenced by llvm::ARMInstPrinter::printAddrMode5FP16Operand(), and llvm::rewriteT2FrameIndex().
Definition at line 503 of file ARMAddressingModes.h.
Referenced by llvm::ARMInstPrinter::printAddrMode5FP16Operand(), and llvm::rewriteT2FrameIndex().
getAM5FP16Opc - This function encodes the addrmode5fp16 opc field.
Definition at line 496 of file ARMAddressingModes.h.
References sub.
Referenced by DecodeAddrMode5FP16Operand().
Definition at line 479 of file ARMAddressingModes.h.
Referenced by llvm::ARMBaseRegisterInfo::getFrameIndexInstrOffset(), getMemoryOpOffset(), getPostIndexedLoadStoreOpcode(), HasConditionalBranch(), llvm::ARMInstPrinter::printAddrMode5Operand(), llvm::rewriteARMFrameIndex(), and llvm::rewriteT2FrameIndex().
Definition at line 480 of file ARMAddressingModes.h.
Referenced by llvm::ARMBaseRegisterInfo::getFrameIndexInstrOffset(), getMemoryOpOffset(), HasConditionalBranch(), llvm::ARMInstPrinter::printAddrMode5Operand(), llvm::rewriteARMFrameIndex(), and llvm::rewriteT2FrameIndex().
getAM5Opc - This function encodes the addrmode5 opc field.
Definition at line 475 of file ARMAddressingModes.h.
References sub.
Referenced by DecodeAddrMode5Operand(), and DecodeCopMemInstruction().
Definition at line 74 of file ARMAddressingModes.h.
References da, db, ia, ib, and llvm_unreachable.
Referenced by llvm::ARMInstPrinter::printLdStmModeOperand().
getFP16Imm - Return an 8-bit floating-point version of the 16-bit floating-point value.
If the value cannot be represented as an 8-bit floating-point value, then return -1.
Definition at line 653 of file ARMAddressingModes.h.
References llvm::APInt::getSExtValue(), llvm::APInt::getZExtValue(), and llvm::APInt::lshr().
Referenced by getFP16Imm(), and llvm::ARMTargetLowering::isFPImmLegal().
Definition at line 672 of file ARMAddressingModes.h.
References llvm::APFloat::bitcastToAPInt(), and getFP16Imm().
getFP32Imm - Return an 8-bit floating-point version of the 32-bit floating-point value.
If the value cannot be represented as an 8-bit floating-point value, then return -1.
Definition at line 679 of file ARMAddressingModes.h.
References llvm::APInt::getSExtValue(), llvm::APInt::getZExtValue(), and llvm::APInt::lshr().
Referenced by getFP32Imm(), llvm::ARMTargetLowering::isFPImmLegal(), isVMOVModifiedImm(), and LowerBUILD_VECTOR_i1().
Definition at line 700 of file ARMAddressingModes.h.
References llvm::APFloat::bitcastToAPInt(), and getFP32Imm().
getFP64Imm - Return an 8-bit floating-point version of the 64-bit floating-point value.
If the value cannot be represented as an 8-bit floating-point value, then return -1.
Definition at line 707 of file ARMAddressingModes.h.
References llvm::APInt::getSExtValue(), llvm::APInt::getZExtValue(), and llvm::APInt::lshr().
Referenced by getFP64Imm(), llvm::ARMTargetLowering::isFPImmLegal(), and isVMOVModifiedImm().
Definition at line 728 of file ARMAddressingModes.h.
References llvm::APFloat::bitcastToAPInt(), and getFP64Imm().
|
inline |
Definition at line 630 of file ARMAddressingModes.h.
References llvm::bit_cast(), and I.
Referenced by llvm::ARMInstPrinter::printFPImmOperand().
Definition at line 56 of file ARMAddressingModes.h.
References asr, llvm_unreachable, lsl, lsr, and ror.
Definition at line 23 of file ARMSelectionDAGInfo.h.
References asr, lsl, lsr, no_shift, ror, llvm::ISD::ROTR, llvm::ISD::SHL, llvm::ISD::SRA, and llvm::ISD::SRL.
Referenced by getARMIndexedAddressParts(), isFloatingPointZero(), SDValueToConstBool(), and shouldUseZeroOffsetLdSt().
Definition at line 44 of file ARMAddressingModes.h.
References asr, llvm_unreachable, lsl, lsr, ror, rrx, and uxtw.
Referenced by llvm::ARMInstPrinter::printInst(), printRegImmShift(), and llvm::ARMInstPrinter::printSORegRegOperand().
getSOImmTwoPartFirst - If V is a value that satisfies isSOImmTwoPartVal, return the first chunk of it.
Definition at line 193 of file ARMAddressingModes.h.
References getSOImmValRotate(), and rotr32().
Referenced by llvm::ARMBaseInstrInfo::FoldImmediate(), and makeImplicit().
getSOImmTwoPartSecond - If V is a value that satisfies isSOImmTwoPartVal, return the second chunk of it.
Definition at line 199 of file ARMAddressingModes.h.
References assert(), getSOImmValRotate(), and rotr32().
Referenced by llvm::ARMBaseInstrInfo::FoldImmediate(), and makeImplicit().
|
inline |
getSOImmVal - Given a 32-bit immediate, if it is something that can fit into an shifter_operand immediate operand, return the 12-bit encoding for it.
If not, return -1.
Definition at line 163 of file ARMAddressingModes.h.
References Arg, getSOImmValRotate(), rotl32(), and rotr32().
Referenced by llvm::ARMAsmBackend::adjustFixupValue(), llvm::ConstantMaterializationCost(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::emitARMRegPlusImmediate(), getComparePred(), llvm::ARMTTIImpl::getIntImmCost(), getRealVLDOpcode(), HasConditionalBranch(), llvm::ARMTargetLowering::isLegalAddImmediate(), llvm::ARMTargetLowering::isLegalICmpImmediate(), IsSingleInstrConstant(), llvm::LowerARMMachineInstrToMCInst(), llvm::ARMTargetLowering::LowerAsmOperandForConstraint(), llvm::ARMInstPrinter::printModImmOperand(), and llvm::rewriteARMFrameIndex().
getSOImmValImm - Given an encoded imm field for the reg/imm form, return the 8-bit imm value.
Definition at line 120 of file ARMAddressingModes.h.
getSOImmValRot - Given an encoded imm field for the reg/imm form, return the rotate amount.
Definition at line 123 of file ARMAddressingModes.h.
getSOImmValRotate - Try to handle Imm with an immediate shifter operand, computing the rotate amount to use.
If this immediate value cannot be handled with a single shifter-op, determine a good rotate amount that will take a maximal chunk of bits out of the immediate.
Definition at line 129 of file ARMAddressingModes.h.
References llvm::countTrailingZeros(), and rotr32().
Referenced by llvm::emitARMRegPlusImmediate(), getSOImmTwoPartFirst(), getSOImmTwoPartSecond(), getSOImmVal(), isSOImmTwoPartVal(), and llvm::rewriteARMFrameIndex().
Definition at line 115 of file ARMAddressingModes.h.
Referenced by getRealVLDOpcode(), HasConditionalBranch(), llvm::ARMBaseInstrInfo::isSwiftFastImmShift(), llvm::ARMInstPrinter::printInst(), llvm::ARMInstPrinter::printSORegImmOperand(), llvm::ARMInstPrinter::printSORegRegOperand(), and llvm::ARMInstPrinter::printT2SOOperand().
Definition at line 112 of file ARMAddressingModes.h.
Referenced by addExclusiveRegPair(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), emitAligningInstructions(), getComparePred(), getContiguousRangeOfSetBits(), getRealVLDOpcode(), llvm::ARMTargetLowering::ReplaceNodeResults(), and SDValueToConstBool().
Definition at line 116 of file ARMAddressingModes.h.
Referenced by getRealVLDOpcode(), HasConditionalBranch(), llvm::ARMBaseInstrInfo::isSwiftFastImmShift(), llvm::ARMInstPrinter::printInst(), llvm::ARMInstPrinter::printSORegImmOperand(), llvm::ARMInstPrinter::printSORegRegOperand(), and llvm::ARMInstPrinter::printT2SOOperand().
Definition at line 354 of file ARMAddressingModes.h.
References assert(), getT2SOImmVal(), getT2SOImmValRotate(), getT2SOImmValSplatVal(), isT2SOImmTwoPartVal(), and rotr32().
Referenced by llvm::ARMBaseInstrInfo::FoldImmediate(), and getT2SOImmTwoPartSecond().
Definition at line 371 of file ARMAddressingModes.h.
References assert(), getT2SOImmTwoPartFirst(), and getT2SOImmVal().
Referenced by llvm::ARMBaseInstrInfo::FoldImmediate().
|
inline |
getT2SOImmVal - Given a 32-bit immediate, if it is something that can fit into a Thumb-2 shifter_operand immediate operand, return the 12-bit encoding for it.
If not, return -1. See ARM Reference Manual A6.3.2.
Definition at line 306 of file ARMAddressingModes.h.
References getT2SOImmValRotateVal(), and getT2SOImmValSplatVal().
Referenced by llvm::ARMAsmBackend::adjustFixupValue(), llvm::ConstantMaterializationCost(), llvm::emitT2RegPlusImmediate(), getComparePred(), llvm::ARMTTIImpl::getIntImmCost(), getRealVLDOpcode(), getT2SOImmTwoPartFirst(), getT2SOImmTwoPartSecond(), llvm::ARMTargetLowering::isLegalAddImmediate(), llvm::ARMTargetLowering::isLegalICmpImmediate(), isT2SOImmTwoPartVal(), llvm::ARMTargetLowering::LowerAsmOperandForConstraint(), and llvm::rewriteT2FrameIndex().
Definition at line 320 of file ARMAddressingModes.h.
References llvm::countTrailingZeros().
Referenced by getT2SOImmTwoPartFirst(), and isT2SOImmTwoPartVal().
|
inline |
getT2SOImmValRotateVal - Return the 12-bit encoded representation if the specified value is a rotated 8-bit value.
Return -1 if no rotation encoding is possible. See ARM Reference Manual A6.3.2.
Definition at line 290 of file ARMAddressingModes.h.
References llvm::countLeadingZeros(), and rotr32().
Referenced by getT2SOImmVal().
|
inline |
getT2SOImmValSplat - Return the 12-bit encoded representation if the specified value can be obtained by splatting the low 8 bits into every other byte or every byte of a 32-bit value.
i.e., 00000000 00000000 00000000 abcdefgh control = 0 00000000 abcdefgh 00000000 abcdefgh control = 1 abcdefgh 00000000 abcdefgh 00000000 control = 2 abcdefgh abcdefgh abcdefgh abcdefgh control = 3 Return -1 if none of the above apply. See ARM Reference Manual A6.3.2.
Definition at line 262 of file ARMAddressingModes.h.
Referenced by getT2SOImmTwoPartFirst(), getT2SOImmVal(), and isT2SOImmTwoPartVal().
getThumbImm16ValShift - Try to handle Imm with a 16-bit immediate followed by a left shift.
Returns the shift amount to use.
Definition at line 229 of file ARMAddressingModes.h.
References llvm::countTrailingZeros().
Referenced by isThumbImm16ShiftedVal().
getThumbImmNonShiftedVal - If V is a value that satisfies isThumbImmShiftedVal, return the non-shiftd value.
Definition at line 248 of file ARMAddressingModes.h.
References getThumbImmValShift().
getThumbImmValShift - Try to handle Imm with a 8-bit immediate followed by a left shift.
Returns the shift amount to use.
Definition at line 210 of file ARMAddressingModes.h.
References llvm::countTrailingZeros().
Referenced by getThumbImmNonShiftedVal(), and isThumbImmShiftedVal().
Definition at line 535 of file ARMAddressingModes.h.
Referenced by decodeVMOVModImm().
Definition at line 538 of file ARMAddressingModes.h.
Referenced by decodeVMOVModImm().
Definition at line 581 of file ARMAddressingModes.h.
References assert(), llvm::count(), and Size.
Referenced by isNEONi16splat(), and isNEONi32splat().
Checks if Value is a correct immediate for instructions like VBIC/VORR.
Definition at line 592 of file ARMAddressingModes.h.
References isNEONBytesplat().
Referenced by encodeNEONi16splat().
Checks if Value is a correct immediate for instructions like VBIC/VORR.
Definition at line 610 of file ARMAddressingModes.h.
References isNEONBytesplat().
Referenced by encodeNEONi32splat().
isSOImmTwoPartVal - Return true if the specified value can be obtained by or'ing together two SOImmVal's.
Definition at line 180 of file ARMAddressingModes.h.
References getSOImmValRotate(), and rotr32().
Referenced by llvm::ConstantMaterializationCost(), and llvm::ARMBaseInstrInfo::FoldImmediate().
Definition at line 327 of file ARMAddressingModes.h.
References getT2SOImmVal(), getT2SOImmValRotate(), getT2SOImmValSplatVal(), and rotr32().
Referenced by llvm::ARMBaseInstrInfo::FoldImmediate(), and getT2SOImmTwoPartFirst().
isThumbImm16ShiftedVal - Return true if the specified value can be obtained by left shifting a 16-bit immediate.
Definition at line 240 of file ARMAddressingModes.h.
References getThumbImm16ValShift().
isThumbImmShiftedVal - Return true if the specified value can be obtained by left shifting a 8-bit immediate.
Definition at line 221 of file ARMAddressingModes.h.
References getThumbImmValShift().
Referenced by llvm::ConstantMaterializationCost(), llvm::ARMTTIImpl::getIntImmCost(), and llvm::ARMTargetLowering::LowerAsmOperandForConstraint().
rotl32 - Rotate a 32-bit unsigned value left by a specified # bits.
Definition at line 93 of file ARMAddressingModes.h.
References assert().
Referenced by getSOImmVal().
rotr32 - Rotate a 32-bit unsigned value right by a specified # bits.
Definition at line 86 of file ARMAddressingModes.h.
References assert().
Referenced by llvm::emitARMRegPlusImmediate(), llvm::emitT2RegPlusImmediate(), getRealVLDOpcode(), getSOImmTwoPartFirst(), getSOImmTwoPartSecond(), getSOImmVal(), getSOImmValRotate(), getT2SOImmTwoPartFirst(), getT2SOImmValRotateVal(), isSOImmTwoPartVal(), isT2SOImmTwoPartVal(), llvm::ARMInstPrinter::printModImmOperand(), llvm::rewriteARMFrameIndex(), and llvm::rewriteT2FrameIndex().
1.8.13