|
LLVM 23.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::SmallVectorTemplateCommon< T, typename >::back(), llvm::SelectionDAGISel::CurDAG, DL, llvm::RISCVVType::MASK_AGNOSTIC, llvm::SmallVectorTemplateBase< T, bool >::push_back(), and selectVLOp().
Referenced by Select(), selectVLSEG(), selectVLSEGFF(), selectVLXSEG(), selectVSSEG(), and selectVSXSEG().
Definition at line 3441 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 179 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 128 of file RISCVISelDAGToDAG.h.
References hasAllNBitUsers().
Referenced by Select().
Definition at line 129 of file RISCVISelDAGToDAG.h.
References hasAllNBitUsers().
Referenced by Select().
| bool RISCVDAGToDAGISel::hasAllNBitUsers | ( | SDNode * | Node, |
| unsigned | Bits, | ||
| const unsigned | Depth = 0 ) const |
Definition at line 4363 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 130 of file RISCVISelDAGToDAG.h.
References hasAllNBitUsers().
Referenced by Select().
Definition at line 4212 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 >::Ops, addVectorLoadStoreOperands(), llvm::ISD::AND, llvm::SmallVectorImpl< T >::append(), assert(), llvm::sampleprof::Base, llvm::bit_width(), llvm::ISD::BITCAST, llvm::APFloat::bitcastToAPInt(), buildGPRPair(), llvm::CallingConv::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(), llvm::MVT::getVectorNumElements(), hasAllBUsers(), hasAllHUsers(), hasAllWUsers(), llvm::SDValue::hasOneUse(), llvm::Hi, 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::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, llvm::ISD::OR, P, llvm::ISD::POST_INC, PreferredLandingPadLabel, llvm::ISD::PREFETCH, llvm::SmallVectorTemplateBase< T, bool >::push_back(), 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::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 3317 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 3469 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 restricted to uimm9.
Definition at line 3574 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 3601 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 3823 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 59 of file RISCVISelDAGToDAG.h.
References llvm::sampleprof::Base, and SelectAddrRegRegScale().
| bool RISCVDAGToDAGISel::SelectAddrRegRegScale | ( | SDValue | Addr, |
| unsigned | MaxShiftAmount, | ||
| SDValue & | Base, | ||
| SDValue & | Index, | ||
| SDValue & | Scale ) |
Definition at line 3721 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::isa(), llvm::isInt(), isWorthFoldingIntoRegRegScale(), N, SDValue(), and llvm::ISD::SHL.
Referenced by SelectAddrRegRegScale(), and SelectAddrRegZextRegScale().
|
inline |
Definition at line 69 of file RISCVISelDAGToDAG.h.
References llvm::sampleprof::Base, and SelectAddrRegZextRegScale().
| bool RISCVDAGToDAGISel::SelectAddrRegZextRegScale | ( | SDValue | Addr, |
| unsigned | MaxShiftAmount, | ||
| unsigned | Bits, | ||
| SDValue & | Base, | ||
| SDValue & | Index, | ||
| SDValue & | Scale ) |
Definition at line 3804 of file RISCVISelDAGToDAG.cpp.
References llvm::ISD::AND, llvm::sampleprof::Base, llvm::CallingConv::C, llvm::dyn_cast(), llvm::maskTrailingOnes(), and SelectAddrRegRegScale().
Referenced by 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 3289 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 4283 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 4687 of file RISCVISelDAGToDAG.cpp.
References N, selectVSplat(), llvm::ISD::SIGN_EXTEND, and llvm::ISD::ZERO_EXTEND.
Definition at line 4255 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 152 of file RISCVISelDAGToDAG.h.
References N, and selectRVVSimm5().
Definition at line 4749 of file RISCVISelDAGToDAG.cpp.
References llvm::CallingConv::C, llvm::SelectionDAGISel::CurDAG, llvm::dyn_cast(), llvm::isInt(), N, and llvm::SignExtend64().
Referenced by selectRVVSimm5().
Definition at line 4713 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 3913 of file RISCVISelDAGToDAG.cpp.
References assert(), llvm::CallingConv::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 98 of file RISCVISelDAGToDAG.h.
References N, selectSETCC(), and llvm::ISD::SETEQ.
Definition at line 95 of file RISCVISelDAGToDAG.h.
References N, selectSETCC(), and llvm::ISD::SETNE.
|
inline |
Definition at line 103 of file RISCVISelDAGToDAG.h.
References N, and selectSExtBits().
Definition at line 3998 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(), and llvm::SelectionDAGISel::ReplaceNode().
Referenced by Select().
|
inline |
Definition at line 90 of file RISCVISelDAGToDAG.h.
References N, selectShiftMask(), and Size.
Definition at line 3836 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(), N, SDValue(), llvm::ISD::SUB, llvm::KnownBits::Zero, and llvm::ISD::ZERO_EXTEND.
Referenced by selectShiftMask(), and selectShiftMaskXLen().
Definition at line 87 of file RISCVISelDAGToDAG.h.
References N, and selectShiftMask().
|
inline |
Definition at line 117 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 4178 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 112 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 4048 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 4544 of file RISCVISelDAGToDAG.cpp.
References llvm::CallingConv::C, llvm::SelectionDAGISel::CurDAG, llvm::dyn_cast(), llvm::isInt(), N, and llvm::Offset.
Definition at line 4565 of file RISCVISelDAGToDAG.cpp.
References llvm::CallingConv::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(), P, llvm::SmallVectorTemplateBase< T, bool >::push_back(), 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(), P, llvm::SmallVectorTemplateBase< T, bool >::push_back(), 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::Log2_32(), P, llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::SelectionDAGISel::ReplaceUses(), llvm::reportFatalUsageError(), llvm::RISCV::RVVBitsPerBlock, and SDValue().
Referenced by Select().
Definition at line 4785 of file RISCVISelDAGToDAG.cpp.
References assert(), llvm::SDNode::getOpcode(), llvm::SDNode::getOperand(), and N.
Definition at line 4766 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(), llvm::CallingConv::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 4604 of file RISCVISelDAGToDAG.cpp.
References findVSplat(), N, and llvm::Splat.
Referenced by selectLow8BitsVSplat().
Definition at line 4682 of file RISCVISelDAGToDAG.cpp.
References findVSplat(), N, selectNegImm(), and llvm::Splat.
Definition at line 4648 of file RISCVISelDAGToDAG.cpp.
References llvm::SelectionDAGISel::CurDAG, llvm::isInt(), N, and selectVSplatImmHelper().
Definition at line 4653 of file RISCVISelDAGToDAG.cpp.
References llvm::SelectionDAGISel::CurDAG, N, and selectVSplatImmHelper().
Definition at line 4660 of file RISCVISelDAGToDAG.cpp.
References llvm::SelectionDAGISel::CurDAG, N, and selectVSplatImmHelper().
Definition at line 4667 of file RISCVISelDAGToDAG.cpp.
References llvm::SelectionDAGISel::CurDAG, N, and selectVSplatImmHelper().
Definition at line 4675 of file RISCVISelDAGToDAG.cpp.
References llvm::SelectionDAGISel::CurDAG, llvm::isUIntN(), N, and selectVSplatImmHelper().
Referenced by selectVSplatUimmBits().
|
inline |
Definition at line 139 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(), P, llvm::SmallVectorTemplateBase< T, bool >::push_back(), and llvm::SelectionDAGISel::ReplaceNode().
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(), P, llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::SelectionDAGISel::ReplaceNode(), llvm::reportFatalUsageError(), and llvm::RISCV::RVVBitsPerBlock.
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 107 of file RISCVISelDAGToDAG.h.
References N, and selectZExtBits().
Definition at line 4027 of file RISCVISelDAGToDAG.cpp.
References llvm::ISD::AND, llvm::CallingConv::C, llvm::SelectionDAGISel::CurDAG, llvm::dyn_cast(), llvm::APInt::getBitsSetFrom(), llvm::MVT::getSizeInBits(), llvm::maskTrailingOnes(), and N.
Referenced by selectZExtBits().
Definition at line 4232 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(), llvm::CallingConv::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().