| /freebsd-src/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | MVEGatherScatterLowering.cpp | 86 // Decompose a ptr into Base and Offsets, potentially using a GEP to return a 89 Value *decomposePtr(Value *Ptr, Value *&Offsets, int &Scale, 93 // returning the base directly and the offsets indirectly using the Offsets 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 186 // Offsets that are not of type <N x i32> are sign extended by the in checkOffsetSize() 197 unsigned OffsetElemSize = cast<FixedVectorType>(Offsets in checkOffsetSize() 227 decomposePtr(Value * Ptr,Value * & Offsets,int & Scale,FixedVectorType * Ty,Type * MemoryTy,IRBuilder<> & Builder) decomposePtr() argument 254 decomposeGEP(Value * & Offsets,FixedVectorType * Ty,GetElementPtrInst * GEP,IRBuilder<> & Builder) decomposeGEP() argument 548 Value *Offsets; tryCreateMaskedGatherOffset() local 701 Value *Offsets; tryCreateMaskedScatterOffset() local 745 Value *Offsets; tryCreateIncrementingGatScat() local 802 tryCreateIncrementingWBGatScat(IntrinsicInst * I,Value * BasePtr,Value * Offsets,unsigned TypeScale,IRBuilder<> & Builder) tryCreateIncrementingWBGatScat() argument 966 optimiseOffsets(Value * Offsets,BasicBlock * BB,LoopInfo * LI) optimiseOffsets() argument 1183 foldGEP(GetElementPtrInst * GEP,Value * & Offsets,unsigned & Scale,IRBuilder<> & Builder) foldGEP() argument 1218 Value *Offsets; optimiseAddress() local [all...] |
| /freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | Analysis.cpp | 76 /// If Offsets is non-null, it points to a vector to be filled in 82 SmallVectorImpl<TypeSize> *Offsets, in ComputeValueVTs() argument 89 // If the Offsets aren't needed, don't query the struct layout. This allows in ComputeValueVTs() 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) 122 Offsets->push_back(StartingOffset); in ComputeValueVTs() 132 SmallVector<TypeSize, 4> Offsets; in ComputeValueVTs() argument 133 ComputeValueVTs(TLI, DL, Ty, ValueVTs, MemVTs, &Offsets, Offse in ComputeValueVTs() 124 ComputeValueVTs(const TargetLowering & TLI,const DataLayout & DL,Type * Ty,SmallVectorImpl<EVT> & ValueVTs,SmallVectorImpl<TypeSize> * Offsets,TypeSize StartingOffset) ComputeValueVTs() argument 144 SmallVector<TypeSize, 4> Offsets; ComputeValueVTs() local 156 ComputeValueVTs(const TargetLowering & TLI,const DataLayout & DL,Type * Ty,SmallVectorImpl<EVT> & ValueVTs,SmallVectorImpl<EVT> * MemVTs,SmallVectorImpl<TypeSize> * Offsets,uint64_t StartingOffset) ComputeValueVTs() argument 169 SmallVector<TypeSize, 4> Offsets; ComputeValueVTs() local 180 computeValueLLTs(const DataLayout & DL,Type & Ty,SmallVectorImpl<LLT> & ValueTys,SmallVectorImpl<uint64_t> * Offsets,uint64_t StartingOffset) computeValueLLTs() argument [all...] |
| /freebsd-src/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | Analysis.h | 62 /// If Offsets is non-null, it points to a vector to be filled in 68 SmallVectorImpl<TypeSize> *Offsets = nullptr, 79 SmallVectorImpl<TypeSize> *Offsets = nullptr, 81 ComputeValueVTs(TLI, DL, Ty, ValueVTs, nullptr, Offsets, StartingOffset); 94 /// If Offsets is non-null, it points to a vector to be filled in 99 SmallVectorImpl<uint64_t> *Offsets = nullptr,
|
| /freebsd-src/contrib/llvm-project/llvm/lib/Remarks/ |
| H A D | RemarkParser.cpp | 31 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-src/contrib/llvm-project/clang/tools/clang-format/ |
| H A D | ClangFormat.cpp | 40 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[ in fillRanges() [all...] |
| /freebsd-src/contrib/llvm-project/llvm/lib/Target/DirectX/ |
| H A D | CBufferDataLayout.cpp | 26 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-src/contrib/llvm-project/llvm/lib/Support/ |
| H A D | SourceMgr.cpp | 90 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[LineN in getPointerForLineNumberSpecialized() [all...] |
| H A D | Signals.cpp | 128 const char **Modules, intptr_t *Offsets, 177 std::vector<intptr_t> Offsets(Depth, 0); in printSymbolizedStackTrace() local 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()
|
| H A D | IntervalMap.cpp | 19 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-src/contrib/llvm-project/llvm/lib/Target/VE/ |
| H A D | VEFrameLowering.h | 59 static const SpillSlot Offsets[] = { in getCalleeSavedSpillSlots() local 65 NumEntries = std::size(Offsets); in getCalleeSavedSpillSlots() 66 return Offsets; in getCalleeSavedSpillSlots()
|
| /freebsd-src/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/ |
| H A D | R600MCCodeEmitter.cpp | 114 int64_t Offsets[3] = {MI.getOperand(6).getImm() & 0x1F, in encodeInstruction() 121 SrcSelect[ELEMENT_W] << 29 | Offsets[0] << 0 | in encodeInstruction() 122 Offsets[1] << 5 | Offsets[2] << 10; in encodeInstruction() 116 int64_t Offsets[3] = { encodeInstruction() local
|
| /freebsd-src/contrib/llvm-project/llvm/include/llvm/Remarks/ |
| H A D | RemarkParser.h | 65 std::vector<size_t> Offsets; member 75 size_t size() const { return Offsets.size(); } in size()
|
| /freebsd-src/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | StackSafetyAnalysis.cpp | 320 ConstantRange Offsets = offsetFrom(Addr, Base); in getMemIntrinsicAccessRange() 321 if (isUnsafe(Offsets)) in getMemIntrinsicAccessRange() 324 Offsets = addOverflowNever(Offsets, SizeRange); in getMemIntrinsicAccessRange() 325 if (isUnsafe(Offsets)) in getMemIntrinsicAccessRange() 327 return Offsets; in getMemIntrinsicAccessRange() 537 ConstantRange Offsets = offsetFrom(UI, Ptr); in run() 539 US.Calls.emplace(CallInfo<GlobalValue>(Callee, ArgNo), Offsets); in run() 541 Insert.first->second = Insert.first->second.unionWith(Offsets); in run() 618 const ConstantRange &Offsets) cons in getArgumentAccessRange() 296 ConstantRange Offsets = offsetFrom(Addr, Base); getAccessRange() local 515 ConstantRange Offsets = offsetFrom(UI, Ptr); analyzeAllUses() local [all...] |
| /freebsd-src/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
| H A D | LowerTypeTests.h | 62 SmallVector<uint64_t, 16> Offsets; member 74 Offsets.push_back(Offset); in addOffset()
|
| /freebsd-src/contrib/llvm-project/llvm/lib/ObjectYAML/ |
| H A D | DWARFEmitter.cpp | 681 4 + Table.Offsets.size() * (Table.Format == dwarf::DWARF64 ? 8 : 4); in emitDebugStrOffsets() 687 for (uint64_t Offset : Table.Offsets) in emitDebugStrOffsets() 1120 // Offsets holds offsets for each range/location list. The i-th element is 1123 std::vector<uint64_t> Offsets; 1126 Offsets.push_back(ListBufferOS.tell()); 1142 // from the 'Offsets' field in the YAML description. If the 'Offsets' field 1149 OffsetEntryCount = Table.Offsets ? Table.Offsets->size() : Offsets 935 std::vector<uint64_t> Offsets; writeDWARFLists() local 977 __anonaa7caf890702(ArrayRef<uint64_t> Offsets, uint64_t OffsetsSize) writeDWARFLists() argument [all...] |
| H A D | DXContainerEmitter.cpp | 100 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-src/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGExprConstant.cpp | 80 /// Offsets[i] describes the offset of Elems[i] within the constant. The 82 /// is no overlap: Offsets[i+1] >= Offsets[i] + getSize(Elemes[i]). 88 llvm::SmallVector<CharUnits, 32> Offsets; 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() 286 /// Returns a position within Elems and Offsets suc 87 llvm::SmallVector<CharUnits, 32> Offsets; global() member in __anon4e2986830111::ConstantAggregateBuilder 402 buildFrom(CodeGenModule & CGM,ArrayRef<llvm::Constant * > Elems,ArrayRef<CharUnits> Offsets,CharUnits StartOffset,CharUnits Size,bool NaturalLayout,llvm::Type * DesiredTy,bool AllowOversized) buildFrom() argument [all...] |
| /freebsd-src/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonFrameLowering.h | 96 static const SpillSlot Offsets[] = { in getCalleeSavedSpillSlots() 104 NumEntries = std::size(Offsets); 105 return Offsets; 92 static const SpillSlot Offsets[] = { getCalleeSavedSpillSlots() local
|
| /freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | CallLowering.cpp | 291 SmallVectorImpl<uint64_t> *Offsets) const { in splitToValueTypes() 295 ComputeValueVTs(*TLI, DL, OrigArg.Ty, SplitVTs, Offsets, 0); 998 SmallVector<uint64_t, 4> Offsets; in getReturnInfo() 999 ComputeValueVTs(*TLI, DL, RetTy, SplitVTs, &Offsets, 0); in getReturnInfo() 1013 MIRBuilder.materializePtrAdd(Addr, DemoteReg, OffsetLLTy, Offsets[I]); 1016 commonAlignment(BaseAlign, Offsets[I])); in checkReturnTypeForCallConv() 1029 SmallVector<uint64_t, 4> Offsets; in parametersInCSRMatch() 1030 ComputeValueVTs(*TLI, DL, RetTy, SplitVTs, &Offsets, 0); in parametersInCSRMatch() 1043 MIRBuilder.materializePtrAdd(Addr, DemoteReg, OffsetLLTy, Offsets[I]); in parametersInCSRMatch() 1046 commonAlignment(BaseAlign, Offsets[ in parametersInCSRMatch() 883 SmallVector<uint64_t, 4> Offsets; insertSRetLoads() local 914 SmallVector<uint64_t, 4> Offsets; insertSRetStores() local [all...] |
| H A D | IRTranslator.cpp | 196 auto *Offsets = VMap.getOffsets(Val); in allocateVRegs() 199 Offsets->empty() ? Offsets : nullptr); in allocateVRegs() 215 auto *Offsets = VMap.getOffsets(Val); in getOrCreateVRegs() 223 Offsets->empty() ? Offsets : nullptr); in getOrCreateVRegs() 1369 ArrayRef<uint64_t> Offsets = *VMap.getOffsets(LI); in translateLoad() 1398 MIRBuilder.materializePtrAdd(Addr, Base, OffsetTy, Offsets[i] / 8); in translateLoad() 1400 MachinePointerInfo Ptr(LI.getPointerOperand(), Offsets[i] / 8); in translateLoad() 1404 commonAlignment(BaseAlign, Offsets[ in translateLoad() 195 auto *Offsets = VMap.getOffsets(Val); allocateVRegs() local 214 auto *Offsets = VMap.getOffsets(Val); getOrCreateVRegs() local 1372 ArrayRef<uint64_t> Offsets = *VMap.getOffsets(LI); translateLoad() local 1422 ArrayRef<uint64_t> Offsets = *VMap.getOffsets(*SI.getValueOperand()); translateStore() local 1484 ArrayRef<uint64_t> Offsets = *VMap.getOffsets(*Src); translateExtractValue() local [all...] |
| /freebsd-src/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | SROA.cpp | 4394 auto &Offsets = SplitOffsetsMap[I]; in presplitLoadsAndStores() 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() 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 in presplitLoadsAndStores() 4353 auto &Offsets = SplitOffsetsMap[I]; presplitLoadsAndStores() local 4367 auto &Offsets = SplitOffsetsMapI->second; presplitLoadsAndStores() local 4465 auto &Offsets = SplitOffsetsMap[LI]; presplitLoadsAndStores() local 4594 auto &Offsets = SplitOffsetsMap[SI]; presplitLoadsAndStores() local [all...] |
| /freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | DbgEntityHistoryCalculator.cpp | 139 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-src/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | ScheduleDAGSDNodes.cpp | 228 SmallVector<int64_t, 4> Offsets; in ClusterNeighboringLoads() 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() 227 SmallVector<int64_t, 4> Offsets; ClusterNeighboringLoads() local
|
| /freebsd-src/contrib/llvm-project/llvm/lib/Object/ |
| H A D | Archive.cpp | 1023 const char *Offsets = Buf; in getMember() 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() 1036 // Offsets (the first uint32_t is the number of bytes of the ranlib in getMember() 1041 Offset = read32le(Offsets + SymbolIndex * 8 + 4); in getMember() 1044 // Offsets (the first uint64_t is the number of bytes of the ranlib_64 in getMember() 1049 Offset = read64le(Offsets + SymbolIndex * 16 + 8); in getMember() 1080 Offset = read32le(Offsets in getMember() 1016 const char *Offsets = Buf; getMember() local [all...] |
| /freebsd-src/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXISelLowering.cpp | 170 SmallVectorImpl<uint64_t> *Offsets = nullptr, in ComputePTXValueVTs() 180 if (Offsets) { in ComputePTXValueVTs() 181 Offsets->push_back(StartingOffset + 0); in ComputePTXValueVTs() 182 Offsets->push_back(StartingOffset + 8); in ComputePTXValueVTs() 193 ComputePTXValueVTs(TLI, DL, EI, ValueVTs, Offsets, in ComputePTXValueVTs() 239 if (Offsets) in ComputePTXValueVTs() 240 Offsets->push_back(Off + j * EltVT.getStoreSize()); in ComputePTXValueVTs() 244 if (Offsets) 245 Offsets->push_back(Off); 296 const SmallVectorImpl<uint64_t> &Offsets, Alig in CanMergeParamLoadStoresStartingAt() 168 ComputePTXValueVTs(const TargetLowering & TLI,const DataLayout & DL,Type * Ty,SmallVectorImpl<EVT> & ValueVTs,SmallVectorImpl<uint64_t> * Offsets=nullptr,uint64_t StartingOffset=0) ComputePTXValueVTs() argument 290 CanMergeParamLoadStoresStartingAt(unsigned Idx,uint32_t AccessSize,const SmallVectorImpl<EVT> & ValueVTs,const SmallVectorImpl<uint64_t> & Offsets,Align ParamAlignment) CanMergeParamLoadStoresStartingAt() argument 352 VectorizePTXValueVTs(const SmallVectorImpl<EVT> & ValueVTs,const SmallVectorImpl<uint64_t> & Offsets,Align ParamAlignment,bool IsVAArg=false) VectorizePTXValueVTs() argument 1778 SmallVector<uint64_t, 16> Offsets; LowerCall() local 2105 SmallVector<uint64_t, 16> Offsets; LowerCall() local 3120 SmallVector<uint64_t, 16> Offsets; LowerFormalArguments() local 3242 SmallVector<uint64_t, 16> Offsets; LowerReturn() local [all...] |