| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
| H A D | RISCV.cpp | 23 unsigned XLen; member in __anon9927dfa40111::RISCVABIInfo 40 : DefaultABIInfo(CGT), XLen(XLen), FLen(FLen), NumArgGPRs(EABI ? 6 : 8), in RISCVABIInfo() 118 if (IsInt && Size > XLen) in detectFPCCEligibleStructHelper() 208 if (getContext().getTypeSize(QTy) > XLen && BitWidth <= XLen) in detectFPCCEligibleStructHelper() 414 if (!IsFixed && NeededAlign == 2 * XLen) in classifyArgumentType() 416 else if (Size > XLen && Size <= 2 * XLen) in classifyArgumentType() 436 if (EIT->getNumBits() < XLen) in classifyArgumentType() 454 if (Size <= 2 * XLen) { in classifyArgumentType() 459 if (Size <= XLen) { in classifyArgumentType() 462 } else if (Alignment == 2 * XLen) { in classifyArgumentType() [all …]
|
| H A D | CSKY.cpp | 23 static const unsigned XLen = 32; member in __anonc80979170111::CSKYABIInfo 62 CharUnits SlotSize = CharUnits::fromQuantity(XLen / 8); in EmitVAArg() 124 if (Size < XLen && Ty->isIntegralOrEnumerationType()) in classifyArgumentType() 128 if (EIT->getNumBits() < XLen) in classifyArgumentType() 140 if (!isReturnType || (isReturnType && Size <= 2 * XLen)) { in classifyArgumentType() 141 if (Size <= XLen) { in classifyArgumentType() 143 llvm::IntegerType::get(getVMContext(), XLen)); in classifyArgumentType() 146 llvm::IntegerType::get(getVMContext(), XLen), (Size + 31) / XLen)); in classifyArgumentType()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | RISCVISAInfo.h | 48 RISCVISAInfo(unsigned XLen, OrderedExtensionMap &Exts) in RISCVISAInfo() argument 49 : XLen(XLen), FLen(0), MinVLen(0), MaxELen(0), MaxELenFp(0), Exts(Exts) {} in RISCVISAInfo() 69 parseFeatures(unsigned XLen, const std::vector<std::string> &Features); 77 unsigned getXLen() const { return XLen; } in getXLen() 98 RISCVISAInfo(unsigned XLen) in RISCVISAInfo() argument 99 : XLen(XLen), FLen(0), MinVLen(0), MaxELen(0), MaxELenFp(0) {} in RISCVISAInfo() 101 unsigned XLen; variable
|
| /freebsd-14.2/contrib/llvm-project/llvm/utils/TableGen/ |
| H A D | RISCVTargetDefEmitter.cpp | 30 unsigned XLen = 32; in getMArch() local 38 XLen = 64; in getMArch() 41 ISAInfoTy ISAInfo = llvm::RISCVISAInfo::parseFeatures(XLen, FeatureVector); in getMArch()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/ |
| H A D | RISCVLegalizerInfo.cpp | 41 : STI(ST), XLen(STI.getXLen()), sXLen(LLT::scalar(XLen)) { in RISCVLegalizerInfo() 42 const LLT sDoubleXLen = LLT::scalar(2 * XLen); in RISCVLegalizerInfo() 43 const LLT p0 = LLT::pointer(0, XLen); in RISCVLegalizerInfo() 131 if (XLen == 32 && ST.hasStdExtD()) { in RISCVLegalizerInfo() 135 MergeUnmergeActions.widenScalarToNextPow2(LitTyIdx, XLen) in RISCVLegalizerInfo() 136 .widenScalarToNextPow2(BigTyIdx, XLen) in RISCVLegalizerInfo() 198 if (XLen == 64 || ST.hasStdExtD()) in RISCVLegalizerInfo() 201 .clampScalar(0, s32, (XLen == 64 || ST.hasStdExtD()) ? s64 : s32) in RISCVLegalizerInfo() 209 {p0, p0, sXLen, XLen}}); in RISCVLegalizerInfo() 213 if (XLen == 64) { in RISCVLegalizerInfo() [all …]
|
| H A D | RISCVLegalizerInfo.h | 26 const unsigned XLen; variable
|
| H A D | RISCVInstructionSelector.cpp | 241 const unsigned XLen = STI.getXLen(); in selectSHXADDOp() local 258 Mask &= maskTrailingOnes<uint64_t>(XLen - C2.getLimitedValue()); in selectSHXADDOp() 261 unsigned Leading = XLen - Mask.getActiveBits(); in selectSHXADDOp() 303 unsigned Leading = XLen - Mask.getActiveBits(); in selectSHXADDOp()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Support/ |
| H A D | RISCVISAInfo.cpp | 611 RISCVISAInfo::parseFeatures(unsigned XLen, in parseFeatures() argument 613 assert(XLen == 32 || XLen == 64); in parseFeatures() 651 unsigned XLen; in parseNormalizedArchString() local 653 XLen = 32; in parseNormalizedArchString() 655 XLen = 64; in parseNormalizedArchString() 723 unsigned XLen = HasRV64 ? 64 : 32; in parseArchString() local 994 if (XLen != 32 && Exts.count("zcf")) in checkDependency() 1172 if (XLen == 32 && Exts.count("zce") && Exts.count("f") && in updateImplication() 1260 Arch << "rv" << XLen; in toString() 1287 if (XLen == 32) { in computeDefaultABI() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Basic/Targets/ |
| H A D | RISCV.cpp | 248 unsigned XLen = 32; in initFeatureMap() local 252 XLen = 64; in initFeatureMap() 277 auto ParseResult = llvm::RISCVISAInfo::parseFeatures(XLen, FeaturesVec); in initFeatureMap() 335 unsigned XLen = getTriple().isArch64Bit() ? 64 : 32; in handleTargetFeatures() local 336 auto ParseResult = llvm::RISCVISAInfo::parseFeatures(XLen, Features); in handleTargetFeatures()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelDAGToDAG.cpp | 987 unsigned XLen = Subtarget->getXLen(); in Select() local 1016 unsigned XLen = Subtarget->getXLen(); in Select() local 1145 unsigned XLen = Subtarget->getXLen(); in Select() local 1160 C1 &= maskTrailingOnes<uint64_t>(XLen - C2); in Select() 1217 Skip |= HasBitTest && Leading == XLen - 1; in Select() 1236 if (C2 + Leading < XLen && in Select() 1390 unsigned XLen = Subtarget->getXLen(); in Select() local 1396 unsigned ConstantShift = XLen - LeadingZeros; in Select() 1402 if (XLen == 32) in Select() 2742 unsigned XLen = Subtarget->getXLen(); in selectSHXADDOp() local [all …]
|
| H A D | RISCVISelLowering.cpp | 11521 if (Size > XLen) { in ReplaceNodeResults() 16463 if (EltBits <= XLen) in ComputeNumSignBitsForTargetNode() 17377 if (!EABI || XLen != 32) in CC_RISCVAssign2XLen() 17431 assert(XLen == 32 || XLen == 64); in CC_RISCV() 19370 if (XLen == 32) { in getIntrinsicForMaskedAtomicRMWBinOp() 19393 if (XLen == 64) { in getIntrinsicForMaskedAtomicRMWBinOp() 19446 if (XLen == 64) { in emitMaskedAtomicRMWIntrinsic() 19465 Builder.CreateSub(Builder.getIntN(XLen, XLen - ValWidth), ShiftAmt); in emitMaskedAtomicRMWIntrinsic() 19473 if (XLen == 64) in emitMaskedAtomicRMWIntrinsic() 19497 if (XLen == 64) { in emitMaskedAtomicCmpXchgIntrinsic() [all …]
|
| H A D | RISCVInstrInfo.td | 410 // Return an immediate subtracted from XLen. 412 uint64_t XLen = Subtarget->getXLen(); 413 return CurDAG->getTargetConstant(XLen - N->getZExtValue(), SDLoc(N), 457 uint64_t XLen = Subtarget->getXLen(); 459 return CurDAG->getTargetConstant(XLen - TrailingOnes, SDLoc(N), 2073 // checking happy so we can use ADDIW which expects an XLen immediate.
|
| H A D | RISCVInstrInfo.cpp | 1297 unsigned XLen = STI.getXLen(); in isBranchOffsetInRange() local 1315 return isIntN(32, SignExtend64(BrOffset + 0x800, XLen)); in isBranchOffsetInRange()
|
| /freebsd-14.2/contrib/llvm-project/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()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/ |
| H A D | RISCVBaseInfo.cpp | 124 unsigned XLen = IsRV64 ? 64 : 32; in parseFeatureBits() local 132 return llvm::RISCVISAInfo::parseFeatures(XLen, FeatureVector); in parseFeatureBits()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | IntrinsicsRISCV.td | 130 // We use anyint here but we only support XLen. 405 // second operand is XLen. 415 // Second operand is XLen. 482 // second source operand must match the destination type or be an XLen scalar. 545 // second source operand must match the destination type or be an XLen scalar. 689 // The second source operand matches the destination type or is an XLen scalar. 701 // The second source operand matches the destination type or is an XLen scalar. 714 // The second source operand matches the destination type or is an XLen scalar. 726 // The second source operand matches the destination type or is an XLen scalar. 1224 // must be a vector or an XLen scalar. [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/CSKY/ |
| H A D | CSKYSubtarget.h | 210 const unsigned XLen = 32; variable
|
| H A D | CSKYISelLowering.cpp | 1386 if (VT.getSizeInBits() > Subtarget.XLen) in decomposeMulByConstant()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | TargetInfo.h | 499 createRISCVTargetCodeGenInfo(CodeGenModule &CGM, unsigned XLen, unsigned FLen,
|
| H A D | CodeGenModule.cpp | 227 unsigned XLen = Target.getPointerWidth(LangAS::Default); in createTargetCodeGenInfo() local 234 return createRISCVTargetCodeGenInfo(CGM, XLen, ABIFLen, EABI); in createTargetCodeGenInfo()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Driver/ |
| H A D | Driver.cpp | 677 unsigned XLen = (*ISAInfo)->getXLen(); in computeTargetTriple() local 678 if (XLen == 32) in computeTargetTriple() 680 else if (XLen == 64) in computeTargetTriple()
|