================ @@ -0,0 +1,70 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#include "clc/utils.h" + +#ifndef __CLC_IMPL_FUNCTION +#define __CLC_IMPL_FUNCTION __CLC_FUNCTION +#endif + +#ifndef __CLC_MIN_VECSIZE +#define __CLC_MIN_VECSIZE 2 +#endif + +#ifndef __CLC_RET_SCALAR_TYPE +#define __CLC_RET_SCALAR_TYPE __CLC_SCALAR_GENTYPE +#endif + +#ifndef __CLC_ARG1_SCALAR_TYPE +#define __CLC_ARG1_SCALAR_TYPE __CLC_SCALAR_GENTYPE +#endif + +#ifndef __CLC_ARG2_SCALAR_TYPE +#define __CLC_ARG2_SCALAR_TYPE __CLC_SCALAR_GENTYPE +#endif + +#define __CLC_RET_TYPE __CLC_XCONCAT(__CLC_RET_SCALAR_TYPE, __CLC_VECSIZE) +#define __CLC_ARG1_TYPE __CLC_XCONCAT(__CLC_ARG1_SCALAR_TYPE, __CLC_VECSIZE) +#define __CLC_ARG2_TYPE __CLC_XCONCAT(__CLC_ARG2_SCALAR_TYPE, __CLC_VECSIZE) + +#if __CLC_MIN_VECSIZE == 1 ---------------- wenju-he wrote:
`__CLC_MIN_VECSIZE == 1` code is not needed since there should be already a scalar implementation before including this file https://github.com/llvm/llvm-project/pull/186890 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
