[libc-commits] [libc] [libc] Rework the RPC interface to accept runtime wave sizes (PR #80914)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Mon Feb 12 07:13:42 PST 2024


jhuber6 wrote:

> > The intrinsic won't actually fold out in any useful place today (only happens extremely late in the backend). You're better of linking in a wavesize constant variable
> 
> That seems worth fixing - somewhere in the compiler we know the wavesize (sometimes from clang, sometimes from the backend), we can kill off the intrinsic whenever that information comes to light.

I'm assuming this is only lowered in MIR because of the whole "variable per CFG" thing? Otherwise it should be trivial to make it just key off of the attributes / subtarget.

https://github.com/llvm/llvm-project/pull/80914


More information about the libc-commits mailing list