forked from simd-everywhere/simde
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
151 lines (141 loc) · 2.55 KB
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
project('SIMDe', 'c', 'cpp',
default_options: ['c_std=c99'],
license: 'MIT',
version: '0.5.0')
cc = meson.get_compiler('c')
cxx = meson.get_compiler('cpp')
simde_neon_families = [
'abs',
'add',
'addl',
'addl_high',
'addw',
'and',
'bsl',
'cagt',
'ceq',
'ceqz',
'cge',
'cgez',
'cgt',
'cgtz',
'cle',
'clez',
'clt',
'cltz',
'combine',
'dot',
'dup_n',
'eor',
'ext',
'get_high',
'get_lane',
'get_low',
'ld1',
'max',
'min',
'mla',
'mlal',
'mlal_high',
'movl',
'movl_high',
'movn',
'mul',
'mull',
'mvn',
'neg',
'orr',
'padal',
'padd',
'paddl',
'pmax',
'pmin',
'qadd',
'qdmulh',
'qdmull',
'qmovn',
'qmovn_high',
'reinterpret',
'rshl',
'rshr_n',
'rsra_n',
'shl',
'shl_n',
'shr_n',
'sra_n',
'st1',
'st1_lane',
'sub',
'tbl',
'tbx',
'trn1',
'trn2',
'trn',
'tst',
'uzp1',
'uzp2',
'uzp',
'zip1',
'zip2',
'zip',
]
if not meson.is_subproject() and get_option('tests')
subdir('test')
endif
simde_neon_family_headers = ['simde/arm/neon/types.h']
foreach neon_family : simde_neon_families
simde_neon_family_headers += 'simde/arm/neon/' + neon_family + '.h'
endforeach
if not meson.is_subproject()
install_headers(
files([
'simde/check.h',
'simde/debug-trap.h',
'simde/hedley.h',
'simde/simde-arch.h',
'simde/simde-common.h',
'simde/simde-constify.h',
'simde/simde-detect-clang.h',
'simde/simde-diagnostic.h',
'simde/simde-features.h',
'simde/simde-math.h',
]),
subdir: 'simde')
install_headers(
files([
'simde/x86/avx2.h',
'simde/x86/avx512bw.h',
'simde/x86/avx512cd.h',
'simde/x86/avx512dq.h',
'simde/x86/avx512f.h',
'simde/x86/avx512vl.h',
'simde/x86/avx.h',
'simde/x86/fma.h',
'simde/x86/gfni.h',
'simde/x86/mmx.h',
'simde/x86/sse2.h',
'simde/x86/sse3.h',
'simde/x86/sse4.1.h',
'simde/x86/sse4.2.h',
'simde/x86/sse.h',
'simde/x86/ssse3.h',
'simde/x86/svml.h',
]),
subdir: 'simde/x86')
install_headers(
files([
'simde/arm/neon.h',
]),
subdir: 'simde/arm')
install_headers(
files(simde_neon_family_headers),
subdir: 'simde/arm/neon')
import('pkgconfig').generate(
version : meson.project_version(),
name : 'SIMDe',
filebase : 'simde',
description : 'Portable SIMD wrapper library')
endif
simde_dep = declare_dependency(
include_directories : include_directories('.'),
version : meson.project_version())