The SPIR spec states that all OpenCL built-in functions should be overloadable and mangled, to ensure consistency. Add the overload attribute to functions which were missing them: work dimensions, memory barriers and fences, and events. Reviewed By: tstellar, jenatali Differential Revision: https://reviews.llvm.org/D82078
6 lines
175 B
Common Lisp
6 lines
175 B
Common Lisp
#include <clc/clc.h>
|
|
|
|
_CLC_DEF _CLC_OVERLOAD size_t get_global_id(uint dim) {
|
|
return get_group_id(dim) * get_local_size(dim) + get_local_id(dim) + get_global_offset(dim);
|
|
}
|