tqchen commented on code in PR #19873:
URL: https://github.com/apache/tvm/pull/19873#discussion_r3499267473


##########
src/target/llvm/codegen_llvm.cc:
##########
@@ -109,6 +109,16 @@ PrimType WithScalableVScaleFactor(const PrimType& dtype, 
int vscale_factor) {
   return PrimType::ScalableVector(dtype.code(), dtype.bits(), vscale_factor);
 }
 
+// Bool tensors are backed by int8 so vectorized accesses lower to real 
loads/stores
+// (ld1b/st1b) instead of the i1 predicate registers that an i1 type would 
force.
+PrimType BoolStorageType(const PrimType& dtype) {

Review Comment:
   The name sounds it only works for Bool, instead, i think it is betetr to say 
BufferAccessType
   
   and comment as the underlying access type for Buffer



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to