Add inliner interface for GPU dialect. The interface marks all GPU
dialect ops legal to inline anywhere.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I couldn't immediately find anything that should be prevented from inlining. I can refine the condition if there are such situations.
Comment Actions
Is it legal though? Should we have something like gpu.thread_id outside of a GPU function/module? I would rather think it is legal to inline GPU functions into GPU functions.
Comment Actions
Calling a gpu function from a non-gpu function should be illegal anyway, so this situation cannot really arise. And the gpu.launch is not a call in the sense of the inlining interface.