Work-Item related OpenCL functions usually return size_t type, which is different for 64bit and 32bit SPIR IR. Polly used i32 type everywhere, causing it to fail on assertions.
Also changes the dimension to be always i32 type.
Differential D49130
Fix OpenCL Work-Item function arguments in Polly AbandonedPublic Authored by franz on Jul 10 2018, 6:58 AM.
Details
Summary Work-Item related OpenCL functions usually return size_t type, which is different for 64bit and 32bit SPIR IR. Polly used i32 type everywhere, causing it to fail on assertions. Also changes the dimension to be always i32 type.
Diff Detail
Event TimelineComment Actions Sorry guys. Alain just started to look into this last week and we wanted to get him up-to-speed before getting in touch with you. I should have helped to coordinate better. I asked Alain to discuss with you which / what patches are still needed.
Revision Contents
Diff 154781 lib/CodeGen/PPCGCodeGeneration.cpp
|