Provide the bare pointer memref lowering option on gpu-to-nvvm pass.
This is needed whenever we lower memrefs on the host function side and
the kernel calls on the host-side (gpu-to-llvm) with the bare ptr
convention. The GPU module side of the lowering should also "align" and
use the bare pointer convention.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Add integration test cases for bare pointer memref lowering for kernels as well
as host-side IR. Tests the options for both gpu-to-nvvm and gpu-to-llvm.
Comment Actions
Can you add a unit-test please? Integration test are never replacement for unit-tests.
Comment Actions
Done - added unit test case. (The reason I thought it wasn't necessary was that memref bare ptr lowering already had unit test cases in func-to-llvm. The testing here is repeating/exercising the same lowering. But it's good to have it anyway to show all the users of the feature in the tree and to ensure the option is indeed working.)