Accesses to global module LDS variable start from null,
but kernel also thinks its variables start address is
null. Fixed by not using a null as an address.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp | ||
---|---|---|
67 | getNamedGlobal? |
Comment Actions
That is much prettier, thank you.
We have the magic string "llvm.amdgcn.module.lds" in a few places now, might be worth putting that behind a function call. Separate to the above, if we do it at all.
llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp | ||
---|---|---|
67 | Probably. But that's a different change I guess. |
llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp | ||
---|---|---|
67 | No, that's the wrapper that passes true in for you |
Comment Actions
Yeah, I think we need a function to return it or define.
llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp | ||
---|---|---|
67 | Ah, right. |
getNamedGlobal?