Instead, emit a trap and a warning. We force inlining of this
situation, so any function where this happens should be dead as
indirect or external calls are not yet supported. This should avoid
erroring on dead code.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
What happens if user uses shared variable in a function marked with noinline? Will the function get inlined in kernel, or will the function not be inlined and ends up with a trap when called by a kernel? Thanks.
Comment Actions
So we will never be able to debug a HIP program compiled with -O0 where a device function uses shared variable since all functions are noinilne. This seems quite a restriction.
Comment Actions
The thread the pulls on is that optnone artificially requires noinline, another constraint I have a problem with