Skip to content

Commit 572780f

Browse files
committed
add license headers, use gentype.inc
1 parent af625cf commit 572780f

File tree

7 files changed

+58
-35
lines changed

7 files changed

+58
-35
lines changed

libclc/clc/include/clc/math/binary_builtin.inc

Lines changed: 0 additions & 27 deletions
This file was deleted.

libclc/clc/include/clc/math/clc_fmax.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
19
#ifndef __CLC_MATH_CLC_FMAX_H__
210
#define __CLC_MATH_CLC_FMAX_H__
311

libclc/clc/include/clc/math/clc_fmin.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
19
#ifndef __CLC_MATH_CLC_FMIN_H__
210
#define __CLC_MATH_CLC_FMIN_H__
311

libclc/clc/include/clc/shared/binary_decl_with_scalar_second_arg.inc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
19
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __CLC_FUNCTION(__CLC_GENTYPE x,
210
__CLC_GENTYPE y);
311

libclc/clc/include/clc/shared/binary_def_with_scalar_second_arg.inc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
19
#include <clc/utils.h>
210

311
#ifndef __CLC_FUNCTION
Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
19
#include <clc/internal/clc.h>
210

3-
#undef __CLC_FUNCTION
4-
#define __CLC_FUNCTION __clc_fmax
5-
#define __CLC_BUILTIN __builtin_elementwise_max
6-
#include <clc/math/binary_builtin.inc>
11+
#define FUNCTION __clc_fmax
12+
#define __CLC_FUNCTION(x) __builtin_elementwise_max
13+
#define __CLC_BODY <clc/shared/binary_def.inc>
14+
15+
#include <clc/math/gentype.inc>
Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
19
#include <clc/internal/clc.h>
210

3-
#undef __CLC_FUNCTION
4-
#define __CLC_FUNCTION __clc_fmin
5-
#define __CLC_BUILTIN __builtin_elementwise_min
6-
#include <clc/math/binary_builtin.inc>
11+
#define FUNCTION __clc_fmin
12+
#define __CLC_FUNCTION(x) __builtin_elementwise_min
13+
#define __CLC_BODY <clc/shared/binary_def.inc>
14+
15+
#include <clc/math/gentype.inc>

0 commit comments

Comments
 (0)