| /freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
| H A D | RISCV.cpp | 24 unsigned XLen; member in __anonb4a9a46e0111::RISCVABIInfo 42 RISCVABIInfo(CodeGen::CodeGenTypes &CGT, unsigned XLen, unsigned FLen, in RISCVABIInfo() argument 44 : DefaultABIInfo(CGT), XLen(XLen), FLen(FLen), NumArgGPRs(EABI ? 6 : 8), in RISCVABIInfo() 152 getContext().getTypeSize(RetTy) > (2 * XLen)) { in computeInfo() 189 if (IsInt && Size > XLen) in detectFPCCEligibleStructHelper() 279 if (getContext().getTypeSize(QTy) > XLen && BitWidth <= XLen) in detectFPCCEligibleStructHelper() 280 QTy = getContext().getIntTypeForBitwidth(XLen, false); in detectFPCCEligibleStructHelper() 662 if (!IsFixed && NeededAlign == 2 * XLen) in classifyArgumentType() 663 NeededArgGPRs = 2 + (EABI && XLen == 32 ? 0 : (ArgGPRsLeft % 2)); in classifyArgumentType() 664 else if (Size > XLen && Size <= 2 * XLen) in classifyArgumentType() [all …]
|
| H A D | CSKY.cpp | 23 static const unsigned XLen = 32; member in __anond0a0cca10111::CSKYABIInfo 62 CharUnits SlotSize = CharUnits::fromQuantity(XLen / 8); in EmitVAArg() 123 if (Size < XLen && Ty->isIntegralOrEnumerationType()) in classifyArgumentType() 127 if (EIT->getNumBits() < XLen) in classifyArgumentType() 139 if (!isReturnType || (isReturnType && Size <= 2 * XLen)) { in classifyArgumentType() 140 if (Size <= XLen) { in classifyArgumentType() 142 llvm::IntegerType::get(getVMContext(), XLen)); in classifyArgumentType() 145 llvm::IntegerType::get(getVMContext(), XLen), (Size + 31) / XLen)); in classifyArgumentType()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/TargetParser/ |
| H A D | RISCVISAInfo.h | 47 parseFeatures(unsigned XLen, const std::vector<std::string> &Features); 50 createFromExtMap(unsigned XLen, 61 unsigned getXLen() const { return XLen; } in getXLen() 93 RISCVISAInfo(unsigned XLen) : XLen(XLen) {} in RISCVISAInfo() argument 95 unsigned XLen; variable
|
| /freebsd/contrib/llvm-project/llvm/lib/TargetParser/ |
| H A D | RISCVISAInfo.cpp | 151 unsigned XLen = IsRV64 ? 64 : 32; in printEnabledExtensions() local 152 if (auto ISAString = RISCVISAInfo::createFromExtMap(XLen, FullExtMap)) in printEnabledExtensions() 436 RISCVISAInfo::createFromExtMap(unsigned XLen, in createFromExtMap() argument 438 assert(XLen == 32 || XLen == 64); in createFromExtMap() 439 std::unique_ptr<RISCVISAInfo> ISAInfo(new RISCVISAInfo(XLen)); in createFromExtMap() 447 RISCVISAInfo::parseFeatures(unsigned XLen, in parseFeatures() argument 449 assert(XLen == 32 || XLen == 64); in parseFeatures() 450 std::unique_ptr<RISCVISAInfo> ISAInfo(new RISCVISAInfo(XLen)); in parseFeatures() 486 unsigned XLen = 0; in parseNormalizedArchString() local 488 XLen = 32; in parseNormalizedArchString() [all …]
|
| /freebsd/contrib/llvm-project/llvm/utils/TableGen/Basic/ |
| H A D | RISCVTargetDefEmitter.cpp | 100 unsigned XLen = 0; in printMArch() local 110 assert(XLen == 0 && "Already determined XLen"); in printMArch() 111 XLen = 64; in printMArch() 113 assert(XLen == 0 && "Already determined XLen"); in printMArch() 114 XLen = 32; in printMArch() 118 assert(XLen != 0 && "Unable to determine XLen"); in printMArch() 120 OS << "rv" << XLen; in printMArch()
|
| /freebsd/contrib/llvm-project/clang/lib/Basic/Targets/ |
| H A D | RISCV.cpp | 342 unsigned XLen = 32; in initFeatureMap() local 346 XLen = 64; in initFeatureMap() 352 auto ParseResult = llvm::RISCVISAInfo::parseFeatures(XLen, FeaturesVec); in initFeatureMap() 412 unsigned XLen = getTriple().isArch64Bit() ? 64 : 32; in handleTargetFeatures() local 413 auto ParseResult = llvm::RISCVISAInfo::parseFeatures(XLen, Features); in handleTargetFeatures() 629 unsigned XLen = getTriple().isArch64Bit() ? 64 : 32; in validateGlobalRegisterVariable() local 630 HasSizeMismatch = RegSize != XLen; in validateGlobalRegisterVariable()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVCallingConv.cpp | 237 static bool CC_RISCVAssign2XLen(unsigned XLen, CCState &State, CCValAssign VA1, in CC_RISCVAssign2XLen() argument 241 unsigned XLenInBytes = XLen / 8; in CC_RISCVAssign2XLen() 255 if (!EABI || XLen != 32) in CC_RISCVAssign2XLen() 333 unsigned XLen = Subtarget.getXLen(); in CC_RISCV() local 429 if (LocVT == MVT::f64 && XLen == 64 && Subtarget.hasStdExtZdinx()) { in CC_RISCV() 438 (LocVT == MVT::f32 && XLen == 64)) { in CC_RISCV() 448 if ((XLen == 32 && LocVT == MVT::f32) || (XLen == 64 && LocVT == MVT::f64)) { in CC_RISCV() 467 unsigned TwoXLenInBytes = (2 * XLen) / 8; in CC_RISCV() 486 if (XLen == 32 && LocVT == MVT::f64) { in CC_RISCV() 539 XLen, State, VA, AF, ValNo, ValVT, LocVT, ArgFlags, in CC_RISCV() [all …]
|
| H A D | RISCVISelDAGToDAG.cpp | 1187 unsigned XLen = Subtarget->getXLen(); in Select() local 1188 unsigned LeadingZeros = XLen - llvm::bit_width(Mask); in Select() 1203 XLen - LeadingZeros > 11 && LeadingZeros != 32) { in Select() 1237 unsigned XLen = Subtarget->getXLen(); in Select() local 1238 unsigned LeadingZeros = XLen - llvm::bit_width(Mask); in Select() 1366 unsigned XLen = Subtarget->getXLen(); in Select() local 1367 assert((C2 > 0 && C2 < XLen) && "Unexpected shift amount!"); in Select() 1383 C1 &= maskTrailingOnes<uint64_t>(XLen - C2); in Select() 1394 unsigned Leading = XLen - llvm::bit_width(C1); in Select() 1440 Skip |= HasBitTest && Leading == XLen - 1; in Select() [all …]
|
| H A D | RISCVInstrInfo.td | 525 // Return an immediate subtracted from XLen. 527 uint64_t XLen = Subtarget->getXLen(); 528 return CurDAG->getTargetConstant(XLen - N->getZExtValue(), SDLoc(N), 578 uint64_t XLen = Subtarget->getXLen(); 580 return CurDAG->getTargetConstant(XLen - TrailingOnes, SDLoc(N),
|
| H A D | RISCVISelLowering.cpp | 14233 unsigned XLen = Subtarget.getXLen(); in ReplaceNodeResults() local 14235 if (Size > XLen) { in ReplaceNodeResults() 14236 assert(Size == (XLen * 2) && "Unexpected custom legalisation"); in ReplaceNodeResults() 14239 APInt HighMask = APInt::getHighBitsSet(Size, XLen); in ReplaceNodeResults() 14256 bool LHSIsS = DAG.ComputeNumSignBits(LHS) > XLen; in ReplaceNodeResults() 14257 bool RHSIsS = DAG.ComputeNumSignBits(RHS) > XLen; in ReplaceNodeResults() 21128 unsigned XLen = Subtarget.getXLen(); in ComputeNumSignBitsForTargetNode() local 21130 if (EltBits <= XLen) in ComputeNumSignBitsForTargetNode() 21131 return XLen - EltBits + 1; in ComputeNumSignBitsForTargetNode() 23416 getIntrinsicForMaskedAtomicRMWBinOp(unsigned XLen, AtomicRMWInst::BinOp BinOp) { in getIntrinsicForMaskedAtomicRMWBinOp() argument [all …]
|
| H A D | RISCVInstrInfoF.td | 73 // FP to XLen int conversions. Corresponds to fcvt.l(u).s/d/h on RV64 and
|
| H A D | RISCVInstrInfo.cpp | 1602 unsigned XLen = STI.getXLen(); in isBranchOffsetInRange() local 1639 return isInt<32>(SignExtend64(BrOffset + 0x800, XLen)); in isBranchOffsetInRange()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/ |
| H A D | RISCVLegalizerInfo.cpp | 75 : STI(ST), XLen(STI.getXLen()), sXLen(LLT::scalar(XLen)) { in RISCVLegalizerInfo() 76 const LLT sDoubleXLen = LLT::scalar(2 * XLen); in RISCVLegalizerInfo() 77 const LLT p0 = LLT::pointer(0, XLen); in RISCVLegalizerInfo() 183 if (XLen == 32 && ST.hasStdExtD()) { in RISCVLegalizerInfo() 187 MergeUnmergeActions.widenScalarToNextPow2(LitTyIdx, XLen) in RISCVLegalizerInfo() 188 .widenScalarToNextPow2(BigTyIdx, XLen) in RISCVLegalizerInfo() 277 .legalFor(XLen == 64 || ST.hasStdExtD(), {{s64, sXLen}}) in RISCVLegalizerInfo() 279 .clampScalar(0, s32, (XLen == 64 || ST.hasStdExtD()) ? s64 : s32) in RISCVLegalizerInfo() 299 {p0, p0, sXLen, getScalarMemAlign(XLen)}}); in RISCVLegalizerInfo() 306 {p0, p0, sXLen, getScalarMemAlign(XLen)}}); in RISCVLegalizerInfo() [all …]
|
| H A D | RISCVLegalizerInfo.h | 28 const unsigned XLen; variable
|
| H A D | RISCVInstructionSelector.cpp | 403 const unsigned XLen = STI.getXLen(); in selectSHXADDOp() local 420 Mask &= maskTrailingOnes<uint64_t>(XLen - C2.getLimitedValue()); in selectSHXADDOp() 423 unsigned Leading = XLen - Mask.getActiveBits(); in selectSHXADDOp() 465 unsigned Leading = XLen - Mask.getActiveBits(); in selectSHXADDOp()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/ |
| H A D | RISCVBaseInfo.cpp | 150 unsigned XLen = IsRV64 ? 64 : 32; in parseFeatureBits() local 158 return llvm::RISCVISAInfo::parseFeatures(XLen, FeatureVector); in parseFeatureBits()
|
| /freebsd/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/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | IntrinsicsRISCV.td | 146 // We use anyint here but we only support XLen. 421 // second operand is XLen. 431 // Second operand is XLen. 498 // second source operand must match the destination type or be an XLen scalar. 508 // The second source operand must match the destination type or be an XLen scalar. 561 // second source operand must match the destination type or be an XLen scalar. 571 // The second source operand must match the destination type or be an XLen scalar. 705 // The second source operand matches the destination type or is an XLen scalar. 717 // The second source operand matches the destination type or is an XLen scalar. 730 // The second source operand matches the destination type or is an XLen scalar. [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/ |
| H A D | CSKYSubtarget.h | 210 const unsigned XLen = 32; variable
|
| H A D | CSKYISelLowering.cpp | 1355 if (VT.getSizeInBits() > Subtarget.XLen) in decomposeMulByConstant()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | TargetInfo.h | 570 createRISCVTargetCodeGenInfo(CodeGenModule &CGM, unsigned XLen, unsigned FLen,
|
| H A D | CodeGenModule.cpp | 229 unsigned XLen = Target.getPointerWidth(LangAS::Default); in createTargetCodeGenInfo() local 236 return createRISCVTargetCodeGenInfo(CGM, XLen, ABIFLen, EABI); in createTargetCodeGenInfo()
|
| /freebsd/contrib/llvm-project/clang/lib/Driver/ |
| H A D | Driver.cpp | 843 unsigned XLen = (*ISAInfo)->getXLen(); in computeTargetTriple() local 844 if (XLen == 32) in computeTargetTriple() 846 else if (XLen == 64) in computeTargetTriple()
|