@@ -20,7 +20,8 @@ uint64_t GB_encodify_masker // encode a masker problem
2020 char * * suffix , // suffix for user-defined kernel
2121 // input:
2222 const GB_jit_kcode kcode , // kernel to encode
23- const GrB_Matrix R , // may be NULL, for phase1
23+ const int R_sparsity , // any sparsity format
24+ const GrB_Type rtype ,
2425 const bool Rp_is_32 , // if true, R->p is 32 bit; else 64 bit
2526 const bool Rj_is_32 , // if true, R->h is 32 bit; else 64 bit
2627 const bool Ri_is_32 , // if true, R->i is 32 bit; else 64 bit
@@ -33,11 +34,10 @@ uint64_t GB_encodify_masker // encode a masker problem
3334{
3435
3536 //--------------------------------------------------------------------------
36- // check if the R->type is JIT'able
37+ // check if the rtype is JIT'able
3738 //--------------------------------------------------------------------------
3839
39- GrB_Type rtype = (R == NULL ) ? NULL : R -> type ;
40- if (R != NULL && rtype -> hash == UINT64_MAX )
40+ if (rtype != NULL && rtype -> hash == UINT64_MAX )
4141 {
4242 // cannot JIT this type
4343 memset (encoding , 0 , sizeof (GB_jit_encoding )) ;
@@ -50,7 +50,8 @@ uint64_t GB_encodify_masker // encode a masker problem
5050 //--------------------------------------------------------------------------
5151
5252 GB_encodify_kcode (encoding , kcode ) ;
53- GB_enumify_masker (& encoding -> code , R , Rp_is_32 , Rj_is_32 , Ri_is_32 ,
53+ GB_enumify_masker (& encoding -> code , R_sparsity , rtype ,
54+ Rp_is_32 , Rj_is_32 , Ri_is_32 ,
5455 M , Mask_struct , Mask_comp , C , Z ) ;
5556
5657 //--------------------------------------------------------------------------
0 commit comments