| /llvm-project/llvm/lib/Support/ |
| H A D | Base64.cpp | 55 for (uint64_t ByteOffset = 0; ByteOffset < 4; ++ByteOffset) { in decodeBase64() local 56 const uint64_t ByteIdx = Idx + ByteOffset; in decodeBase64() 75 Hex64Bytes[ByteOffset] = DecodedByte; in decodeBase64()
|
| /llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | GlobalSplit.cpp | 128 uint64_t ByteOffset = cast<ConstantInt>( in splitGlobal() 139 uint64_t AttachedTo = (ByteOffset == 0) ? ByteOffset : ByteOffset - 1; in splitGlobal() 146 ConstantInt::get(Int32Ty, ByteOffset - SplitBegin)), in splitGlobal() 129 uint64_t ByteOffset = cast<ConstantInt>( splitGlobal() local
|
| H A D | WholeProgramDevirt.cpp | 352 // tables, and the ByteOffset is the offset in bytes from the address point to in getEmptyKey() 356 uint64_t ByteOffset; in getTombstoneKey() 374 DenseMapInfo<uint64_t>::getHashValue(I.ByteOffset); 378 return LHS.TypeID == RHS.TypeID && LHS.ByteOffset == RHS.ByteOffset; in mustBeUnreachableFunction() 393 DenseMapInfo<uint64_t>::getHashValue(I.ByteOffset); in mustBeUnreachableFunction() 397 return LHS.TypeID == RHS.TypeID && LHS.ByteOffset == RHS.ByteOffset; in mustBeUnreachableFunction() 650 uint64_t ByteOffset, 776 uint64_t ByteOffset); 324 uint64_t ByteOffset; global() member 1057 tryFindVirtualCallTargets(std::vector<VirtualCallTarget> & TargetsForSlot,const std::set<TypeMemberInfo> & TypeMemberInfos,uint64_t ByteOffset,ModuleSummaryIndex * ExportSummary) tryFindVirtualCallTargets() argument 1103 tryFindVirtualCallTargets(std::vector<ValueInfo> & TargetsForSlot,const TypeIdCompatibleVtableInfo TIdInfo,uint64_t ByteOffset) tryFindVirtualCallTargets() argument [all...] |
| H A D | LowerTypeTests.cpp | 133 if (Offset < ByteOffset) in containsGlobalOffset() 136 if ((Offset - ByteOffset) % (uint64_t(1) << AlignLog2) != 0) in containsGlobalOffset() 139 uint64_t BitOffset = (Offset - ByteOffset) >> AlignLog2; 147 OS << "offset " << ByteOffset << " size " << BitSize << " align " in print() 177 BSI.ByteOffset = Min; in build() 1140 Int8Ty, CombinedGlobalAddr, ConstantInt::get(IntPtrTy, BSI.ByteOffset)), in lowerTypeTestCalls()
|
| /llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | DebugLocStream.h | 42 size_t ByteOffset; member 117 .slice(Entries[EI].ByteOffset, getNumBytes(EI)); in getBytes() 143 return DWARFBytes.size() - Entries[EI].ByteOffset; in getNumBytes() 144 return Entries[EI + 1].ByteOffset - Entries[EI].ByteOffset; in getNumBytes()
|
| H A D | DebugLocStream.cpp | 28 if (Entries.back().ByteOffset != DWARFBytes.size()) in finalizeEntry()
|
| /llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ArrayBoundCheckerV2.cpp | 570 auto [Reg, ByteOffset] = *RawOffset; in performCheck() 574 StateUpdateReporter SUR(Reg, ByteOffset, E, C); in performCheck() 587 State, ByteOffset, SVB.makeZeroArrayIndex(), SVB); in performCheck() 593 Messages Msgs = getPrecedesMsgs(Reg, ByteOffset); in performCheck() 594 reportOOB(C, PrecedesLowerBound, Msgs, ByteOffset, std::nullopt); in performCheck() 620 compareValueToThreshold(State, ByteOffset, *KnownSize, SVB); in performCheck() 628 if (isIdiomaticPastTheEndPtr(E, ExceedsUpperBound, ByteOffset, in performCheck() 635 getExceedsMsgs(C.getASTContext(), Reg, ByteOffset, *KnownSize, in performCheck() 637 reportOOB(C, ExceedsUpperBound, Msgs, ByteOffset, KnownSize); in performCheck() 641 if (isTainted(State, ByteOffset)) { in performCheck() [all...] |
| /llvm-project/llvm/unittests/Transforms/IPO/ |
| H A D | LowerTypeTests.cpp | 19 uint64_t ByteOffset; in TEST() member 61 EXPECT_EQ(T.ByteOffset, BSI.ByteOffset); in TEST()
|
| /llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | ByteProvider.h | 66 static ByteProvider getSrc(std::optional<ISelOp> Val, int64_t ByteOffset, in getSrc() argument 70 return ByteProvider(Val, ByteOffset, VectorOffset); in getSrc()
|
| /llvm-project/llvm/tools/llvm-exegesis/lib/X86/ |
| H A D | Target.cpp | 633 size_t ByteOffset = 0; in initStack() 634 for (; Bytes - ByteOffset >= 4; ByteOffset += 4) in initStack() 636 X86::MOV32mi, ByteOffset, in initStack() 637 WideConstant.extractBits(32, ByteOffset * 8).getZExtValue())); in initStack() 638 if (Bytes - ByteOffset >= 2) { 640 X86::MOV16mi, ByteOffset, 641 WideConstant.extractBits(16, ByteOffset * 8).getZExtValue())); 642 ByteOffset += 2; 644 if (Bytes - ByteOffset > 622 size_t ByteOffset = 0; initStack() local [all...] |
| /llvm-project/llvm/lib/Target/AMDGPU/Utils/ |
| H A D | AMDGPUBaseInfo.cpp | 2894 static bool isDwordAligned(uint64_t ByteOffset) { in getSMRDEncodedLiteralOffset32() 2895 return (ByteOffset & 3) == 0; in getSMRDEncodedLiteralOffset32() 2899 uint64_t ByteOffset) { 2901 return ByteOffset; in getNumFlatOffsetBits() 2903 assert(isDwordAligned(ByteOffset)); in getNumFlatOffsetBits() 2904 return ByteOffset >> 2; in getNumFlatOffsetBits() 2908 int64_t ByteOffset, bool IsBuffer, 2913 if (!IsBuffer && !HasSOffset && ByteOffset < 0 && hasSMRDSignedImmOffset(ST)) 2917 return isInt<24>(ByteOffset) ? std::optional<int64_t>(ByteOffset) 2848 isDwordAligned(uint64_t ByteOffset) isDwordAligned() argument 2853 convertSMRDOffsetUnits(const MCSubtargetInfo & ST,uint64_t ByteOffset) convertSMRDOffsetUnits() argument 2862 getSMRDEncodedOffset(const MCSubtargetInfo & ST,int64_t ByteOffset,bool IsBuffer,bool HasSOffset) getSMRDEncodedOffset() argument 2891 getSMRDEncodedLiteralOffset32(const MCSubtargetInfo & ST,int64_t ByteOffset) getSMRDEncodedLiteralOffset32() argument [all...] |
| H A D | AMDGPUBaseInfo.h | 1518 /// Convert \p ByteOffset to dwords if the subtarget uses dword SMRD immediate 1520 uint64_t convertSMRDOffsetUnits(const MCSubtargetInfo &ST, uint64_t ByteOffset); 1522 /// \returns The encoding that will be used for \p ByteOffset in the 1527 int64_t ByteOffset, bool IsBuffer, 1533 int64_t ByteOffset); 1544 /// offset field. \p ByteOffset should be the offset in bytes and 1546 bool isLegalSMRDImmOffset(const MCSubtargetInfo &ST, int64_t ByteOffset);
|
| /llvm-project/llvm/lib/Analysis/ |
| H A D | ConstantFolding.cpp | 422 /// out of. ByteOffset is an offset into C. CurPtr is the pointer to copy in ReadDataFromGlobal() 425 bool ReadDataFromGlobal(Constant *C, uint64_t ByteOffset, unsigned char *CurPtr, in ReadDataFromGlobal() 427 assert(ByteOffset <= DL.getTypeAllocSize(C->getType()) && in ReadDataFromGlobal() 441 for (unsigned i = 0; i != BytesLeft && ByteOffset != IntBytes; ++i) { in ReadDataFromGlobal() 442 unsigned n = ByteOffset; in ReadDataFromGlobal() 446 ++ByteOffset; in ReadDataFromGlobal() 454 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal() 458 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal() 462 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal() 469 unsigned Index = SL->getElementContainingOffset(ByteOffset); in ReadDataFromGlobal() 417 ReadDataFromGlobal(Constant * C,uint64_t ByteOffset,unsigned char * CurPtr,unsigned BytesLeft,const DataLayout & DL) ReadDataFromGlobal() argument [all...] |
| /llvm-project/llvm/include/llvm/Transforms/IPO/ |
| H A D | LowerTypeTests.h | 38 uint64_t ByteOffset; member
|
| H A D | WholeProgramDevirt.h | 240 uint64_t ByteOffset; member
|
| /llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUISelDAGToDAG.cpp | 1186 int64_t ByteOffset = C->getSExtValue(); in isFlatScratchBaseLegal() 1187 if (isDSOffsetLegal(SDValue(), ByteOffset)) { in isFlatScratchBaseLegal() 1196 if (isDSOffsetLegal(Sub, ByteOffset)) { in isFlatScratchBaseLegal() 1213 Offset = CurDAG->getTargetConstant(ByteOffset, DL, MVT::i16); in isFlatScratchBaseLegalSV() 2151 int64_t ByteOffset = IsBuffer ? C->getZExtValue() : C->getSExtValue(); in SelectSMRDBaseOffset() 2153 *Subtarget, ByteOffset, IsBuffer, HasSOffset); in SelectSMRDBaseOffset() 2160 if (ByteOffset < 0) in SelectSMRDBaseOffset() 2163 EncodedOffset = AMDGPU::getSMRDEncodedLiteralOffset32(*Subtarget, ByteOffset); in SelectSMRDBaseOffset() 2169 if (!isUInt<32>(ByteOffset) && !isInt<32>(ByteOffset)) in SelectSMRD() 1097 int64_t ByteOffset = C->getSExtValue(); SelectDS1Addr1Offset() local 2060 int64_t ByteOffset = IsBuffer ? C->getZExtValue() : C->getSExtValue(); SelectSMRDOffset() local [all...] |
| H A D | R600ISelLowering.cpp | 515 uint32_t ByteOffset = getImplicitParameterOffset(MF, FIRST_IMPLICIT); in LowerOperation() 516 return DAG.getConstant(ByteOffset, DL, PtrVT); in LowerOperation() local 764 unsigned ByteOffset = DwordOffset * 4; in LowerImplicitParameter() 769 assert(isInt<16>(ByteOffset)); in LowerImplicitParameter() 772 DAG.getConstant(ByteOffset, DL, MVT::i32), // PTR in LowerImplicitParameter() 765 unsigned ByteOffset = DwordOffset * 4; LowerImplicitParameter() local
|
| /llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64FrameLowering.cpp | 2992 int ByteOffset = AFI->getCalleeSavedStackSize(); in computeCalleeSaveRegisterPairs() 2998 ByteOffset = 0; in computeCalleeSaveRegisterPairs() 3040 ByteOffset += StackFillDir * StackHazardSize; in computeCalleeSaveRegisterPairs() 3117 int OffsetPre = RPI.isScalable() ? ScalableByteOffset : ByteOffset; in spillCalleeSavedRegisters() 3123 ByteOffset += StackFillDir * (RPI.isPaired() ? 2 * Scale : Scale); in spillCalleeSavedRegisters() 3130 ByteOffset += StackFillDir * 8; in spillCalleeSavedRegisters() 3136 ByteOffset % 16 != 0) { in spillCalleeSavedRegisters() 3137 ByteOffset += 8 * StackFillDir; in spillCalleeSavedRegisters() 3146 int OffsetPost = RPI.isScalable() ? ScalableByteOffset : ByteOffset; in spillCalleeSavedRegisters() 2893 int ByteOffset = AFI->getCalleeSavedStackSize(); computeCalleeSaveRegisterPairs() local
|
| /llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | LegalizeIntegerTypes.cpp | 4756 SDValue ByteOffset = in ExpandIntRes_Shift() 4761 ByteOffset = DAG.getNode(ISD::AND, dl, ShAmtVT, ByteOffset, in ExpandIntRes_Shift() 4778 ByteOffset = DAG.getNegative(ByteOffset, dl, ShAmtVT); in ExpandIntRes_SIGN_EXTEND() 4782 ByteOffset = DAG.getSExtOrTrunc(ByteOffset, dl, PtrTy); in ExpandIntRes_SIGN_EXTEND() 4783 AdjStackPtr = DAG.getMemBasePlusOffset(AdjStackPtr, ByteOffset, dl); in ExpandIntRes_SIGN_EXTEND() 4607 SDValue ByteOffset = DAG.getNode(ISD::SRL, dl, ShAmtVT, ShAmt, ExpandIntRes_ShiftThroughStack() local
|
| H A D | LegalizeDAG.cpp | 1616 unsigned ByteOffset = (NumBits / 8) - 1; 1618 DAG.getMemBasePlusOffset(StackPtr, TypeSize::getFixed(ByteOffset), DL); in modifySignAsInt() 1620 ByteOffset); in modifySignAsInt() 1602 unsigned ByteOffset = (NumBits / 8) - 1; getSignAsIntValue() local
|
| /llvm-project/llvm/lib/MC/ |
| H A D | MCAsmStreamer.cpp | 1397 unsigned ByteOffset = in emitSLEB128Value() 1399 uint64_t ValueToEmit = IntValue >> (ByteOffset * 8); in emitDTPRel64Value() 1350 unsigned ByteOffset = emitValueImpl() local
|
| /llvm-project/clang/lib/CodeGen/ |
| H A D | CGStmt.cpp | 2517 unsigned ByteOffset = 0; in EmitAsmStores() 2524 i + 1, SM, LangOpts, CGF.getTarget(), &StartToken, &ByteOffset); in EmitAsmStores() 2438 unsigned ByteOffset = 0; getAsmSrcLocInfo() local
|
| /llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | LegalizerHelper.cpp | 5249 unsigned ByteOffset = Offset / 8; in narrowScalarShift() 5252 MIRBuilder.materializePtrAdd(NewAddrReg, AddrReg, OffsetTy, ByteOffset); in narrowScalarShift() 5255 MF.getMachineMemOperand(&MMO, ByteOffset, PartTy); in narrowScalarShift() 4592 unsigned ByteOffset = Offset / 8; reduceLoadStoreWidth() local
|
| /llvm-project/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 7073 static bool findEltLoadSrc(SDValue Elt, LoadSDNode *&Ld, int64_t &ByteOffset) { in EltsFromConsecutiveLoads() 7079 ByteOffset = 0; in EltsFromConsecutiveLoads() 7087 return findEltLoadSrc(Elt.getOperand(0), Ld, ByteOffset); in EltsFromConsecutiveLoads() 7091 if ((Amt % 8) == 0 && findEltLoadSrc(Elt.getOperand(0), Ld, ByteOffset)) { in EltsFromConsecutiveLoads() 7092 ByteOffset += Amt / 8; in EltsFromConsecutiveLoads() 7103 findEltLoadSrc(Src, Ld, ByteOffset)) { in EltsFromConsecutiveLoads() 7105 ByteOffset += Idx * (SrcSizeInBits / 8); in EltsFromConsecutiveLoads() 7200 int64_t ByteOffset = ByteOffsets[EltIdx]; 7201 if (ByteOffset && (ByteOffset 6873 findEltLoadSrc(SDValue Elt,LoadSDNode * & Ld,int64_t & ByteOffset) findEltLoadSrc() argument 7000 int64_t ByteOffset = ByteOffsets[EltIdx]; EltsFromConsecutiveLoads() local [all...] |