Intel® Implicit SPMD Program Compiler (Intel® ISPC)
1.13.0
src
ispc_version.h
Go to the documentation of this file.
1
/*
2
Copyright (c) 2015-2020, Intel Corporation
3
All rights reserved.
4
5
Redistribution and use in source and binary forms, with or without
6
modification, are permitted provided that the following conditions are
7
met:
8
9
* Redistributions of source code must retain the above copyright
10
notice, this list of conditions and the following disclaimer.
11
12
* Redistributions in binary form must reproduce the above copyright
13
notice, this list of conditions and the following disclaimer in the
14
documentation and/or other materials provided with the distribution.
15
16
* Neither the name of Intel Corporation nor the names of its
17
contributors may be used to endorse or promote products derived from
18
this software without specific prior written permission.
19
20
21
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
22
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
23
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
24
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
25
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
26
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
27
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
28
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
29
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
30
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
*/
33
34
/** @file ispc_version.h
35
@brief defines the ISPC version
36
*/
37
38
#pragma once
39
40
#define ISPC_VERSION_MAJOR 1
41
#define ISPC_VERSION_MINOR 13
42
#define ISPC_VERSION "1.13.0"
43
#include "llvm/Config/llvm-config.h"
44
45
#define ISPC_LLVM_VERSION (LLVM_VERSION_MAJOR * 10000 + LLVM_VERSION_MINOR * 100)
46
47
#define ISPC_LLVM_6_0 60000
48
#define ISPC_LLVM_7_0 70000
49
#define ISPC_LLVM_7_1 70100
50
#define ISPC_LLVM_8_0 80000
51
#define ISPC_LLVM_9_0 90000
52
#define ISPC_LLVM_10_0 100000
53
#define ISPC_LLVM_11_0 110000
54
55
#define OLDEST_SUPPORTED_LLVM ISPC_LLVM_6_0
56
#define LATEST_SUPPORTED_LLVM ISPC_LLVM_11_0
57
58
#ifdef __ispc__xstr
59
#undef __ispc__xstr
60
#endif
61
#define __ispc__xstr(s) __ispc__str(s)
62
#define __ispc__str(s) #s
63
64
#define ISPC_LLVM_VERSION_STRING \
65
__ispc__xstr(LLVM_VERSION_MAJOR) "." __ispc__xstr(LLVM_VERSION_MINOR) "." __ispc__xstr(LLVM_VERSION_PATCH)
66
67
#if ISPC_LLVM_VERSION < OLDEST_SUPPORTED_LLVM || ISPC_LLVM_VERSION > LATEST_SUPPORTED_LLVM
68
#error "Unhandled LLVM version"
69
#endif
Generated on Fri Apr 24 2020 00:01:25 for Intel® Implicit SPMD Program Compiler (Intel® ISPC) by
1.8.13