IGEMM kernels add asserts for a, c, and w pointers.
PiperOrigin-RevId: 281378019
diff --git a/src/f32-igemm/MRx2c4-sse.c.in b/src/f32-igemm/MRx2c4-sse.c.in
index 9851646..93e9919 100644
--- a/src/f32-igemm/MRx2c4-sse.c.in
+++ b/src/f32-igemm/MRx2c4-sse.c.in
@@ -34,6 +34,9 @@
assert(ks != 0);
assert(ks % (${MR} * sizeof(void*)) == 0);
assert(a_offset % sizeof(float) == 0);
+ assert(a != NULL);
+ assert(w != NULL);
+ assert(c != NULL);
float* c0 = c;
$for M in range(1, MR):
@@ -64,6 +67,7 @@
do {
$for M in range(MR):
const float* restrict a${M} = a[${M}];
+ assert(a${M} != NULL);
if XNN_UNPREDICTABLE(a${M} != zero) {
a${M} = (const float*) ((uintptr_t) a${M} + a_offset);
}