clover: Fix build after llvm r325155 and r325160

Thank you Jan,

much appreciated, but now I get this:

LLVM-CC amdgcn--/lib/math/half_exp.cl.tahiti.bc
./amdgcn/lib/workitem/get_global_offset.cl:6:3: error: casting '__attribute__((address_space(4)))
       unsigned char *' to type '__attribute__((address_space(2))) uint *' (aka
       '__attribute__((address_space(2))) unsigned int *') changes address space of pointer
                 (__attribute__((address_space(2))) uint *)
                 ^
1 error generated.
make: *** [Makefile:6309: amdgcn--/lib/workitem/get_global_offset.cl.tahiti.bc] Fehler 1
make: *** Es wird auf noch nicht beendete Prozesse gewartet....
./amdgcn/lib/workitem/get_work_dim.cl:6:3: error: casting '__attribute__((address_space(4)))
       unsigned char *' to type '__attribute__((address_space(2))) uint *' (aka
       '__attribute__((address_space(2))) unsigned int *') changes address space of pointer
                 (__attribute__((address_space(2))) uint *)
                 ^
1 error generated.
make: *** [Makefile:6336: amdgcn--/lib/workitem/get_work_dim.cl.tahiti.bc] Fehler 1

LLVM git taken some seconds ago (#99eb4ff05c078ba341c99a5da2d003b346bd092c)

Dieter

Thank you Jan,

much appreciated, but now I get this:

LLVM-CC amdgcn--/lib/math/half_exp.cl.tahiti.bc
./amdgcn/lib/workitem/get_global_offset.cl:6:3: error: casting
'__attribute__((address_space(4)))
       unsigned char *' to type '__attribute__((address_space(2))) uint
*' (aka
       '__attribute__((address_space(2))) unsigned int *') changes
address space of pointer
                 (__attribute__((address_space(2))) uint *)
                 ^
1 error generated.
make: *** [Makefile:6309:
amdgcn--/lib/workitem/get_global_offset.cl.tahiti.bc] Fehler 1
make: *** Es wird auf noch nicht beendete Prozesse gewartet....
./amdgcn/lib/workitem/get_work_dim.cl:6:3: error: casting
'__attribute__((address_space(4)))
       unsigned char *' to type '__attribute__((address_space(2))) uint
*' (aka
       '__attribute__((address_space(2))) unsigned int *') changes
address space of pointer
                 (__attribute__((address_space(2))) uint *)
                 ^
1 error generated.
make: *** [Makefile:6336:
amdgcn--/lib/workitem/get_work_dim.cl.tahiti.bc] Fehler 1

LLVM git taken some seconds ago
(#99eb4ff05c078ba341c99a5da2d003b346bd092c)

amdgcn backend switched GDS and const address space numbers (for
whatever reason, writing sensible and explanatory commit messages is
apparently frowned upon at AMD).
you'll need at least the 3 gcn patches from an earlier build fix
series[0].

Jan

[0] http://lists.llvm.org/pipermail/libclc-dev/2018-February/002796.htm
l