In AMD GPU device code the globals are in AS(1). Before, we crashed if
the global was a structure. Now we simply cast away the AS before we
generate the code to initialize the global.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Hi Johannes,
assert in two of the tests
#7 0x00005576b8d055e4 llvm::ConstantExpr::getAddrSpaceCast(llvm::Constant*, llvm::Type*, bool) (/work/omp-vega20-0/openmp-offload-amdgpu-runtime/llvm.build/bin/clang-15+0x1e4b5e4)
Comment Actions
Looks like this breaks tests: http://45.33.8.238/linux/71358/step_7.txt
Please take a look and revert for now if it takes a while to fix.
Comment Actions
The test cases added with this commit failed on clang-ppc64be-linux-lnt # 13809 could you please revert this change, and recommit with the test case corrected? thank you.
Comment Actions
[EDIT] I did in https://reviews.llvm.org/rGb4cc3b1dd8d7200640210513263b28187f810703, it seems the metadata is reordered in that bot... I am fixing it right now...