Home
last modified time | relevance | path

Searched refs:maxval_width (Results 1 – 3 of 3) sorted by relevance

/third_party/spirv-tools/source/opt/
Dgraphics_robust_access_pass.cpp319 uint32_t maxval_width = index_width; in ClampIndicesForAccessChain() local
320 while ((maxval_width < 64) && (0 != (maxval >> maxval_width))) { in ClampIndicesForAccessChain()
321 maxval_width *= 2; in ClampIndicesForAccessChain()
325 analysis::Integer signed_type_for_query(maxval_width, true); in ClampIndicesForAccessChain()
333 maxval = std::min(maxval, ((uint64_t(1) << (maxval_width - 1)) - 1)); in ClampIndicesForAccessChain()
381 if (maxval_width > index_width) { in ClampIndicesForAccessChain()
387 assert(have_int64_cap || maxval_width <= 32); in ClampIndicesForAccessChain()
388 if (!have_int64_cap && maxval_width >= 64) { in ClampIndicesForAccessChain()
395 index_inst = WidenInteger(index_type->IsSigned(), maxval_width, in ClampIndicesForAccessChain()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dgraphics_robust_access_pass.cpp319 uint32_t maxval_width = index_width; in ClampIndicesForAccessChain() local
320 while ((maxval_width < 64) && (0 != (maxval >> maxval_width))) { in ClampIndicesForAccessChain()
321 maxval_width *= 2; in ClampIndicesForAccessChain()
325 analysis::Integer signed_type_for_query(maxval_width, true); in ClampIndicesForAccessChain()
333 maxval = std::min(maxval, ((uint64_t(1) << (maxval_width - 1)) - 1)); in ClampIndicesForAccessChain()
381 if (maxval_width > index_width) { in ClampIndicesForAccessChain()
387 assert(have_int64_cap || maxval_width <= 32); in ClampIndicesForAccessChain()
388 if (!have_int64_cap && maxval_width >= 64) { in ClampIndicesForAccessChain()
395 index_inst = WidenInteger(index_type->IsSigned(), maxval_width, in ClampIndicesForAccessChain()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dgraphics_robust_access_pass.cpp319 uint32_t maxval_width = index_width; in ClampIndicesForAccessChain() local
320 while ((maxval_width < 64) && (0 != (maxval >> maxval_width))) { in ClampIndicesForAccessChain()
321 maxval_width *= 2; in ClampIndicesForAccessChain()
325 analysis::Integer signed_type_for_query(maxval_width, true); in ClampIndicesForAccessChain()
333 maxval = std::min(maxval, ((uint64_t(1) << (maxval_width - 1)) - 1)); in ClampIndicesForAccessChain()
381 if (maxval_width > index_width) { in ClampIndicesForAccessChain()
387 assert(have_int64_cap || maxval_width <= 32); in ClampIndicesForAccessChain()
388 if (!have_int64_cap && maxval_width >= 64) { in ClampIndicesForAccessChain()
395 index_inst = WidenInteger(index_type->IsSigned(), maxval_width, in ClampIndicesForAccessChain()