|
LLVM 24.0.0git
|
#include "Target/RISCV/RISCVISelDAGToDAG.h"
Static Public Member Functions | |
| static RISCVCC::CondCode | getRISCVCCForIntCC (ISD::CondCode CC) |
| Static Public Member Functions inherited from llvm::SelectionDAGISel | |
| static bool | IsLegalToFold (SDValue N, SDNode *U, SDNode *Root, CodeGenOptLevel OptLevel, bool IgnoreChains=false) |
| IsLegalToFold - Returns true if the specific operand node N of U can be folded during instruction selection that starts at Root. | |
| static void | InvalidateNodeId (SDNode *N) |
| static int | getUninvalidatedNodeId (SDNode *N) |
| static void | EnforceNodeIdInvariant (SDNode *N) |
| static int | getNumFixedFromVariadicInfo (unsigned Flags) |
| getNumFixedFromVariadicInfo - Transform an EmitNode flags word into the number of fixed arity values that should be skipped when copying from the root. | |
Definition at line 24 of file RISCVISelDAGToDAG.h.
|
delete |
|
inlineexplicit |
Definition at line 30 of file RISCVISelDAGToDAG.h.
References llvm::SelectionDAGISel::OptLevel, and llvm::SelectionDAGISel::SelectionDAGISel().
| void RISCVDAGToDAGISel::addVectorLoadStoreOperands | ( | SDNode * | Node, |
| unsigned | SEWImm, | ||
| const SDLoc & | DL, | ||
| unsigned | CurOp, | ||
| bool | IsMasked, | ||
| bool | IsStridedOrIndexed, | ||
| SmallVectorImpl< SDValue > & | Operands, | ||
| bool | IsLoad = false, | ||
| MVT * | IndexVT = nullptr ) |
Definition at line 247 of file RISCVISelDAGToDAG.cpp.
References llvm::SelectionDAGISel::CurDAG, DL, llvm::RISCVVType::MASK_AGNOSTIC, Operands, and selectVLOp().
Referenced by Select(), selectVLSEG(), selectVLSEGFF(), selectVLXSEG(), selectVSSEG(), and selectVSXSEG().
Definition at line 3460 of file RISCVISelDAGToDAG.cpp.
References assert(), llvm::cast(), llvm::SelectionDAGISel::CurDAG, llvm::SDNode::getOpcode(), llvm::User::getOperand(), llvm::isInt(), isRegImmLoadOrStore(), SDValue(), llvm::SDNode::users(), and llvm::Value::users().
Referenced by SelectAddrRegImm().
|
inlinestatic |
Definition at line 205 of file RISCVISelDAGToDAG.h.
References llvm::RISCVCC::COND_EQ, llvm::RISCVCC::COND_GE, llvm::RISCVCC::COND_GEU, llvm::RISCVCC::COND_LT, llvm::RISCVCC::COND_LTU, llvm::RISCVCC::COND_NE, llvm_unreachable, llvm::ISD::SETEQ, llvm::ISD::SETGE, llvm::ISD::SETLT, llvm::ISD::SETNE, llvm::ISD::SETUGE, and llvm::ISD::SETULT.
Definition at line 154 of file RISCVISelDAGToDAG.h.
References hasAllNBitUsers().
Referenced by Select().
Definition at line 155 of file RISCVISelDAGToDAG.h.
References hasAllNBitUsers().
Referenced by Select().
| bool RISCVDAGToDAGISel::hasAllNBitUsers | ( | SDNode * | Node, |
| unsigned | Bits, | ||
| const unsigned | Depth = 0 ) const |
Definition at line 4458 of file RISCVISelDAGToDAG.cpp.
References llvm::ISD::ADD, llvm::ISD::AND, assert(), llvm::bit_width(), llvm::cast(), llvm::Depth, llvm::User::getOperand(), llvm::Use::getOperandNo(), llvm::Use::getUser(), hasAllNBitUsers(), llvm::isa(), llvm::Log2_32(), llvm::SelectionDAG::MaxRecursionDepth, llvm::ISD::MUL, llvm::ISD::OR, llvm::ISD::SHL, llvm::ISD::SIGN_EXTEND_INREG, llvm::ISD::SRL, llvm::ISD::SUB, llvm::SelectionDAGISel::TII, vectorPseudoHasAllNBitUsers(), and llvm::ISD::XOR.
Referenced by hasAllBUsers(), hasAllHUsers(), hasAllNBitUsers(), and hasAllWUsers().
Definition at line 156 of file RISCVISelDAGToDAG.h.
References hasAllNBitUsers().
Referenced by Select().
Definition at line 4307 of file RISCVISelDAGToDAG.cpp.
References assert(), llvm::SelectionDAGISel::CurDAG, N, and llvm::ISD::OR.
Referenced by selectZExtImm32().
|
overridevirtual |
PostprocessISelDAG() - This hook allows the target to hack on the graph right after selection.
Reimplemented from llvm::SelectionDAGISel.
Definition at line 150 of file RISCVISelDAGToDAG.cpp.
References llvm::cast(), llvm::SelectionDAGISel::CurDAG, llvm::HandleSDNode::getValue(), and N.
|
overridevirtual |
PreprocessISelDAG - This hook allows targets to hack on the graph before instruction selection starts.
Reimplemented from llvm::SelectionDAGISel.
Definition at line 44 of file RISCVISelDAGToDAG.cpp.
References AbstractManglingParser< Derived, Alloc >::Ops, llvm::ISD::ANY_EXTEND, assert(), llvm::cast(), llvm::MVT::changeVectorElementType(), llvm::SelectionDAGISel::CurDAG, llvm::dbgs(), DL, llvm::ISD::FP_EXTEND, llvm::TypeSize::getFixed(), llvm::MachinePointerInfo::getFixedStack(), llvm::SDValue::getNode(), llvm::MVT::getVectorElementType(), llvm::MachinePointerInfo::getWithOffset(), llvm::Hi, llvm::ISD::INTRINSIC_W_CHAIN, llvm::MVT::isInteger(), llvm::MVT::isScalableVector(), llvm::MVT::isVector(), LLVM_DEBUG, llvm::Lo, llvm::SelectionDAGISel::MF, llvm::MachineMemOperand::MOLoad, N, Opc, SDValue(), llvm::ISD::SPLAT_VECTOR, and llvm::ISD::TokenFactor.
|
inlineoverridevirtual |
Reimplemented from llvm::SelectionDAGISel.
Definition at line 34 of file RISCVISelDAGToDAG.h.
References llvm::SelectionDAGISel::MF, and llvm::SelectionDAGISel::runOnMachineFunction().
|
overridevirtual |
Main hook for targets to transform nodes into machine nodes.
Implements llvm::SelectionDAGISel.
Definition at line 1100 of file RISCVISelDAGToDAG.cpp.
References AbstractManglingParser< Derived, Alloc >::NumOps, AbstractManglingParser< Derived, Alloc >::Ops, addVectorLoadStoreOperands(), llvm::ISD::AND, assert(), llvm::sampleprof::Base, llvm::bit_width(), llvm::ISD::BITCAST, llvm::APFloat::bitcastToAPInt(), buildGPRPair(), C(), CASE_VMNAND_VMSET_OPCODES, CASE_VMSLT_OPCODES, CASE_VMXOR_VMANDN_VMOR_OPCODES, llvm::cast(), llvm::ISD::Constant, llvm::ISD::ConstantFP, llvm::countr_one(), llvm::countr_zero(), llvm::SelectionDAGISel::CurDAG, llvm::dbgs(), llvm::RISCVTargetLowering::decomposeSubvectorInsertExtractToSubRegs(), DL, Node::dump(), llvm::RISCVFPRndMode::DYN, llvm::dyn_cast(), llvm::ISD::EXTRACT_SUBVECTOR, extractGPRPair(), llvm::SDNode::getAsZExtVal(), llvm::APInt::getBitWidth(), llvm::SDValue::getConstantOperandVal(), llvm::RISCVTargetLowering::getLMUL(), getNode(), llvm::SDValue::getNode(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::RISCVTargetLowering::getRegClassIDForVecVT(), llvm::TypeSize::getScalable(), llvm::MVT::getScalarSizeInBits(), getSegInstNF(), llvm::APInt::getSExtValue(), llvm::APInt::getSignedMinValue(), llvm::SDNode::getSimpleValueType(), llvm::SDValue::getSimpleValueType(), llvm::MVT::getSizeInBits(), llvm::EVT::getStoreSize(), llvm::MVT::getStoreSize(), getTileReg(), llvm::SDValue::getValueType(), llvm::MVT::getVectorElementCount(), llvm::MVT::getVectorElementType(), hasAllBUsers(), hasAllHUsers(), hasAllWUsers(), llvm::SDValue::hasOneUse(), llvm::Hi, I, llvm::ISD::INSERT_SUBVECTOR, llvm::ISD::INTRINSIC_VOID, llvm::ISD::INTRINSIC_W_CHAIN, llvm::ISD::INTRINSIC_WO_CHAIN, llvm::isa(), llvm::APInt::isAllOnes(), isApplicableToPLIOrPLUI(), llvm::MVT::isFixedLengthVector(), llvm::isInt(), llvm::SelectionDAGISel::IsLegalToFold(), llvm::isMask_64(), llvm::APFloat::isNegZero(), llvm::isNullConstant(), llvm::isOneConstant(), llvm::APFloat::isPosZero(), llvm::isPowerOf2_64(), llvm::SelectionDAGISel::IsProfitableToFold(), llvm::MVT::isScalableVector(), llvm::isShiftedInt(), llvm::isShiftedMask_64(), llvm::APInt::isSplat(), llvm::isUInt(), llvm::APFloat::isZero(), LLVM_DEBUG, llvm_unreachable, llvm::RISCVVType::LMUL_F2, llvm::RISCVVType::LMUL_F4, llvm::RISCVVType::LMUL_F8, llvm::Lo, llvm::ISD::LOAD, llvm::Load, llvm::Log2_32(), llvm::M1(), llvm::RISCVVType::MASK_AGNOSTIC, llvm::maskTrailingOnes(), llvm::maskTrailingZeros(), llvm::MachineMemOperand::MONonTemporal, llvm::MONontemporalBit0, llvm::MONontemporalBit1, llvm::ISD::MUL, N, llvm::Offset, Opc, Operands, llvm::ISD::OR, P, llvm::ISD::POST_INC, PreferredLandingPadLabel, llvm::ISD::PREFETCH, llvm::SelectionDAGISel::ReplaceNode(), llvm::SelectionDAGISel::ReplaceUses(), llvm::report_fatal_error(), llvm::reportFatalUsageError(), llvm::RISCVFPRndMode::RNE, llvm::RISCV::RVVBitsPerBlock, llvm::ISD::SCALAR_TO_VECTOR, SDValue(), SelectAddrRegImm(), selectImm(), selectSF_VC_X_SE(), selectVLOp(), selectVLSEG(), selectVLSEGFF(), selectVLXSEG(), selectVSETVLI(), selectVSSEG(), selectVSXSEG(), selectXSfmmVSET(), llvm::MachineMemOperand::setFlags(), llvm::ISD::SEXTLOAD, llvm::ISD::SHL, llvm::ISD::SIGN_EXTEND_INREG, llvm::SignExtend64(), llvm::MVT::SimpleTy, llvm::ISD::SMUL_LOHI, llvm::Splat, llvm::ISD::SPLAT_VECTOR, llvm::ISD::SRA, llvm::ISD::SRL, llvm::Store, llvm::RISCVVType::TAIL_AGNOSTIC, llvm::SelectionDAGISel::TLI, llvm::SelectionDAGISel::TM, TRI, llvm::APInt::trunc(), tryIndexedLoad(), tryShrinkShlLogicImm(), trySignedBitfieldExtract(), trySignedBitfieldInsertInSign(), tryUnsignedBitfieldExtract(), tryUnsignedBitfieldInsertInZero(), tryWideningMulAcc(), llvm::ISD::UMUL_LOHI, X, and llvm::ISD::XOR.
Definition at line 3336 of file RISCVISelDAGToDAG.cpp.
References llvm::sampleprof::Base, llvm::SelectionDAGISel::CurDAG, llvm::dyn_cast(), and llvm::Offset.
Referenced by SelectAddrRegImm(), SelectAddrRegImm9(), and SelectAddrRegImmLsb00000().
Definition at line 3488 of file RISCVISelDAGToDAG.cpp.
References llvm::ISD::ADD, areOffsetsWithinAlignment(), assert(), llvm::sampleprof::Base, llvm::cast(), llvm::commonAlignment(), llvm::SelectionDAGISel::CurDAG, DL, llvm::dyn_cast(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SDValue::getSimpleValueType(), llvm::SDValue::getValueType(), llvm::isa(), llvm::isInt(), isWorthFoldingAdd(), llvm::Offset, SDValue(), SelectAddrFrameIndex(), and selectConstantAddr().
Referenced by Select(), and SelectInlineAsmMemoryOperand().
Similar to SelectAddrRegImm, except that the offset is a 26-bit signed immediate.
This is used by the Qualcomm Xqcilo large offset load/store instructions (qc.e.lw/qc.e.sw), whose offset field is 26 bits wide. Only matches offsets that do not fit a 12-bit signed immediate, so that offsets in the simm12 range keep using the shorter (and possibly compressible) standard load/store instructions.
Definition at line 3598 of file RISCVISelDAGToDAG.cpp.
References llvm::ISD::ADD, llvm::sampleprof::Base, llvm::cast(), llvm::SelectionDAGISel::CurDAG, DL, llvm::dyn_cast(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SDValue::getSimpleValueType(), llvm::isa(), llvm::isInt(), llvm::isShiftedUInt(), isWorthFoldingAdd(), llvm::maxIntN(), llvm::minIntN(), llvm::Offset, and SDValue().
Similar to SelectAddrRegImm, except that the offset is restricted to uimm9.
Definition at line 3660 of file RISCVISelDAGToDAG.cpp.
References llvm::sampleprof::Base, llvm::cast(), llvm::SelectionDAGISel::CurDAG, DL, llvm::dyn_cast(), llvm::SDValue::getOperand(), llvm::SDValue::getSimpleValueType(), llvm::isUInt(), llvm::Offset, and SelectAddrFrameIndex().
Similar to SelectAddrRegImm, except that the least significant 5 bits of Offset should be all zeros.
Definition at line 3687 of file RISCVISelDAGToDAG.cpp.
References llvm::ISD::ADD, assert(), llvm::sampleprof::Base, llvm::cast(), llvm::SelectionDAGISel::CurDAG, DL, llvm::dyn_cast(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SDValue::getSimpleValueType(), llvm::isa(), llvm::isInt(), llvm::Offset, SDValue(), SelectAddrFrameIndex(), and selectConstantAddr().
Definition at line 3918 of file RISCVISelDAGToDAG.cpp.
References llvm::ISD::ADD, llvm::sampleprof::Base, llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::isa(), and llvm::Offset.
|
inline |
Definition at line 60 of file RISCVISelDAGToDAG.h.
References assert(), llvm::sampleprof::Base, llvm::SDNode::getAsZExtVal(), and SelectAddrRegRegScale().
| bool RISCVDAGToDAGISel::SelectAddrRegRegScale | ( | SDValue | Addr, |
| ArrayRef< unsigned > | Amounts, | ||
| SDValue & | Base, | ||
| SDValue & | Index, | ||
| SDValue & | Scale ) |
Definition at line 3812 of file RISCVISelDAGToDAG.cpp.
References llvm::ISD::ADD, llvm::sampleprof::Base, llvm::SelectionDAGISel::CurDAG, llvm::dyn_cast(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SDValue::getSimpleValueType(), llvm::is_contained(), llvm::isa(), llvm::isInt(), isWorthFoldingIntoRegRegScale(), N, SDValue(), and llvm::ISD::SHL.
Referenced by SelectAddrRegRegFixedScale(), SelectAddrRegRegScale(), and SelectAddrRegZextRegScale().
|
inline |
Definition at line 70 of file RISCVISelDAGToDAG.h.
References llvm::sampleprof::Base, and SelectAddrRegRegScale().
|
inline |
Definition at line 82 of file RISCVISelDAGToDAG.h.
References assert(), llvm::sampleprof::Base, llvm::SDNode::getAsZExtVal(), and SelectAddrRegZextRegScale().
| bool RISCVDAGToDAGISel::SelectAddrRegZextRegScale | ( | SDValue | Addr, |
| ArrayRef< unsigned > | Amounts, | ||
| unsigned | Bits, | ||
| SDValue & | Base, | ||
| SDValue & | Index, | ||
| SDValue & | Scale ) |
Definition at line 3899 of file RISCVISelDAGToDAG.cpp.
References llvm::ISD::AND, llvm::sampleprof::Base, C(), llvm::dyn_cast(), llvm::maskTrailingOnes(), and SelectAddrRegRegScale().
Referenced by SelectAddrRegZextRegFixedScale(), and SelectAddrRegZextRegScale().
|
inline |
Definition at line 93 of file RISCVISelDAGToDAG.h.
References llvm::sampleprof::Base, and SelectAddrRegZextRegScale().
|
overridevirtual |
SelectInlineAsmMemoryOperand - Select the specified address as a target addressing mode, according to the specified constraint.
If this does not match or is not implemented, return true. The resultant operands (which will appear in the machine instruction) should be added to the OutOps vector.
Reimplemented from llvm::SelectionDAGISel.
Definition at line 3308 of file RISCVISelDAGToDAG.cpp.
References llvm::InlineAsm::A, assert(), llvm::SelectionDAGISel::CurDAG, llvm::InlineAsm::getMemConstraintName(), llvm::InlineAsm::m, llvm::InlineAsm::o, llvm::report_fatal_error(), and SelectAddrRegImm().
Definition at line 4378 of file RISCVISelDAGToDAG.cpp.
References llvm::all_of(), llvm::ISD::AND, llvm::cast(), llvm::SelectionDAGISel::CurDAG, llvm::isa(), llvm::isInt(), N, llvm::ISD::OR, selectImm(), and llvm::ISD::XOR.
Definition at line 4782 of file RISCVISelDAGToDAG.cpp.
References N, selectVSplat(), llvm::ISD::SIGN_EXTEND, and llvm::ISD::ZERO_EXTEND.
Definition at line 4350 of file RISCVISelDAGToDAG.cpp.
References llvm::ISD::ADD, llvm::all_of(), llvm::cast(), INT64_MIN, llvm::isa(), llvm::isInt(), and N.
Referenced by selectVSplatImm64Neg().
|
inline |
Definition at line 178 of file RISCVISelDAGToDAG.h.
References N, and selectRVVSimm5().
Definition at line 4844 of file RISCVISelDAGToDAG.cpp.
References C(), llvm::SelectionDAGISel::CurDAG, llvm::dyn_cast(), llvm::isInt(), N, and llvm::SignExtend64().
Referenced by selectRVVSimm5().
Definition at line 4808 of file RISCVISelDAGToDAG.cpp.
References assert(), llvm::ISD::BITCAST, llvm::APFloat::bitcastToAPInt(), llvm::SelectionDAGISel::CurDAG, DL, llvm::dyn_cast(), llvm::APInt::getSExtValue(), llvm::SDNode::getSimpleValueType(), llvm::ConstantFPSDNode::getValueAPF(), llvm::APFloat::isNegZero(), llvm::APFloat::isPosZero(), N, and selectImm().
| bool RISCVDAGToDAGISel::selectSETCC | ( | SDValue | N, |
| ISD::CondCode | ExpectedCCVal, | ||
| SDValue & | Val ) |
RISC-V doesn't have general instructions for integer setne/seteq, but we can check for equality with 0.
This function emits instructions that convert the seteq/setne into something that can be compared with 0. ExpectedCCVal indicates the condition code to attempt to match (e.g. ISD::SETNE).
Definition at line 4008 of file RISCVISelDAGToDAG.cpp.
References assert(), C(), llvm::cast(), llvm::SelectionDAGISel::CurDAG, DL, llvm::dyn_cast(), llvm::isInt(), llvm::ISD::isIntEqualitySetCC(), llvm::isNullConstant(), llvm::isPowerOf2_64(), llvm::Log2_64(), N, Opc, SDValue(), llvm::ISD::SETCC, and llvm::ISD::SIGN_EXTEND_INREG.
Referenced by selectSETEQ(), and selectSETNE().
Definition at line 124 of file RISCVISelDAGToDAG.h.
References N, selectSETCC(), and llvm::ISD::SETEQ.
Definition at line 121 of file RISCVISelDAGToDAG.h.
References N, selectSETCC(), and llvm::ISD::SETNE.
|
inline |
Definition at line 129 of file RISCVISelDAGToDAG.h.
References N, and selectSExtBits().
Definition at line 4093 of file RISCVISelDAGToDAG.cpp.
References llvm::cast(), llvm::SelectionDAGISel::CurDAG, llvm::SDValue::getConstantOperandVal(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::MVT::getSizeInBits(), llvm::isa(), N, llvm::ISD::SHL, llvm::ISD::SIGN_EXTEND_INREG, and llvm::ISD::SRA.
Referenced by selectSExtBits().
| void RISCVDAGToDAGISel::selectSF_VC_X_SE | ( | SDNode * | Node | ) |
Definition at line 986 of file RISCVISelDAGToDAG.cpp.
References assert(), llvm::cast(), llvm::SelectionDAGISel::CurDAG, DL, llvm::ISD::INTRINSIC_VOID, llvm::Log2_32(), Operands, and llvm::SelectionDAGISel::ReplaceNode().
Referenced by Select().
|
inline |
Definition at line 116 of file RISCVISelDAGToDAG.h.
References N, selectShiftMask(), and Size.
Definition at line 3931 of file RISCVISelDAGToDAG.cpp.
References llvm::ISD::ADD, llvm::ISD::AND, assert(), llvm::SelectionDAGISel::CurDAG, DL, llvm::APInt::getBitWidth(), llvm::SDValue::getConstantOperandAPInt(), llvm::SDValue::getConstantOperandVal(), llvm::SDNode::getOpcode(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SDValue::getValueType(), llvm::isa(), llvm::isPowerOf2_32(), llvm::APInt::isSubsetOf(), llvm::Known, N, SDValue(), llvm::ISD::SUB, and llvm::ISD::ZERO_EXTEND.
Referenced by selectShiftMask(), and selectShiftMaskXLen().
Definition at line 113 of file RISCVISelDAGToDAG.h.
References N, and selectShiftMask().
|
inline |
Definition at line 143 of file RISCVISelDAGToDAG.h.
References N, and selectSHXADD_UWOp().
Look for various patterns that can be done with a SHL that can be folded into a SHXADD_UW.
ShAmt contains 1, 2, or 3 and is set based on which SHXADD_UW we are trying to match.
Definition at line 4273 of file RISCVISelDAGToDAG.cpp.
References llvm::ISD::AND, llvm::countl_zero(), llvm::countr_zero(), llvm::SelectionDAGISel::CurDAG, DL, llvm::SDValue::getConstantOperandVal(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SDValue::hasOneUse(), llvm::isa(), llvm::isShiftedMask_64(), llvm::maskTrailingZeros(), N, SDValue(), and llvm::ISD::SHL.
Referenced by selectSHXADD_UWOp().
|
inline |
Definition at line 138 of file RISCVISelDAGToDAG.h.
References N, and selectSHXADDOp().
Look for various patterns that can be done with a SHL that can be folded into a SHXADD.
ShAmt contains 1, 2, or 3 and is set based on which SHXADD we are trying to match.
Definition at line 4143 of file RISCVISelDAGToDAG.cpp.
References llvm::ISD::AND, llvm::bit_width(), llvm::countr_zero(), llvm::SelectionDAGISel::CurDAG, DL, llvm::SDValue::getConstantOperandVal(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SDValue::hasOneUse(), llvm::isa(), llvm::isShiftedMask_64(), llvm::maskTrailingOnes(), llvm::maskTrailingZeros(), N, SDValue(), llvm::ISD::SHL, llvm::ISD::SRA, and llvm::ISD::SRL.
Referenced by selectSHXADDOp().
Definition at line 4639 of file RISCVISelDAGToDAG.cpp.
References C(), llvm::SelectionDAGISel::CurDAG, llvm::dyn_cast(), llvm::isInt(), N, and llvm::Offset.
Definition at line 4660 of file RISCVISelDAGToDAG.cpp.
References C(), llvm::cast(), llvm::SelectionDAGISel::CurDAG, llvm::dyn_cast(), getReg(), llvm::isa(), llvm::isUInt(), N, and llvm::RISCV::VLMaxSentinel.
Referenced by addVectorLoadStoreOperands(), and Select().
Definition at line 287 of file RISCVISelDAGToDAG.cpp.
References addVectorLoadStoreOperands(), llvm::cast(), llvm::SelectionDAGISel::CurDAG, DL, llvm::RISCVTargetLowering::getLMUL(), llvm::Load, Operands, P, llvm::SelectionDAGISel::ReplaceUses(), and SDValue().
Referenced by Select().
Definition at line 315 of file RISCVISelDAGToDAG.cpp.
References addVectorLoadStoreOperands(), llvm::cast(), llvm::SelectionDAGISel::CurDAG, DL, llvm::RISCVTargetLowering::getLMUL(), llvm::Load, Operands, P, llvm::SelectionDAGISel::ReplaceUses(), and SDValue().
Referenced by Select().
Definition at line 346 of file RISCVISelDAGToDAG.cpp.
References addVectorLoadStoreOperands(), assert(), llvm::cast(), llvm::SelectionDAGISel::CurDAG, llvm::RISCVVType::decodeVLMUL(), DL, llvm::RISCVTargetLowering::getLMUL(), llvm::MVT::getScalarSizeInBits(), llvm::MVT::getVectorMinNumElements(), llvm::Load, llvm::Log2_32(), Operands, P, llvm::SelectionDAGISel::ReplaceUses(), llvm::reportFatalUsageError(), llvm::RISCV::RVVBitsPerBlock, and SDValue().
Referenced by Select().
Definition at line 4880 of file RISCVISelDAGToDAG.cpp.
References assert(), llvm::SDNode::getOpcode(), llvm::SDNode::getOperand(), and N.
Definition at line 4861 of file RISCVISelDAGToDAG.cpp.
References N, and llvm::ISD::XOR.
| void RISCVDAGToDAGISel::selectVSETVLI | ( | SDNode * | Node | ) |
Definition at line 465 of file RISCVISelDAGToDAG.cpp.
References assert(), C(), llvm::SelectionDAGISel::CurDAG, llvm::RISCVVType::decodeVSEW(), DL, llvm::dyn_cast(), llvm::RISCVVType::encodeVTYPE(), llvm::RISCVVType::getSEWLMULRatio(), llvm::ISD::INTRINSIC_WO_CHAIN, llvm::isAllOnesConstant(), llvm::isUInt(), llvm::Offset, and llvm::SelectionDAGISel::ReplaceNode().
Referenced by Select().
Definition at line 4699 of file RISCVISelDAGToDAG.cpp.
References findVSplat(), N, and llvm::Splat.
Referenced by selectLow8BitsVSplat().
Definition at line 4777 of file RISCVISelDAGToDAG.cpp.
References findVSplat(), N, selectNegImm(), and llvm::Splat.
Definition at line 4743 of file RISCVISelDAGToDAG.cpp.
References llvm::SelectionDAGISel::CurDAG, llvm::isInt(), N, and selectVSplatImmHelper().
Definition at line 4748 of file RISCVISelDAGToDAG.cpp.
References llvm::SelectionDAGISel::CurDAG, N, and selectVSplatImmHelper().
Definition at line 4755 of file RISCVISelDAGToDAG.cpp.
References llvm::SelectionDAGISel::CurDAG, N, and selectVSplatImmHelper().
Definition at line 4762 of file RISCVISelDAGToDAG.cpp.
References llvm::SelectionDAGISel::CurDAG, N, and selectVSplatImmHelper().
Definition at line 4770 of file RISCVISelDAGToDAG.cpp.
References llvm::SelectionDAGISel::CurDAG, llvm::isUIntN(), N, and selectVSplatImmHelper().
Referenced by selectVSplatUimmBits().
|
inline |
Definition at line 165 of file RISCVISelDAGToDAG.h.
References N, and selectVSplatUimm().
Definition at line 394 of file RISCVISelDAGToDAG.cpp.
References addVectorLoadStoreOperands(), llvm::cast(), llvm::SelectionDAGISel::CurDAG, DL, llvm::RISCVTargetLowering::getLMUL(), Operands, P, llvm::SelectionDAGISel::ReplaceNode(), and llvm::Store.
Referenced by Select().
Definition at line 419 of file RISCVISelDAGToDAG.cpp.
References addVectorLoadStoreOperands(), assert(), llvm::cast(), llvm::SelectionDAGISel::CurDAG, llvm::RISCVVType::decodeVLMUL(), DL, llvm::RISCVTargetLowering::getLMUL(), llvm::MVT::getScalarSizeInBits(), llvm::MVT::getVectorMinNumElements(), llvm::Log2_32(), Operands, P, llvm::SelectionDAGISel::ReplaceNode(), llvm::reportFatalUsageError(), llvm::RISCV::RVVBitsPerBlock, and llvm::Store.
Referenced by Select().
| void RISCVDAGToDAGISel::selectXSfmmVSET | ( | SDNode * | Node | ) |
Definition at line 523 of file RISCVISelDAGToDAG.cpp.
References assert(), llvm::SelectionDAGISel::CurDAG, llvm::RISCVVType::decodeTWiden(), llvm::RISCVVType::decodeVSEW(), DL, llvm::RISCVVType::encodeXSfmmVType(), llvm::ISD::INTRINSIC_WO_CHAIN, llvm::Log2_32(), llvm::SelectionDAGISel::ReplaceNode(), and Widen().
Referenced by Select().
|
inline |
Definition at line 133 of file RISCVISelDAGToDAG.h.
References N, and selectZExtBits().
Definition at line 4122 of file RISCVISelDAGToDAG.cpp.
References llvm::ISD::AND, C(), llvm::SelectionDAGISel::CurDAG, llvm::dyn_cast(), llvm::APInt::getBitsSetFrom(), llvm::MVT::getSizeInBits(), llvm::maskTrailingOnes(), and N.
Referenced by selectZExtBits().
Definition at line 4327 of file RISCVISelDAGToDAG.cpp.
References llvm::ISD::ADD, llvm::cast(), llvm::isa(), N, llvm::ISD::OR, and orDisjoint().
Definition at line 823 of file RISCVISelDAGToDAG.cpp.
References AbstractManglingParser< Derived, Alloc >::Ops, assert(), C(), llvm::cast(), llvm::SelectionDAGISel::CurDAG, llvm::dyn_cast(), llvm::LSBaseSDNode::getAddressingMode(), llvm::LoadSDNode::getBasePtr(), llvm::MemSDNode::getChain(), llvm::LoadSDNode::getExtensionType(), llvm::MemSDNode::getMemoryVT(), llvm::LoadSDNode::getOffset(), llvm::SDNode::getValueType(), llvm::SDValue::getValueType(), llvm::isInt(), llvm::Offset, llvm::ISD::POST_INC, llvm::ISD::PRE_INC, llvm::SelectionDAGISel::ReplaceNode(), llvm::ISD::UNINDEXED, and llvm::ISD::ZEXTLOAD.
Referenced by Select().
Definition at line 561 of file RISCVISelDAGToDAG.cpp.
References llvm::ISD::AND, assert(), llvm::cast(), llvm::SelectionDAGISel::CurDAG, DL, llvm::dyn_cast(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::ConstantSDNode::getSExtValue(), llvm::ConstantSDNode::getZExtValue(), llvm::SDValue::hasOneUse(), llvm::isInt(), llvm_unreachable, llvm::maskTrailingOnes(), llvm::ISD::OR, llvm::SelectionDAGISel::ReplaceNode(), SDValue(), llvm::ISD::SHL, llvm::ISD::SIGN_EXTEND_INREG, and llvm::ISD::XOR.
Referenced by Select().
Definition at line 639 of file RISCVISelDAGToDAG.cpp.
References llvm::cast(), llvm::SelectionDAGISel::CurDAG, DL, llvm::dyn_cast(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::MVT::getSizeInBits(), llvm::SDValue::hasOneUse(), Opc, llvm::SelectionDAGISel::ReplaceNode(), llvm::ISD::SHL, and llvm::ISD::SIGN_EXTEND_INREG.
Referenced by Select().
Definition at line 722 of file RISCVISelDAGToDAG.cpp.
References llvm::SelectionDAGISel::CurDAG, DL, llvm::dyn_cast(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::MVT::getSizeInBits(), llvm::SDValue::hasOneUse(), Opc, llvm::SelectionDAGISel::ReplaceNode(), and llvm::ISD::SHL.
Referenced by Select().
| bool RISCVDAGToDAGISel::tryUnsignedBitfieldExtract | ( | SDNode * | Node, |
| const SDLoc & | DL, | ||
| MVT | VT, | ||
| SDValue | X, | ||
| unsigned | Msb, | ||
| unsigned | Lsb ) |
Definition at line 775 of file RISCVISelDAGToDAG.cpp.
References llvm::SelectionDAGISel::CurDAG, DL, Opc, llvm::SelectionDAGISel::ReplaceNode(), and X.
Referenced by Select().
| bool RISCVDAGToDAGISel::tryUnsignedBitfieldInsertInZero | ( | SDNode * | Node, |
| const SDLoc & | DL, | ||
| MVT | VT, | ||
| SDValue | X, | ||
| unsigned | Msb, | ||
| unsigned | Lsb ) |
Definition at line 803 of file RISCVISelDAGToDAG.cpp.
References llvm::SelectionDAGISel::CurDAG, DL, Opc, llvm::SelectionDAGISel::ReplaceNode(), and X.
Referenced by Select().
Definition at line 915 of file RISCVISelDAGToDAG.cpp.
References assert(), buildGPRPair(), llvm::SelectionDAGISel::CurDAG, DL, extractGPRPair(), llvm::SDValue::getNode(), llvm::SDNode::getOpcode(), llvm::SDNode::getOperand(), llvm::Hi, llvm_unreachable, llvm::Lo, llvm::M0(), llvm::M1(), Opc, llvm::SelectionDAGISel::ReplaceUses(), SDValue(), llvm::ISD::SMUL_LOHI, and llvm::ISD::UMUL_LOHI.
Referenced by Select().