Home
last modified time | relevance | path

Searched refs:ByteOffset (Results 1 – 23 of 23) sorted by relevance

/llvm-project-15.0.7/libc/src/string/memory_utils/
H A Daddress.h63 template <size_t ByteOffset> auto offset(size_t byte_offset) const { in offset()
64 static constexpr size_t NewAlignment = commonAlign<ByteOffset>(); in offset()
73 template <size_t ByteOffset> static constexpr size_t commonAlign() { in commonAlign()
74 constexpr size_t GCD = gcd(ByteOffset, ALIGNMENT); in commonAlign()
96 template <size_t ByteOffset, typename AddrT>
99 return addr.template offset<ByteOffset>(ByteOffset);
113 template <size_t ByteOffset, typename AddrT>
116 return addr.template offset<ByteOffset>(byte_offset);
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DGlobalSplit.cpp93 uint64_t ByteOffset = cast<ConstantInt>( in splitGlobal() local
104 uint64_t AttachedTo = (ByteOffset == 0) ? ByteOffset : ByteOffset - 1; in splitGlobal()
111 ConstantInt::get(Int32Ty, ByteOffset - SplitBegin)), in splitGlobal()
H A DWholeProgramDevirt.cpp328 uint64_t ByteOffset; member
346 DenseMapInfo<uint64_t>::getHashValue(I.ByteOffset); in getHashValue()
350 return LHS.TypeID == RHS.TypeID && LHS.ByteOffset == RHS.ByteOffset; in isEqual()
369 return LHS.TypeID == RHS.TypeID && LHS.ByteOffset == RHS.ByteOffset; in isEqual()
614 uint64_t ByteOffset,
740 uint64_t ByteOffset);
1037 uint64_t ByteOffset) { in tryFindVirtualCallTargets() argument
2008 auto ResI = TidSummary->WPDRes.find(Slot.ByteOffset); in importResolution()
2243 .WPDRes[S.first.ByteOffset]; in run()
2366 .WPDRes[S.first.ByteOffset]; in run()
[all …]
H A DLowerTypeTests.cpp127 if (Offset < ByteOffset) in containsGlobalOffset()
130 if ((Offset - ByteOffset) % (uint64_t(1) << AlignLog2) != 0) in containsGlobalOffset()
133 uint64_t BitOffset = (Offset - ByteOffset) >> AlignLog2; in containsGlobalOffset()
141 OS << "offset " << ByteOffset << " size " << BitSize << " align " in print()
171 BSI.ByteOffset = Min; in build()
1115 Int8Ty, CombinedGlobalAddr, ConstantInt::get(IntPtrTy, BSI.ByteOffset)), in lowerTypeTestCalls()
/llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/
H A DDebugLocStream.h43 size_t ByteOffset; member
119 .slice(Entries[EI].ByteOffset, getNumBytes(EI)); in getBytes()
145 return DWARFBytes.size() - Entries[EI].ByteOffset; in getNumBytes()
146 return Entries[EI + 1].ByteOffset - Entries[EI].ByteOffset; in getNumBytes()
H A DDebugLocStream.cpp28 if (Entries.back().ByteOffset != DWARFBytes.size()) in finalizeEntry()
/llvm-project-15.0.7/llvm/unittests/Transforms/IPO/
H A DLowerTypeTests.cpp19 uint64_t ByteOffset; in TEST() member
61 EXPECT_EQ(T.ByteOffset, BSI.ByteOffset); in TEST()
/llvm-project-15.0.7/llvm/tools/llvm-exegesis/lib/X86/
H A DTarget.cpp600 size_t ByteOffset = 0; in initStack() local
601 for (; Bytes - ByteOffset >= 4; ByteOffset += 4) in initStack()
603 X86::MOV32mi, ByteOffset, in initStack()
604 WideConstant.extractBits(32, ByteOffset * 8).getZExtValue())); in initStack()
605 if (Bytes - ByteOffset >= 2) { in initStack()
607 X86::MOV16mi, ByteOffset, in initStack()
608 WideConstant.extractBits(16, ByteOffset * 8).getZExtValue())); in initStack()
609 ByteOffset += 2; in initStack()
611 if (Bytes - ByteOffset >= 1) in initStack()
613 X86::MOV8mi, ByteOffset, in initStack()
[all …]
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DArrayBoundCheckerV2.cpp207 SVal ByteOffset = rawOffset.getByteOffset(); in checkLocation() local
208 if (isTainted(state, ByteOffset)) { in checkLocation()
210 std::make_unique<TaintBugVisitor>(ByteOffset)); in checkLocation()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUBaseInfo.cpp2246 static bool isDwordAligned(uint64_t ByteOffset) { in isDwordAligned() argument
2247 return (ByteOffset & 3) == 0; in isDwordAligned()
2251 uint64_t ByteOffset) { in convertSMRDOffsetUnits() argument
2253 return ByteOffset; in convertSMRDOffsetUnits()
2255 assert(isDwordAligned(ByteOffset)); in convertSMRDOffsetUnits()
2256 return ByteOffset >> 2; in convertSMRDOffsetUnits()
2264 return isInt<20>(ByteOffset) ? Optional<int64_t>(ByteOffset) : None; in getSMRDEncodedOffset()
2267 if (!isDwordAligned(ByteOffset) && !hasSMEMByteOffset(ST)) in getSMRDEncodedOffset()
2270 int64_t EncodedOffset = convertSMRDOffsetUnits(ST, ByteOffset); in getSMRDEncodedOffset()
2278 if (!isCI(ST) || !isDwordAligned(ByteOffset)) in getSMRDEncodedLiteralOffset32()
[all …]
H A DAMDGPUBaseInfo.h973 uint64_t convertSMRDOffsetUnits(const MCSubtargetInfo &ST, uint64_t ByteOffset);
980 int64_t ByteOffset, bool IsBuffer);
985 int64_t ByteOffset);
997 bool isLegalSMRDImmOffset(const MCSubtargetInfo &ST, int64_t ByteOffset);
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DConstantFolding.cpp423 assert(ByteOffset <= DL.getTypeAllocSize(C->getType()) && in ReadDataFromGlobal()
440 int n = ByteOffset; in ReadDataFromGlobal()
444 ++ByteOffset; in ReadDataFromGlobal()
467 unsigned Index = SL->getElementContainingOffset(ByteOffset); in ReadDataFromGlobal()
469 ByteOffset -= CurEltOffset; in ReadDataFromGlobal()
476 if (ByteOffset < EltSize && in ReadDataFromGlobal()
494 CurPtr += NextEltOffset - CurEltOffset - ByteOffset; in ReadDataFromGlobal()
495 BytesLeft -= NextEltOffset - CurEltOffset - ByteOffset; in ReadDataFromGlobal()
496 ByteOffset = 0; in ReadDataFromGlobal()
514 uint64_t Index = ByteOffset / EltSize; in ReadDataFromGlobal()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Transforms/IPO/
H A DLowerTypeTests.h38 uint64_t ByteOffset; member
H A DWholeProgramDevirt.h240 uint64_t ByteOffset; member
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelDAGToDAG.cpp1083 int64_t ByteOffset = C->getSExtValue(); in SelectDS1Addr1Offset() local
1084 if (isDSOffsetLegal(SDValue(), ByteOffset)) { in SelectDS1Addr1Offset()
1093 if (isDSOffsetLegal(Sub, ByteOffset)) { in SelectDS1Addr1Offset()
1110 Offset = CurDAG->getTargetConstant(ByteOffset, DL, MVT::i16); in SelectDS1Addr1Offset()
1912 int64_t ByteOffset = C->getSExtValue(); in SelectSMRDOffset() local
1914 AMDGPU::getSMRDEncodedOffset(*Subtarget, ByteOffset, false); in SelectSMRDOffset()
1921 if (ByteOffset < 0) in SelectSMRDOffset()
1924 EncodedOffset = AMDGPU::getSMRDEncodedLiteralOffset32(*Subtarget, ByteOffset); in SelectSMRDOffset()
1930 if (!isUInt<32>(ByteOffset) && !isInt<32>(ByteOffset)) in SelectSMRDOffset()
1934 SDValue C32Bit = CurDAG->getTargetConstant(ByteOffset, SL, MVT::i32); in SelectSMRDOffset()
H A DR600ISelLowering.cpp514 uint32_t ByteOffset = getImplicitParameterOffset(MF, FIRST_IMPLICIT); in LowerOperation() local
515 return DAG.getConstant(ByteOffset, DL, PtrVT); in LowerOperation()
763 unsigned ByteOffset = DwordOffset * 4; in LowerImplicitParameter() local
768 assert(isInt<16>(ByteOffset)); in LowerImplicitParameter()
771 DAG.getConstant(ByteOffset, DL, MVT::i32), // PTR in LowerImplicitParameter()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64FrameLowering.cpp2529 int ByteOffset = AFI->getCalleeSavedStackSize(); in computeCalleeSaveRegisterPairs() local
2535 ByteOffset = 0; in computeCalleeSaveRegisterPairs()
2625 int OffsetPre = RPI.isScalable() ? ScalableByteOffset : ByteOffset; in computeCalleeSaveRegisterPairs()
2631 ByteOffset += StackFillDir * (RPI.isPaired() ? 2 * Scale : Scale); in computeCalleeSaveRegisterPairs()
2637 ByteOffset += StackFillDir * 8; in computeCalleeSaveRegisterPairs()
2646 !RPI.isPaired() && ByteOffset % 16 != 0) { in computeCalleeSaveRegisterPairs()
2647 ByteOffset += 8 * StackFillDir; in computeCalleeSaveRegisterPairs()
2656 int OffsetPost = RPI.isScalable() ? ScalableByteOffset : ByteOffset; in computeCalleeSaveRegisterPairs()
/llvm-project-15.0.7/llvm/lib/MC/
H A DMCAsmStreamer.cpp1268 unsigned ByteOffset = in emitValueImpl() local
1270 uint64_t ValueToEmit = IntValue >> (ByteOffset * 8); in emitValueImpl()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGStmt.cpp2243 unsigned ByteOffset = 0; in getAsmSrcLocInfo() local
2250 i + 1, SM, LangOpts, CGF.getTarget(), &StartToken, &ByteOffset); in getAsmSrcLocInfo()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeDAG.cpp1564 unsigned ByteOffset = (NumBits / 8) - 1; in getSignAsIntValue() local
1566 DAG.getMemBasePlusOffset(StackPtr, TypeSize::Fixed(ByteOffset), DL); in getSignAsIntValue()
1568 ByteOffset); in getSignAsIntValue()
H A DDAGCombiner.cpp7742 unsigned ByteOffset = 0; member
7746 static ByteProvider getMemory(LoadSDNode *Load, unsigned ByteOffset) { in getMemory()
7747 return ByteProvider(Load, ByteOffset); in getMemory()
7756 return Other.Load == Load && Other.ByteOffset == ByteOffset; in operator ==()
7760 ByteProvider(LoadSDNode *Load, unsigned ByteOffset) in ByteProvider()
7761 : Load(Load), ByteOffset(ByteOffset) {} in ByteProvider()
8154 ? bigEndianByteAt(LoadByteWidth, P.ByteOffset) in MatchLoadCombine()
8155 : littleEndianByteAt(LoadByteWidth, P.ByteOffset); in MatchLoadCombine()
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp4073 unsigned ByteOffset = Offset / 8; in reduceLoadStoreWidth() local
4076 MIRBuilder.materializePtrAdd(NewAddrReg, AddrReg, OffsetTy, ByteOffset); in reduceLoadStoreWidth()
4079 MF.getMachineMemOperand(&MMO, ByteOffset, PartTy); in reduceLoadStoreWidth()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp9150 static bool findEltLoadSrc(SDValue Elt, LoadSDNode *&Ld, int64_t &ByteOffset) { in findEltLoadSrc() argument
9156 ByteOffset = 0; in findEltLoadSrc()
9164 return findEltLoadSrc(Elt.getOperand(0), Ld, ByteOffset); in findEltLoadSrc()
9168 if ((Amt % 8) == 0 && findEltLoadSrc(Elt.getOperand(0), Ld, ByteOffset)) { in findEltLoadSrc()
9169 ByteOffset += Amt / 8; in findEltLoadSrc()
9180 findEltLoadSrc(Src, Ld, ByteOffset)) { in findEltLoadSrc()
9182 ByteOffset += Idx * (SrcSizeInBits / 8); in findEltLoadSrc()
9277 int64_t ByteOffset = ByteOffsets[EltIdx]; in EltsFromConsecutiveLoads() local
9278 if (ByteOffset && (ByteOffset % BaseSizeInBytes) == 0) { in EltsFromConsecutiveLoads()
9279 int64_t BaseIdx = EltIdx - (ByteOffset / BaseSizeInBytes); in EltsFromConsecutiveLoads()