Intel tile unused warnings .

Hi Devs,

We think the following function definitions should be attributed with
"unused" to avoid the below warnings .

include/amxintrin.h:255:13: warning: unused function '__tile_loadd'
[-Wunused-function]
static void __tile_loadd(__tile1024i *dst, const void *base,
            ^
/include/amxintrin.h:261:13: warning: unused function '__tile_dpbssd'
[-Wunused-function]
static void __tile_dpbssd(__tile1024i *dst, __tile1024i src1,
            ^
include/amxintrin.h:268:13: warning: unused function '__tile_stored'
[-Wunused-function]
static void __tile_stored(void *base, __SIZE_TYPE__ stride, __tile1024i src) {

include/amxintrin.h:273:13: warning: unused function '__tile_zero'
[-Wunused-function]

We can make the required changes and upstream the same .

Thank you
~Umesh

Aren’t the intrinsics usually marked inline? Would that prevent the warning?

Seems attribute “inline” was missing in these intrinsics. Candidate patch https://reviews.llvm.org/D108509

Thanks

Pengfei

Thanks, Craig & Pengfei!

Yes, we miss the inline in the header file.

Thanks

Yuanke