Home
last modified time | relevance | path

Searched refs:ElementBytes (Results 1 – 25 of 28) sorted by relevance

12

/llvm-project-15.0.7/flang/runtime/
H A Dmisc-intrinsic.cpp22 std::size_t elementBytes{mold.ElementBytes()}; in TransferImpl()
36 std::size_t resultBytes{result.Elements() * result.ElementBytes()}; in TransferImpl()
37 const std::size_t sourceElementBytes{source.ElementBytes()}; in TransferImpl()
61 source.Elements() * source.ElementBytes()}) { in RTNAME()
62 if (std::size_t moldElementBytes{mold.ElementBytes()}) { in RTNAME()
H A Dtransformational.cpp93 std::size_t elementLen{result.ElementBytes()}; in DefaultInitialize()
119 std::size_t elementLen{source.ElementBytes()}; in AllocateResult()
221 if (boundary->ElementBytes() != elementLen) { in RTNAME()
224 boundary->ElementBytes(), elementLen); in RTNAME()
297 boundary->ElementBytes(), elementLen); in RTNAME()
342 if (source.ElementBytes() != vector->ElementBytes()) { in RTNAME()
345 source.ElementBytes(), vector->ElementBytes()); in RTNAME()
429 if (pad->ElementBytes() != elementBytes) { in RTNAME()
432 pad->ElementBytes(), elementBytes); in RTNAME()
562 if (vector.ElementBytes() != elementLen) { in RTNAME()
[all …]
H A Dcharacter.cpp160 std::size_t elementBytes{string.ElementBytes()}; in AdjustLRHelper()
592 std::size_t fromBytes{from.ElementBytes()}; in RTNAME()
619 std::size_t oldLen{accumulator.ElementBytes()}; in RTNAME()
633 std::size_t lhsBytes{lhs.ElementBytes()}; in RTNAME()
634 std::size_t rhsBytes{rhs.ElementBytes()}; in RTNAME()
776 y.OffsetElement<char>(), x.ElementBytes(), y.ElementBytes()); in RTNAME()
780 y.ElementBytes() >> 1); in RTNAME()
784 y.ElementBytes() >> 2); in RTNAME()
962 std::size_t origBytes{string.ElementBytes()}; in RTNAME()
985 string.ElementBytes() >> 1) in RTNAME()
[all …]
H A Dpointer.cpp77 std::size_t boundElementBytes{lowerBounds.ElementBytes()}; in RTNAME()
95 std::size_t boundElementBytes{bounds.ElementBytes()}; in RTNAME()
156 if (!target->raw().base_addr || target->ElementBytes() == 0) { in RTNAME()
161 pointer.ElementBytes() != target->ElementBytes() || in RTNAME()
H A Dcopy.cpp23 RUNTIME_CHECK(terminator, to.ElementBytes() == from.ElementBytes()); in CopyElement()
24 std::memcpy(toPtr, fromPtr, to.ElementBytes()); in CopyElement()
H A Dcommand.cpp64 if (offset < value.ElementBytes()) { in FillWithSpaces()
66 value.OffsetElement(offset), ' ', value.ElementBytes() - offset); in FillWithSpaces()
75 static_cast<std::int64_t>(value.ElementBytes() - offset))}; in CopyToDescriptor()
215 std::size_t s{d.ElementBytes() - 1}; in LengthWithoutTrailingSpaces()
225 trim_name ? LengthWithoutTrailingSpaces(name) : name.ElementBytes()}; in GetEnvVariableValue()
H A Dassign.cpp113 to.raw().elem_len = from.ElementBytes(); in Assign()
124 auto stride{static_cast<SubscriptValue>(to.ElementBytes())}; in Assign()
156 std::size_t elementBytes{to.ElementBytes()}; in Assign()
157 if (elementBytes != from.ElementBytes()) { in Assign()
160 elementBytes, from.ElementBytes()); in Assign()
H A Dtype-info.cpp110 auto byteStride{static_cast<SubscriptValue>(descriptor.ElementBytes())}; in EstablishDescriptor()
156 if (nameDesc.ElementBytes() == compNameLen && in FindDataComponent()
169 desc.ElementBytes() > 0 && desc.rank() == 0 && in DumpScalarCharacter()
171 std::fwrite(desc.OffsetElement(), desc.ElementBytes(), 1, f); in DumpScalarCharacter()
222 compDesc.ElementBytes() == sizeof(Component) && compDesc.rank() == 1) { in Dump()
H A Dderived.cpp21 std::size_t byteStride{instance.ElementBytes()}; in Initialize()
116 std::size_t byteStride{descriptor.ElementBytes()}; in CallFinalSubroutine()
166 std::size_t byteStride{descriptor.ElementBytes()}; in Finalize()
227 std::size_t byteStride{descriptor.ElementBytes()}; in Destroy()
H A Dstat.cpp74 std::size_t bufferLength{errmsg->ElementBytes()}; in ToErrmsg()
H A Ddescriptor.cpp131 std::size_t byteSize{Elements() * ElementBytes()}; in Allocate()
139 std::size_t stride{ElementBytes()}; in Allocate()
H A Dinternal-unit.cpp36 recordLength = d.ElementBytes(); in InternalDescriptorUnit()
H A Dextrema.cpp65 : array_{array}, argRank_{array.rank()}, compare_{array.ElementBytes()} { in ExtremumLocAccumulator()
256 result.OffsetElement(), 0, result.Elements() * result.ElementBytes()); in TypedPartialMaxOrMinLoc()
363 result.Establish(x.type(), x.ElementBytes(), nullptr, 0, nullptr, in DoMaxMinNorm2()
418 : array_{array}, charLen_{array_.ElementBytes() / KIND} {} in CharacterExtremumAccumulator()
H A Dfindloc.cpp70 array.ElementBytes() / static_cast<unsigned>(KIND), in operator ()()
71 target.ElementBytes() / static_cast<unsigned>(KIND)) == 0; in operator ()()
H A Dnamelist.cpp149 std::size_t contiguousStride{source.ElementBytes()}; in HandleSubscripts()
251 SubscriptValue chars{static_cast<SubscriptValue>(desc.ElementBytes()) / kind}; in HandleSubstring()
H A Ddescriptor-io.h165 std::size_t length{descriptor.ElementBytes() / sizeof(A)}; in FormattedCharacterIO()
337 std::size_t elementBytes{descriptor.ElementBytes()}; in UnformattedDescriptorIO()
H A Dtools.h45 for (std::size_t j{logical.ElementBytes()}; j-- > 0; ++p) { in IsLogicalElementTrue()
H A Dreduction-templates.h180 result.Establish(typeCode, x.ElementBytes(), nullptr, xRank - 1, resultExtent, in CreatePartialReductionResult()
H A Dmatmul.cpp180 terminator, result.ElementBytes() == static_cast<std::size_t>(RKIND)); in DoMatmul()
/llvm-project-15.0.7/flang/unittests/Runtime/
H A DCommandTest.cpp66 value->ElementBytes()), in CheckDescriptorEqStr()
70 << std::string{value->OffsetElement(), value->ElementBytes()}; in CheckDescriptorEqStr()
96 GetPaddedStr(expectedValue, value->ElementBytes())}; in CheckValue()
169 std::string spaces(value->ElementBytes(), ' '); in CheckMissingArgumentValue()
173 std::string paddedErrStr(GetPaddedStr(errStr, err->ElementBytes())); in CheckMissingArgumentValue()
189 std::string spaces(value->ElementBytes(), ' '); in CheckMissingCommandValue()
308 GetPaddedStr("Value too short", errMsg->ElementBytes())}; in TEST_F()
330 std::string spaces(value->ElementBytes(), ' '); in TEST_F()
371 GetPaddedStr("Value too short", errMsg->ElementBytes())}; in TEST_F()
386 value->ElementBytes())); in TEST_F()
[all …]
H A DCharacterTest.cpp252 std::size_t length = x->ElementBytes() / sizeof(CHAR); in RunExtremumTests()
255 x->OffsetElement<CHAR>(i * x->ElementBytes()), length}; in RunExtremumTests()
410 output.OffsetElement<CHAR>(), output.ElementBytes() / sizeof(CHAR)}; in RunRepeatTest()
H A DMatmul.cpp46 result.raw().base_addr, 0, result.Elements() * result.ElementBytes()); in TEST()
H A DNumericalFormatTest.cpp109 section.Establish(whole.type(), /*elementBytes=*/whole.ElementBytes(), in TEST()
/llvm-project-15.0.7/flang/unittests/Evaluate/
H A Dreshape.cpp15 MATCH(sizeof(std::int32_t), source->ElementBytes()); in main()
73 MATCH(sizeof(std::int32_t), result->ElementBytes()); in main()
/llvm-project-15.0.7/flang/include/flang/Runtime/
H A Ddescriptor.h187 std::size_t ElementBytes() const { return raw_.elem_len; } in ElementBytes() function
353 auto bytes{static_cast<SubscriptValue>(ElementBytes())};

12