| /llvm-project-15.0.7/flang/include/flang/Evaluate/ |
| H A D | initial-image.h | 47 auto elementBytes{ToInt64(x.GetType().MeasureSizeInBytes(context, true))}; in Add() 48 if (!elementBytes || in Add() 50 x.values().size() * static_cast<std::size_t>(*elementBytes)) { in Add() 69 auto elementBytes{bytes > 0 ? bytes / elements : 0}; in Add() 70 if (elements * elementBytes != bytes) { in Add() 80 if (scalarBytes < elementBytes || in Add() 81 (scalarBytes > elementBytes && elements != 0)) { in Add() 85 std::memcpy(&data_.at(offset), scalar.data(), elementBytes); in Add() 86 offset += elementBytes; in Add()
|
| /llvm-project-15.0.7/flang/runtime/ |
| H A D | descriptor-io.h | 337 std::size_t elementBytes{descriptor.ElementBytes()}; in UnformattedDescriptorIO() 344 std::size_t elementBytes) -> bool { in UnformattedDescriptorIO() 346 return externalUnf ? externalUnf->Emit(&x, totalBytes, elementBytes) in UnformattedDescriptorIO() 347 : childUnf ? childUnf->Emit(&x, totalBytes, elementBytes) in UnformattedDescriptorIO() 348 : inq->Emit(&x, totalBytes, elementBytes); in UnformattedDescriptorIO() 350 return externalUnf ? externalUnf->Receive(&x, totalBytes, elementBytes) in UnformattedDescriptorIO() 351 : childUnf->Receive(&x, totalBytes, elementBytes); in UnformattedDescriptorIO() 356 return Transfer(x, numElements * elementBytes, elementBytes); in UnformattedDescriptorIO() 360 if (!Transfer(x, elementBytes, elementBytes)) { in UnformattedDescriptorIO()
|
| H A D | descriptor.cpp | 28 void Descriptor::Establish(TypeCode t, std::size_t elementBytes, void *p, in Establish() argument 39 std::size_t workaroundElemLen{elementBytes ? elementBytes : 4}; in Establish() 46 if (elementBytes == 0) { in Establish() 84 OwningPtr<Descriptor> Descriptor::Create(TypeCode t, std::size_t elementBytes, in Create() argument 91 result->Establish(t, elementBytes, p, rank, extent, attribute, true); in Create()
|
| H A D | assign.cpp | 156 std::size_t elementBytes{to.ElementBytes()}; in Assign() local 157 if (elementBytes != from.ElementBytes()) { in Assign() 160 elementBytes, from.ElementBytes()); in Assign() 266 to.raw().base_addr, from.raw().base_addr, toElements * elementBytes); in Assign() 271 elementBytes); in Assign()
|
| H A D | unit.cpp | 267 char *data, std::size_t bytes, std::size_t elementBytes) { in SwapEndianness() argument 268 if (elementBytes > 1) { in SwapEndianness() 269 auto half{elementBytes >> 1}; in SwapEndianness() 270 for (std::size_t j{0}; j + elementBytes <= bytes; j += elementBytes) { in SwapEndianness() 272 std::swap(data[j + k], data[j + elementBytes - 1 - k]); in SwapEndianness() 279 std::size_t elementBytes, IoErrorHandler &handler) { in Emit() argument 330 SwapEndianness(to, bytes, elementBytes); in Emit() 338 std::size_t elementBytes, IoErrorHandler &handler) { in Receive() argument 354 SwapEndianness(data, bytes, elementBytes); in Receive()
|
| H A D | io-stmt.h | 90 bool Emit(const char *, std::size_t, std::size_t elementBytes); 95 bool Receive(char *, std::size_t, std::size_t elementBytes = 0); 258 bool Emit(const char *, std::size_t, std::size_t elementBytes); 262 bool Receive(char *, std::size_t, std::size_t elementBytes = 0); 434 bool Emit(const char *, std::size_t, std::size_t elementBytes); 486 bool Receive(char *, std::size_t, std::size_t elementBytes = 0); 501 bool Emit(const char *, std::size_t, std::size_t elementBytes); 547 bool Receive(char *, std::size_t, std::size_t elementBytes = 0); 699 bool Emit(const char *, std::size_t, std::size_t elementBytes);
|
| H A D | misc-intrinsic.cpp | 22 std::size_t elementBytes{mold.ElementBytes()}; in TransferImpl() local 23 result.Establish(mold.type(), elementBytes, nullptr, rank, nullptr, in TransferImpl()
|
| H A D | io-stmt.cpp | 350 const char *data, std::size_t bytes, std::size_t elementBytes) { in Emit() argument 354 return unit().Emit(data, bytes, elementBytes, *this); in Emit() 468 const char *data, std::size_t n, std::size_t elementBytes) { in Emit() argument 470 [=](auto &x) { return x.get().Emit(data, n, elementBytes); }, u_); in Emit() 510 char *data, std::size_t n, std::size_t elementBytes) { in Receive() argument 886 char *data, std::size_t bytes, std::size_t elementBytes) { in Receive() argument 891 return this->unit().Receive(data, bytes, elementBytes, *this); in Receive() 927 const char *data, std::size_t bytes, std::size_t elementBytes) { in Emit() argument 928 return child_.parent().Emit(data, bytes, elementBytes); in Emit() 990 char *data, std::size_t bytes, std::size_t elementBytes) { in Receive() argument [all …]
|
| H A D | unit.h | 85 const char *, std::size_t, std::size_t elementBytes, IoErrorHandler &); 86 bool Receive(char *, std::size_t, std::size_t elementBytes, IoErrorHandler &);
|
| H A D | transformational.cpp | 420 std::size_t elementBytes{source.ElementBytes()}; in RTNAME() local 429 if (pad->ElementBytes() != elementBytes) { in RTNAME() 432 pad->ElementBytes(), elementBytes); in RTNAME()
|
| H A D | io-api.cpp | 1079 std::size_t length, std::size_t elementBytes) { in IONAME() 1083 return unf->Emit(x, length, elementBytes); in IONAME() 1085 return inq->Emit(x, length, elementBytes); in IONAME() 1094 Cookie cookie, char *x, std::size_t length, std::size_t elementBytes) { in IONAME() 1103 return unf->Receive(x, length, elementBytes); in IONAME()
|
| H A D | character.cpp | 160 std::size_t elementBytes{string.ElementBytes()}; in AdjustLRHelper() local 161 result.Establish(string.type(), elementBytes, nullptr, rank, ub, in AdjustLRHelper() 170 resultAt += elementBytes, string.IncrementSubscripts(stringAt)) { in AdjustLRHelper() 172 string.Element<const CHAR>(stringAt), elementBytes >> shift<CHAR>); in AdjustLRHelper()
|
| /llvm-project-15.0.7/flang/lib/Evaluate/ |
| H A D | fold-designator.cpp | 211 auto elementBytes{ToInt64(elementType.MeasureSizeInBytes(context, true))}; in OffsetToArrayRef() local 212 if (!extents || !lower || !elementBytes || *elementBytes <= 0) { in OffsetToArrayRef() 218 auto element{offset / static_cast<std::size_t>(*elementBytes)}; in OffsetToArrayRef() 233 offset -= element * static_cast<std::size_t>(*elementBytes); in OffsetToArrayRef() 311 if (auto elementBytes{ in OffsetToDesignator() local 314 if (size * 2 > static_cast<std::size_t>(*elementBytes)) { in OffsetToDesignator() 316 } else if (offset == 0 || offset * 2 == *elementBytes) { in OffsetToDesignator() 330 if (offset > 0 || size != static_cast<std::size_t>(*elementBytes)) { in OffsetToDesignator()
|
| H A D | initial-image.cpp | 22 auto elementBytes{bytes > 0 ? bytes / elements : 0}; in Add() local 23 if (elements * elementBytes != bytes) { in Add() 32 if (component.offset() + component.size() > elementBytes) { in Add() 44 offset += elementBytes; in Add()
|
| H A D | constant.cpp | 296 std::size_t elementBytes{length_ * sizeof(decltype(values_[0]))}; in CopyFrom() local 302 std::memcpy(dest, src, elementBytes); in CopyFrom()
|
| H A D | characteristics.cpp | 176 if (auto elementBytes{type_.MeasureSizeInBytes(foldingContext, align)}) { in MeasureElementSizeInBytes() local 177 return Fold(foldingContext, std::move(*elementBytes)); in MeasureElementSizeInBytes() 187 if (auto elementBytes{ in MeasureSizeInBytes() local 190 foldingContext, std::move(*elements) * std::move(*elementBytes)); in MeasureSizeInBytes()
|
| /llvm-project-15.0.7/flang/include/flang/Runtime/ |
| H A D | io-api.h | 242 Cookie, const char *, std::size_t, std::size_t elementBytes); 244 Cookie, char *, std::size_t, std::size_t elementBytes);
|
| H A D | descriptor.h | 152 void Establish(TypeCode t, std::size_t elementBytes, void *p = nullptr, 168 static OwningPtr<Descriptor> Create(TypeCode t, std::size_t elementBytes,
|