Removes a +x/-x pair on the only store/load of a variable
and deletes some nearby dead code. Also reduces the size of the implicit
struct to reflect the code currently emitted by clang.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
openmp/libomptarget/plugins/amdgpu/impl/system.cpp | ||
---|---|---|
487–489 | The naming here is going to be confusing. The compiler reported kernarg size is supposed to be the complete allocation size. If this wants to know the explicit argument size, that should probably go to a different named field |
openmp/libomptarget/plugins/amdgpu/impl/system.cpp | ||
---|---|---|
487–489 | i.e. nothing about checking hasHiddenArgs makes sense |
openmp/libomptarget/plugins/amdgpu/impl/system.cpp | ||
---|---|---|
487–489 | It's less confusing after this patch than it was before. Incremental steps. I'm deleting stuff while I work out how this handling is behaving. |
openmp/libomptarget/plugins/amdgpu/impl/internal.h | ||
---|---|---|
45 | This breaks builds on 32-bit platforms (e.g., i386). If they aren't supported that's fine, but then cmake adjustments are required to prevent it from trying to build. |
openmp/libomptarget/plugins/amdgpu/impl/internal.h | ||
---|---|---|
45 | Just use explicit uint64_t, the named types randomly changing sizes is one of the dumbest things about C |
openmp/libomptarget/plugins/amdgpu/impl/internal.h | ||
---|---|---|
45 | I don't know if i386 will work in general, but those ^ have to be 64 bit regardless, will fix shortly |
This breaks builds on 32-bit platforms (e.g., i386). If they aren't supported that's fine, but then cmake adjustments are required to prevent it from trying to build.