Han-Chung Wang a8198bdd91
[mlir][SPIRV][NFC] Refactor getElementTypeForStoragePointer for load/store lowering. (#183459)
The revision refactors the repeated logic for extracting the storage
element type from a SPIR-V pointer type into a shared helper function.
This pattern was duplicated in AtomicRMWOpPattern, LoadOpPattern, and
StoreOpPattern.

The helper handles both Kernel capability (direct array/scalar) and
Vulkan (struct-wrapped array/runtime array) cases.

It is a follow-up for
f80205becd

Signed-off-by: hanhanW <hanhan0912@gmail.com>
2026-02-26 07:04:36 -08:00
..