libclc was defining and undefing GENTYPE and several other macros with common names in its header files. This was preventing applications from defining macros with identical names as command line arguments to the compiler, because the definitions in the header files were masking the macros defined as compiler arguements. Reviewed-by: Aaron Watry <awatry@gmail.com> llvm-svn: 185838
46 lines
695 B
C++
46 lines
695 B
C++
#define __CLC_FLOAT float
|
|
|
|
#define __CLC_FLOATN float
|
|
#include __CLC_BODY
|
|
#undef __CLC_FLOATN
|
|
|
|
#define __CLC_FLOATN float2
|
|
#include __CLC_BODY
|
|
#undef __CLC_FLOATN
|
|
|
|
#define __CLC_FLOATN float3
|
|
#include __CLC_BODY
|
|
#undef __CLC_FLOATN
|
|
|
|
#define __CLC_FLOATN float4
|
|
#include __CLC_BODY
|
|
#undef __CLC_FLOATN
|
|
|
|
#undef __CLC_FLOAT
|
|
|
|
#ifdef cl_khr_fp64
|
|
|
|
#define __CLC_FLOAT double
|
|
|
|
#define __CLC_FLOATN double
|
|
#include __CLC_BODY
|
|
#undef __CLC_FLOATN
|
|
|
|
#define __CLC_FLOATN double2
|
|
#include __CLC_BODY
|
|
#undef __CLC_FLOATN
|
|
|
|
#define __CLC_FLOATN double3
|
|
#include __CLC_BODY
|
|
#undef __CLC_FLOATN
|
|
|
|
#define __CLC_FLOATN double4
|
|
#include __CLC_BODY
|
|
#undef __CLC_FLOATN
|
|
|
|
#undef __CLC_FLOAT
|
|
|
|
#endif
|
|
|
|
#undef __CLC_BODY
|