File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,14 @@ inline namespace _V1 {
2424
2525namespace detail {
2626
27+ // The argument can take up more space to store additional information about
28+ // MAccessRange, MMemoryRange, and MOffset added with addArgsForGlobalAccessor.
29+ // We use the worst-case estimate because the lifetime of the vector is short.
30+ // In processArg the kind_stream case introduces the maximum number of
31+ // additional arguments. The case adds additional 12 arguments to the currently
32+ // processed argument, hence worst-case estimate is 12+1=13.
33+ // TODO: the constant can be removed if the size of MArgs will be calculated at
34+ // compile time.
2735inline constexpr size_t MaxNumAdditionalArgs = 13 ;
2836constexpr static int AccessTargetMask = 0x7ff ;
2937
You can’t perform that action at this time.
0 commit comments