Home
last modified time | relevance | path

Searched refs:Offsets (Results 1 – 25 of 78) sorted by relevance

1234

/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVEGatherScatterLowering.cpp89 Value *decomposePtr(Value *Ptr, Value *&Offsets, int &Scale,
95 Value *decomposeGEP(Value *&Offsets, FixedVectorType *Ty,
123 Instruction *tryCreateMaskedScatterOffset(IntrinsicInst *I, Value *Offsets,
148 Value *foldGEP(GetElementPtrInst *GEP, Value *&Offsets, unsigned &Scale,
151 bool optimiseOffsets(Value *Offsets, BasicBlock *BB, LoopInfo *LI);
185 static bool checkOffsetSize(Value *Offsets, unsigned TargetElemCount) { in checkOffsetSize() argument
197 unsigned OffsetElemSize = cast<FixedVectorType>(Offsets->getType()) in checkOffsetSize()
201 Constant *ConstOff = dyn_cast<Constant>(Offsets); in checkOffsetSize()
227 Value *MVEGatherScatterLowering::decomposePtr(Value *Ptr, Value *&Offsets, in decomposePtr() argument
232 if (Value *V = decomposeGEP(Offsets, Ty, GEP, Builder)) { in decomposePtr()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Remarks/
H A DRemarkParser.cpp31 Offsets.push_back(Split.first.data() - Buffer.data()); in ParsedStringTable()
37 if (Index >= Offsets.size()) in operator []()
41 Offsets.size()); in operator []()
43 size_t Offset = Offsets[Index]; in operator []()
47 (Index == Offsets.size() - 1) ? Buffer.size() : Offsets[Index + 1]; in operator []()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DAnalysis.cpp82 SmallVectorImpl<TypeSize> *Offsets, in ComputeValueVTs() argument
92 const StructLayout *SL = Offsets ? DL.getStructLayout(STy) : nullptr; in ComputeValueVTs()
100 ComputeValueVTs(TLI, DL, *EI, ValueVTs, MemVTs, Offsets, in ComputeValueVTs()
110 ComputeValueVTs(TLI, DL, EltTy, ValueVTs, MemVTs, Offsets, in ComputeValueVTs()
121 if (Offsets) in ComputeValueVTs()
122 Offsets->push_back(StartingOffset); in ComputeValueVTs()
132 SmallVector<TypeSize, 4> Offsets; in ComputeValueVTs() local
133 ComputeValueVTs(TLI, DL, Ty, ValueVTs, MemVTs, &Offsets, Offset); in ComputeValueVTs()
134 for (TypeSize Offset : Offsets) in ComputeValueVTs()
143 SmallVectorImpl<uint64_t> *Offsets, in computeValueLLTs() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinkerParallel/
H A DOutputSections.h
/freebsd/contrib/llvm-project/clang/tools/clang-format/
H A DClangFormat.cpp40 Offsets("offset", variable
250 if (!Offsets.empty() || !Lengths.empty()) { in fillRanges()
280 if (Offsets.empty()) in fillRanges()
281 Offsets.push_back(0); in fillRanges()
282 if (Offsets.size() != Lengths.size() && in fillRanges()
283 !(Offsets.size() == 1 && Lengths.empty())) { in fillRanges()
287 for (unsigned i = 0, e = Offsets.size(); i != e; ++i) { in fillRanges()
288 if (Offsets[i] >= Code->getBufferSize()) { in fillRanges()
289 errs() << "error: offset " << Offsets[i] << " is outside the file\n"; in fillRanges()
293 Sources.getLocForStartOfFile(ID).getLocWithOffset(Offsets[i]); in fillRanges()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DAnalysis.h68 SmallVectorImpl<TypeSize> *Offsets = nullptr,
79 SmallVectorImpl<TypeSize> *Offsets = nullptr,
81 ComputeValueVTs(TLI, DL, Ty, ValueVTs, nullptr, Offsets, StartingOffset);
99 SmallVectorImpl<uint64_t> *Offsets = nullptr,
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DCBufferDataLayout.cpp26 SmallVector<uint32_t> Offsets; member
29 assert(Idx < Offsets.size() && "Invalid element idx!"); in getElementLegacyOffset()
30 uint32_t Offset = Offsets[Idx]; in getElementLegacyOffset()
106 Layout.Offsets.emplace_back(Offset); in getStructLayout()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DSignals.cpp128 const char **Modules, intptr_t *Offsets,
177 std::vector<intptr_t> Offsets(Depth, 0); in printSymbolizedStackTrace()
178 if (!findModulesAndOffsets(StackTrace, Depth, Modules.data(), Offsets.data(), in printSymbolizedStackTrace()
192 Input << Modules[i] << " " << (void*)Offsets[i] << "\n"; in printSymbolizedStackTrace()
249 OS << "(" << Modules[i] << '+' << format_hex(Offsets[i], 0) << ")"; in printSymbolizedStackTrace()
176 std::vector<intptr_t> Offsets(Depth, 0); printSymbolizedStackTrace() local
H A DSourceMgr.cpp90 auto *Offsets = new std::vector<T>(); in GetOrCreateOffsetCache() local
96 Offsets->push_back(static_cast<T>(N)); in GetOrCreateOffsetCache()
99 OffsetCache = Offsets; in GetOrCreateOffsetCache()
100 return *Offsets; in GetOrCreateOffsetCache()
105 std::vector<T> &Offsets = in getLineNumberSpecialized() local
117 return llvm::lower_bound(Offsets, PtrOffset) - Offsets.begin() + 1; in getLineNumberSpecialized()
137 std::vector<T> &Offsets = in getPointerForLineNumberSpecialized() local
150 if (LineNo > Offsets.size()) in getPointerForLineNumberSpecialized()
152 return BufStart + Offsets[LineNo - 1] + 1; in getPointerForLineNumberSpecialized()
H A DIntervalMap.cpp19 void Path::replaceRoot(void *Root, unsigned Size, IdxPair Offsets) { in replaceRoot() argument
21 path.front() = Entry(Root, Size, Offsets.first); in replaceRoot()
22 path.insert(path.begin() + 1, Entry(subtree(0), Offsets.second)); in replaceRoot()
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/
H A DVEFrameLowering.h59 static const SpillSlot Offsets[] = { in getCalleeSavedSpillSlots() local
65 NumEntries = std::size(Offsets); in getCalleeSavedSpillSlots()
66 return Offsets; in getCalleeSavedSpillSlots()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DR600MCCodeEmitter.cpp114 int64_t Offsets[3] = {MI.getOperand(6).getImm() & 0x1F, in encodeInstruction() local
121 SrcSelect[ELEMENT_W] << 29 | Offsets[0] << 0 | in encodeInstruction()
122 Offsets[1] << 5 | Offsets[2] << 10; in encodeInstruction()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFAcceleratorTable.cpp513 if (*Offset >= Offsets.EntriesBase) { in extractAttributeEncoding()
539 if (*Offset >= Offsets.EntriesBase) { in extractAbbrev()
580 Offsets = dwarf::findDebugNamesOffsets(EndOfHeaderOffset, Hdr); in extract()
583 Offsets.EntryOffsetsBase + (Hdr.NameCount * SectionOffsetSize); in extract()
589 Offsets.EntriesBase = Offset + Hdr.AbbrevTableSize; in extract()
718 auto AbsoluteOffset = NameIdx->Offsets.EntriesBase + FormValue.getRawUValue(); in dumpParentIdx()
747 uint64_t Offset = Offsets.CUsBase + SectionOffsetSize * CU; in getCUOffset()
755 Offsets.CUsBase + SectionOffsetSize * (Hdr.CompUnitCount + TU); in getLocalTUOffset()
763 Offsets.CUsBase + in getForeignTUSignature()
799 Offsets.StringOffsetsBase + SectionOffsetSize * (Index - 1); in getNameTableEntry()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DStackSafetyAnalysis.cpp320 ConstantRange Offsets = offsetFrom(Addr, Base); in getAccessRange() local
321 if (isUnsafe(Offsets)) in getAccessRange()
324 Offsets = addOverflowNever(Offsets, SizeRange); in getAccessRange()
325 if (isUnsafe(Offsets)) in getAccessRange()
327 return Offsets; in getAccessRange()
537 ConstantRange Offsets = offsetFrom(UI, Ptr); in analyzeAllUses() local
539 US.Calls.emplace(CallInfo<GlobalValue>(Callee, ArgNo), Offsets); in analyzeAllUses()
541 Insert.first->second = Insert.first->second.unionWith(Offsets); in analyzeAllUses()
618 const ConstantRange &Offsets) cons
[all...]
/freebsd/contrib/llvm-project/llvm/include/llvm/Remarks/
H A DRemarkParser.h65 std::vector<size_t> Offsets; member
75 size_t size() const { return Offsets.size(); } in size()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DLowerTypeTests.h62 SmallVector<uint64_t, 16> Offsets; member
74 Offsets.push_back(Offset); in addOffset()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonFrameLowering.h96 static const SpillSlot Offsets[] = { in getCalleeSavedSpillSlots() local
104 NumEntries = std::size(Offsets); in getCalleeSavedSpillSlots()
105 return Offsets; in getCalleeSavedSpillSlots()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprConstant.cpp88 llvm::SmallVector<CharUnits, 32> Offsets; member in __anon9d6f04f10111::ConstantAggregateBuilder
104 ArrayRef<CharUnits> Offsets,
133 return buildFrom(CGM, Elems, Offsets, CharUnits::Zero(), Size, in build()
155 Offsets.push_back(Size); in add()
158 Offsets.push_back(Offset); in add()
177 replace(Offsets, *FirstElemToReplace, *LastElemToReplace, {Offset}); in add()
292 return Offsets.size(); in splitAt()
295 auto FirstAfterPos = llvm::upper_bound(Offsets, Pos); in splitAt()
296 if (FirstAfterPos == Offsets.begin()) in splitAt()
300 size_t LastAtOrBeforePosIndex = FirstAfterPos - Offsets.begin() - 1; in splitAt()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DDWARFEmitter.cpp681 4 + Table.Offsets.size() * (Table.Format == dwarf::DWARF64 ? 8 : 4); in emitDebugStrOffsets()
687 for (uint64_t Offset : Table.Offsets) in emitDebugStrOffsets()
1123 std::vector<uint64_t> Offsets; in writeDWARFLists() local
1126 Offsets.push_back(ListBufferOS.tell()); in writeDWARFLists()
1149 OffsetEntryCount = Table.Offsets ? Table.Offsets->size() : Offsets.size(); in writeDWARFLists()
1165 auto EmitOffsets = [&](ArrayRef<uint64_t> Offsets, uint64_t OffsetsSize) { in writeDWARFLists() argument
1166 for (uint64_t Offset : Offsets) in writeDWARFLists()
1171 if (Table.Offsets) in writeDWARFLists()
1172 EmitOffsets(ArrayRef<uint64_t>((const uint64_t *)Table.Offsets->data(), in writeDWARFLists()
1173 Table.Offsets->size()), in writeDWARFLists()
[all …]
H A DDXContainerEmitter.cpp100 SmallVector<uint32_t> Offsets(ObjectFile.Header.PartOffsets->begin(), in writeHeader() local
103 for (auto &O : Offsets) in writeHeader()
105 OS.write(reinterpret_cast<char *>(Offsets.data()), in writeHeader()
106 Offsets.size() * sizeof(uint32_t)); in writeHeader()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp4394 auto &Offsets = SplitOffsetsMap[I]; in presplitLoadsAndStores() local
4395 assert(Offsets.Splits.empty() && in presplitLoadsAndStores()
4397 Offsets.S = &S; in presplitLoadsAndStores()
4398 Offsets.Splits.push_back(P.endOffset() - S.beginOffset()); in presplitLoadsAndStores()
4408 auto &Offsets = SplitOffsetsMapI->second; in presplitLoadsAndStores() local
4410 assert(Offsets.S == S && "Found a mismatched slice!"); in presplitLoadsAndStores()
4411 assert(!Offsets.Splits.empty() && in presplitLoadsAndStores()
4413 assert(Offsets.Splits.back() == in presplitLoadsAndStores()
4414 P.beginOffset() - Offsets.S->beginOffset() && in presplitLoadsAndStores()
4420 Offsets.Splits.push_back(P.endOffset() - Offsets.S->beginOffset()); in presplitLoadsAndStores()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCallLowering.cpp291 SmallVectorImpl<uint64_t> *Offsets) const { in splitToValueTypes()
295 ComputeValueVTs(*TLI, DL, OrigArg.Ty, SplitVTs, Offsets, 0); in splitToValueTypes()
998 SmallVector<uint64_t, 4> Offsets; in insertSRetLoads() local
999 ComputeValueVTs(*TLI, DL, RetTy, SplitVTs, &Offsets, 0); in insertSRetLoads()
1013 MIRBuilder.materializePtrAdd(Addr, DemoteReg, OffsetLLTy, Offsets[I]); in insertSRetLoads()
1016 commonAlignment(BaseAlign, Offsets[I])); in insertSRetLoads()
1029 SmallVector<uint64_t, 4> Offsets; in insertSRetStores() local
1030 ComputeValueVTs(*TLI, DL, RetTy, SplitVTs, &Offsets, 0); in insertSRetStores()
1043 MIRBuilder.materializePtrAdd(Addr, DemoteReg, OffsetLLTy, Offsets[I]); in insertSRetStores()
1046 commonAlignment(BaseAlign, Offsets[I])); in insertSRetStores()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDbgEntityHistoryCalculator.cpp139 SmallVector<size_t, 4> Offsets; in trimLocationRanges() local
238 Offsets.assign(HistoryMapEntries.size(), 0); in trimLocationRanges()
248 Offsets[EntryIdx] = CurOffset; in trimLocationRanges()
255 Entry.EndIndex -= Offsets[Entry.EndIndex]; in trimLocationRanges()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DScheduleDAGSDNodes.cpp228 SmallVector<int64_t, 4> Offsets; in ClusterNeighboringLoads() local
256 Offsets.push_back(Offset1); in ClusterNeighboringLoads()
258 Offsets.push_back(Offset2); in ClusterNeighboringLoads()
270 llvm::sort(Offsets); in ClusterNeighboringLoads()
275 int64_t BaseOff = Offsets[0]; in ClusterNeighboringLoads()
278 for (unsigned i = 1, e = Offsets.size(); i != e; ++i) { in ClusterNeighboringLoads()
279 int64_t Offset = Offsets[i]; in ClusterNeighboringLoads()
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DArchive.cpp1023 const char *Offsets = Buf; in getMember() local
1026 Offsets += sizeof(uint64_t); in getMember()
1028 Offsets += sizeof(uint32_t); in getMember()
1031 Offset = read32be(Offsets + SymbolIndex * 4); in getMember()
1033 Offset = read64be(Offsets + SymbolIndex * 8); in getMember()
1041 Offset = read32le(Offsets + SymbolIndex * 8 + 4); in getMember()
1049 Offset = read64le(Offsets + SymbolIndex * 16 + 8); in getMember()
1080 Offset = read32le(Offsets + OffsetIndex * 4); in getMember()

1234