OpenCL address space and mangling

Michele Scandale michele.scandale at gmail.com
Thu Jul 18 10:11:14 PDT 2013


Hello to everybody,

I've noticed a problem in the mangling of function names where address spaces
are used. The problem is related to opencl and cuda address spaces: the target
address space map is used to translate address space, but this conversion can
produce the same mangling from different address space (on X86 all opencl
address spaces are mapped to the address space zero). See attached example.

Commit r174688 introduced the usage of the target translation map. Reverting it
seems be ok as a solution. Do you agree with this solution?

Thanks in advance.

Best regards.

Michele Scandale


-------------- next part --------------
__attribute__((overloadable))
void foo(__private float *a) {
	*a = 1;
}

__attribute__((overloadable))
void foo(__global float *a) {
	*a = 1;
}

__attribute__((overloadable))
void foo(__local float *a) {
	*a = 1;
}




More information about the cfe-commits mailing list