Home
last modified time | relevance | path

Searched refs:XLen (Results 1 – 14 of 14) sorted by relevance

/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DRISCVISAInfo.h52 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 DRISCV.cpp219 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 DRISCVISAInfo.cpp448 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 DRISCVISelDAGToDAG.cpp634 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 DRISCVSubtarget.h101 unsigned XLen = 32; variable
198 unsigned getXLen() const { return XLen; } in getXLen()
H A DRISCVSubtarget.cpp82 XLen = 64; in initializeSubtargetDependencies()
H A DRISCVISelLowering.cpp6911 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 DRISCVInstrInfo.td407 // 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 DRISCVInstrInfo.cpp1009 unsigned XLen = STI.getXLen(); in isBranchOffsetInRange() local
1027 return isIntN(32, SignExtend64(BrOffset + 0x800, XLen)); in isBranchOffsetInRange()
H A DRISCVInstrInfoZb.td1000 // XLen and swap the operands.
/llvm-project-15.0.7/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVBaseInfo.cpp108 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 DReductionRules.h104 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 DIntrinsicsRISCV.td158 // 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 DTargetInfo.cpp10848 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 …]