[llvm] [SPIRV] Add reads from image buffer for shaders. (PR #115178)
Nathan Gauër via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 8 04:31:37 PST 2024
================
@@ -388,6 +391,12 @@ class SPIRVGlobalRegistry {
unsigned getScalarOrVectorComponentCount(Register VReg) const;
unsigned getScalarOrVectorComponentCount(SPIRVType *Type) const;
+ // Return the component type in a vector if the argument is associated with
+ // a vector type. Returns the argument itself for a scalar type, and nullptr
+ // for a missing type.
+ SPIRVType *getScalarOrVectorComponentType(Register VReg) const;
+ SPIRVType *getScalarOrVectorComponentType(SPIRVType *Type) const;
----------------
Keenuts wrote:
What shall those return for `OpTypeArray`? The array? the element type? assert?
https://github.com/llvm/llvm-project/pull/115178
More information about the llvm-commits
mailing list