/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
H A D | RISCV.cpp | 23 unsigned XLen; member in __anonb4a9a46e0111::RISCVABIInfo 38 RISCVABIInfo(CodeGen::CodeGenTypes &CGT, unsigned XLen, unsigned FLen, in RISCVABIInfo() argument 40 : DefaultABIInfo(CGT), XLen(XLen), FLen(FLen), NumArgGPRs(EABI ? 6 : 8), in RISCVABIInfo() 81 getContext().getTypeSize(RetTy) > (2 * XLen)) { in computeInfo() 118 if (IsInt && Size > XLen) in detectFPCCEligibleStructHelper() 208 if (getContext().getTypeSize(QTy) > XLen && BitWidth <= XLen) in detectFPCCEligibleStructHelper() 209 QTy = getContext().getIntTypeForBitwidth(XLen, false); in detectFPCCEligibleStructHelper() 415 if (!IsFixed && NeededAlign == 2 * XLen) in classifyArgumentType() 416 NeededArgGPRs = 2 + (EABI && XLen == 32 ? 0 : (ArgGPRsLeft % 2)); in classifyArgumentType() 417 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() 122 if (Size < XLen && Ty->isIntegralOrEnumerationType()) in classifyArgumentType() 126 if (EIT->getNumBits() < XLen) in classifyArgumentType() 138 if (!isReturnType || (isReturnType && Size <= 2 * XLen)) { in classifyArgumentType() 139 if (Size <= XLen) { in classifyArgumentType() 141 llvm::IntegerType::get(getVMContext(), XLen)); in classifyArgumentType() 144 llvm::IntegerType::get(getVMContext(), XLen), (Size + 31) / XLen)); in classifyArgumentType()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/TargetParser/ |
H A D | RISCVISAInfo.h | 46 parseFeatures(unsigned XLen, const std::vector<std::string> &Features); 49 createFromExtMap(unsigned XLen, 60 unsigned getXLen() const { return XLen; } in getXLen() 84 RISCVISAInfo(unsigned XLen) : XLen(XLen) {} in RISCVISAInfo() argument 86 unsigned XLen; variable
|
/freebsd/contrib/llvm-project/llvm/lib/TargetParser/ |
H A D | RISCVISAInfo.cpp | 152 unsigned XLen = IsRV64 ? 64 : 32; in printEnabledExtensions() local 153 if (auto ISAString = RISCVISAInfo::createFromExtMap(XLen, FullExtMap)) in printEnabledExtensions() 437 RISCVISAInfo::createFromExtMap(unsigned XLen, in createFromExtMap() argument 439 assert(XLen == 32 || XLen == 64); in createFromExtMap() 440 std::unique_ptr<RISCVISAInfo> ISAInfo(new RISCVISAInfo(XLen)); in createFromExtMap() 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() 488 unsigned XLen = 0; in parseNormalizedArchString() local 490 XLen = 32; in parseNormalizedArchString() [all …]
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/ |
H A D | RISCVTargetDefEmitter.cpp | 99 unsigned XLen = 0; in printMArch() local 109 assert(XLen == 0 && "Already determined XLen"); in printMArch() 110 XLen = 64; in printMArch() 112 assert(XLen == 0 && "Already determined XLen"); in printMArch() 113 XLen = 32; in printMArch() 117 assert(XLen != 0 && "Unable to determine XLen"); in printMArch() 119 OS << "rv" << XLen; in printMArch()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/ |
H A D | RISCVLegalizerInfo.cpp | 71 : STI(ST), XLen(STI.getXLen()), sXLen(LLT::scalar(XLen)) { in RISCVLegalizerInfo() 72 const LLT sDoubleXLen = LLT::scalar(2 * XLen); in RISCVLegalizerInfo() 73 const LLT p0 = LLT::pointer(0, XLen); in RISCVLegalizerInfo() 169 if (XLen == 32 && ST.hasStdExtD()) { in RISCVLegalizerInfo() 173 MergeUnmergeActions.widenScalarToNextPow2(LitTyIdx, XLen) in RISCVLegalizerInfo() 174 .widenScalarToNextPow2(BigTyIdx, XLen) in RISCVLegalizerInfo() 257 if (XLen == 64 || ST.hasStdExtD()) in RISCVLegalizerInfo() 260 .clampScalar(0, s32, (XLen == 64 || ST.hasStdExtD()) ? s64 : s32) in RISCVLegalizerInfo() 268 {p0, p0, sXLen, XLen}}); in RISCVLegalizerInfo() 272 if (XLen == 64) { in RISCVLegalizerInfo() [all …]
|
H A D | RISCVLegalizerInfo.h | 27 const unsigned XLen; variable
|
H A D | RISCVInstructionSelector.cpp | 253 const unsigned XLen = STI.getXLen(); in selectSHXADDOp() local 270 Mask &= maskTrailingOnes<uint64_t>(XLen - C2.getLimitedValue()); in selectSHXADDOp() 273 unsigned Leading = XLen - Mask.getActiveBits(); in selectSHXADDOp() 315 unsigned Leading = XLen - Mask.getActiveBits(); in selectSHXADDOp()
|
/freebsd/contrib/llvm-project/clang/lib/Basic/Targets/ |
H A D | RISCV.cpp | 249 unsigned XLen = 32; in initFeatureMap() local 253 XLen = 64; in initFeatureMap() 278 auto ParseResult = llvm::RISCVISAInfo::parseFeatures(XLen, FeaturesVec); in initFeatureMap() 336 unsigned XLen = getTriple().isArch64Bit() ? 64 : 32; in handleTargetFeatures() local 337 auto ParseResult = llvm::RISCVISAInfo::parseFeatures(XLen, Features); in handleTargetFeatures()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/ |
H A D | RISCVBaseInfo.cpp | 123 unsigned XLen = IsRV64 ? 64 : 32; in parseFeatureBits() local 131 return llvm::RISCVISAInfo::parseFeatures(XLen, FeatureVector); in parseFeatureBits()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVISelDAGToDAG.cpp | 1086 unsigned XLen = Subtarget->getXLen(); in Select() local 1087 unsigned LeadingZeros = XLen - llvm::bit_width(Mask); in Select() 1115 unsigned XLen = Subtarget->getXLen(); in Select() local 1116 unsigned LeadingZeros = XLen - llvm::bit_width(Mask); in Select() 1244 unsigned XLen = Subtarget->getXLen(); in Select() local 1245 assert((C2 > 0 && C2 < XLen) && "Unexpected shift amount!"); in Select() 1259 C1 &= maskTrailingOnes<uint64_t>(XLen - C2); in Select() 1270 unsigned Leading = XLen - llvm::bit_width(C1); in Select() 1316 Skip |= HasBitTest && Leading == XLen - 1; in Select() 1333 unsigned Leading = XLen - llvm::bit_width(C1); in Select() [all …]
|
H A D | RISCVInstrInfo.td | 416 // Return an immediate subtracted from XLen. 418 uint64_t XLen = Subtarget->getXLen(); 419 return CurDAG->getTargetConstant(XLen - N->getZExtValue(), SDLoc(N), 463 uint64_t XLen = Subtarget->getXLen(); 465 return CurDAG->getTargetConstant(XLen - TrailingOnes, SDLoc(N), 1972 // checking happy so we can use ADDIW which expects an XLen immediate.
|
H A D | RISCVISelLowering.cpp | 354 // With Zbb we have an XLen rev8 instruction, but not GREVI. So we'll in RISCVTargetLowering() 8835 // We need to special case these when the scalar is larger than XLen. in lowerVectorIntrinsicScalars() 12338 unsigned XLen = Subtarget.getXLen(); in ReplaceNodeResults() 12340 if (Size > XLen) { in ReplaceNodeResults() 12341 assert(Size == (XLen * 2) && "Unexpected custom legalisation"); in ReplaceNodeResults() 12344 APInt HighMask = APInt::getHighBitsSet(Size, XLen); in ReplaceNodeResults() 12361 bool LHSIsS = DAG.ComputeNumSignBits(LHS) > XLen; in ReplaceNodeResults() 12362 bool RHSIsS = DAG.ComputeNumSignBits(RHS) > XLen; in ReplaceNodeResults() 12816 // Extend inputs to XLen, and shift by 32. This will add 64 trailing zeros in ReplaceNodeResults() 13224 // Maybe harmful when VT is wider than XLen in combineSelectAndUse() 12336 unsigned XLen = Subtarget.getXLen(); ReplaceNodeResults() local 17997 unsigned XLen = Subtarget.getXLen(); ComputeNumSignBitsForTargetNode() local 18946 CC_RISCVAssign2XLen(unsigned XLen,CCState & State,CCValAssign VA1,ISD::ArgFlagsTy ArgFlags1,unsigned ValNo2,MVT ValVT2,MVT LocVT2,ISD::ArgFlagsTy ArgFlags2,bool EABI) CC_RISCVAssign2XLen() argument 18996 unsigned XLen = DL.getLargestLegalIntTypeSizeInBits(); CC_RISCV() local 20983 getIntrinsicForMaskedAtomicRMWBinOp(unsigned XLen,AtomicRMWInst::BinOp BinOp) getIntrinsicForMaskedAtomicRMWBinOp() argument 21052 unsigned XLen = Subtarget.getXLen(); emitMaskedAtomicRMWIntrinsic() local 21109 unsigned XLen = Subtarget.getXLen(); emitMaskedAtomicCmpXchgIntrinsic() local [all...] |
H A D | RISCVInstrInfo.cpp | 1267 unsigned XLen = STI.getXLen(); in isBranchOffsetInRange() local 1287 return isIntN(32, SignExtend64(BrOffset + 0x800, XLen)); in isBranchOffsetInRange()
|
/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 | 1384 if (VT.getSizeInBits() > Subtarget.XLen) in decomposeMulByConstant()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | TargetInfo.h | 524 createRISCVTargetCodeGenInfo(CodeGenModule &CGM, unsigned XLen, unsigned FLen,
|
H A D | CodeGenModule.cpp | 231 unsigned XLen = Target.getPointerWidth(LangAS::Default); in createTargetCodeGenInfo() local 238 return createRISCVTargetCodeGenInfo(CGM, XLen, ABIFLen, EABI); in createTargetCodeGenInfo()
|
/freebsd/contrib/llvm-project/clang/lib/Driver/ |
H A D | Driver.cpp | 691 unsigned XLen = (*ISAInfo)->getXLen(); in computeTargetTriple() local 692 if (XLen == 32) in computeTargetTriple() 694 else if (XLen == 64) in computeTargetTriple()
|