mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-03-05 17:08:17 +00:00
r600: Add get_global_size() implementation
llvm-svn: 184977
This commit is contained in:
parent
ac14c4e878
commit
38f0ac9d5e
@ -1,3 +1 @@
|
||||
_CLC_INLINE size_t get_global_size(uint dim) {
|
||||
return 0;
|
||||
}
|
||||
size_t get_global_size(uint dim);
|
||||
|
@ -1 +1,2 @@
|
||||
workitem/get_global_id.cl
|
||||
workitem/get_global_size.cl
|
||||
|
10
libclc/r600/lib/workitem/get_global_size.cl
Normal file
10
libclc/r600/lib/workitem/get_global_size.cl
Normal file
@ -0,0 +1,10 @@
|
||||
#include <clc/clc.h>
|
||||
|
||||
_CLC_DEF size_t get_global_size(uint dim) {
|
||||
switch (dim) {
|
||||
case 0: return __builtin_r600_read_global_size_x();
|
||||
case 1: return __builtin_r600_read_global_size_y();
|
||||
case 2: return __builtin_r600_read_global_size_z();
|
||||
default: return 1;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user