| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | RISCVISAInfo.h | 52 parseFeatures(unsigned XLen, const std::vector<std::string> &Features); 60 unsigned getXLen() const { return XLen; }; in getXLen() 77 RISCVISAInfo(unsigned XLen) in RISCVISAInfo() argument 78 : XLen(XLen), FLen(0), MinVLen(0), MaxELen(0), MaxELenFp(0) {} in RISCVISAInfo() 80 unsigned XLen; variable
|
| /llvm-project-15.0.7/clang/lib/Basic/Targets/ |
| H A D | RISCV.cpp | 219 unsigned XLen = 32; in initFeatureMap() local 223 XLen = 64; in initFeatureMap() 226 auto ParseResult = llvm::RISCVISAInfo::parseFeatures(XLen, FeaturesVec); in initFeatureMap() 268 unsigned XLen = getTriple().isArch64Bit() ? 64 : 32; in handleTargetFeatures() local 269 auto ParseResult = llvm::RISCVISAInfo::parseFeatures(XLen, Features); in handleTargetFeatures()
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | RISCVISAInfo.cpp | 448 RISCVISAInfo::parseFeatures(unsigned XLen, in parseFeatures() argument 450 assert(XLen == 32 || XLen == 64); in parseFeatures() 451 std::unique_ptr<RISCVISAInfo> ISAInfo(new RISCVISAInfo(XLen)); in parseFeatures() 497 unsigned XLen = HasRV64 ? 64 : 32; in parseArchString() local 498 std::unique_ptr<RISCVISAInfo> ISAInfo(new RISCVISAInfo(XLen)); in parseArchString() 699 bool IsRv32 = XLen == 32; in checkDependency() 931 Arch << "rv" << XLen; in toString() 972 if (XLen == 32) { in computeDefaultABI() 978 } else if (XLen == 64) { in computeDefaultABI()
|
| /llvm-project-15.0.7/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelDAGToDAG.cpp | 634 unsigned XLen = Subtarget->getXLen(); in Select() local 664 unsigned XLen = Subtarget->getXLen(); in Select() local 757 unsigned XLen = Subtarget->getXLen(); in Select() local 773 C1 &= maskTrailingOnes<uint64_t>(XLen - C2); in Select() 837 if (C2 + Leading < XLen && in Select() 966 unsigned XLen = Subtarget->getXLen(); in Select() local 972 unsigned ConstantShift = XLen - LeadingZeros; in Select() 978 if (XLen == 32) in Select() 2039 unsigned XLen = Subtarget->getXLen(); in selectSHXADDOp() local 2043 Mask &= maskTrailingOnes<uint64_t>(XLen - C2); in selectSHXADDOp() [all …]
|
| H A D | RISCVSubtarget.h | 101 unsigned XLen = 32; variable 198 unsigned getXLen() const { return XLen; } in getXLen()
|
| H A D | RISCVSubtarget.cpp | 82 XLen = 64; in initializeSubtargetDependencies()
|
| H A D | RISCVISelLowering.cpp | 6911 if (Size > XLen) { in ReplaceNodeResults() 9713 if (EltBits <= XLen) in ComputeNumSignBitsForTargetNode() 9714 return XLen - EltBits + 1; in ComputeNumSignBitsForTargetNode() 10351 assert(XLen == 32 || XLen == 64); in CC_RISCV() 12084 if (XLen == 32) { in getIntrinsicForMaskedAtomicRMWBinOp() 12107 if (XLen == 64) { in getIntrinsicForMaskedAtomicRMWBinOp() 12144 if (XLen == 64) { in emitMaskedAtomicRMWIntrinsic() 12163 Builder.CreateSub(Builder.getIntN(XLen, XLen - ValWidth), ShiftAmt); in emitMaskedAtomicRMWIntrinsic() 12171 if (XLen == 64) in emitMaskedAtomicRMWIntrinsic() 12191 if (XLen == 64) { in emitMaskedAtomicCmpXchgIntrinsic() [all …]
|
| H A D | RISCVInstrInfo.td | 407 // Return an immediate subtracted from XLen. 409 uint64_t XLen = Subtarget->getXLen(); 410 return CurDAG->getTargetConstant(XLen - N->getZExtValue(), SDLoc(N), 454 uint64_t XLen = Subtarget->getXLen(); 456 return CurDAG->getTargetConstant(XLen - TrailingOnes, SDLoc(N),
|
| H A D | RISCVInstrInfo.cpp | 1009 unsigned XLen = STI.getXLen(); in isBranchOffsetInRange() local 1027 return isIntN(32, SignExtend64(BrOffset + 0x800, XLen)); in isBranchOffsetInRange()
|
| H A D | RISCVInstrInfoZb.td | 1000 // XLen and swap the operands.
|
| /llvm-project-15.0.7/llvm/lib/Target/RISCV/MCTargetDesc/ |
| H A D | RISCVBaseInfo.cpp | 108 unsigned XLen = IsRV64 ? 64 : 32; in parseFeatureBits() local 116 return llvm::RISCVISAInfo::parseFeatures(XLen, FeatureVector); in parseFeatureBits()
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/PBQP/ |
| H A D | ReductionRules.h | 104 unsigned XLen = XCosts.getLength(), in applyR2() local 113 for (unsigned k = 1; k < XLen; ++k) { in applyR2()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | IntrinsicsRISCV.td | 158 // We use anyint here but we only support XLen. 426 // second operand is XLen. 436 // Second operand is XLen. 468 // second source operand must match the destination type or be an XLen scalar. 510 // second source operand must match the destination type or be an XLen scalar. 631 // The second source operand matches the destination type or is an XLen scalar. 642 // The second source operand matches the destination type or is an XLen scalar. 654 // The second source operand matches the destination type or is an XLen scalar. 665 // The second source operand matches the destination type or is an XLen scalar. 1063 // must be a vector or an XLen scalar. [all …]
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | TargetInfo.cpp | 10848 unsigned XLen; member in __anon8ad051811e11::RISCVABIInfo 10863 : DefaultABIInfo(CGT), XLen(XLen), FLen(FLen) {} in RISCVABIInfo() 10943 if (IsInt && Size > XLen) in detectFPCCEligibleStructHelper() 11027 if (getContext().getTypeSize(QTy) > XLen && BitWidth <= XLen) in detectFPCCEligibleStructHelper() 11200 else if (Size > XLen && Size <= 2 * XLen) in classifyArgumentType() 11235 if (Size <= 2 * XLen) { in classifyArgumentType() 11240 if (Size <= XLen) { in classifyArgumentType() 11387 static const unsigned XLen = 32; member in __anon8ad051812211::CSKYABIInfo 11494 if (EIT->getNumBits() < XLen) in classifyArgumentType() 11507 if (Size <= XLen) { in classifyArgumentType() [all …]
|