relational: create re-usable macros for relational declarations
authorAaron Watry <awatry@gmail.com>
Thu, 17 Jul 2014 22:05:16 +0000 (22:05 +0000)
committerAaron Watry <awatry@gmail.com>
Thu, 17 Jul 2014 22:05:16 +0000 (22:05 +0000)
commit13116cf01a5cb7e1d16834969a608ed3353a3932
treec3f8fe4101fc177c6f5f08818c5b866c739da31a
parentcf973791a167e7588dd0cf80d9ad6838b038989e
relational: create re-usable macros for relational declarations

relational.h includes relational macros for defining functions which need to
return 1 for scalar true and -1 for vector true.

I believe that this is the only place that this behavior is required, so the
macro is placed at its lowest useful level (same directory as it is used in).

This also creates re-usable unary/binary declaration and floatn includes which
should simplify relational builtin declarations.

Mostly patterned off of include/math/[binary_decl|unary_decl|floatn].inc
but with required changes for relational functions.

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
llvm-svn: 213315
libclc/generic/include/clc/relational/binary_decl.inc [new file with mode: 0644]
libclc/generic/include/clc/relational/floatn.inc [new file with mode: 0644]
libclc/generic/include/clc/relational/unary_decl.inc [new file with mode: 0644]
libclc/generic/lib/relational/relational.h [new file with mode: 0644]