Skip to content

Commit 2e8d27f

Browse files
author
Nemanja Grujic
committed
All our changes
1 parent cd70802 commit 2e8d27f

File tree

28,950 files changed

+5834728
-703
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

28,950 files changed

+5834728
-703
lines changed

#output_17#

Lines changed: 339 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,339 @@
1+
d
2+
3+
`````q; ModuleID = '/space2/users/svetozarj/sw/next-llvm-project/llvm/test/Transforms/InstCombine/float-shrink-compare.ll'
4+
source_filename = "/space2/users/svetozarj/sw/next-llvm-project/llvm/test/Transforms/InstCombine/float-shrink-compare.ll"
5+
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
6+
target triple = "x86_64-apple-macosx10.8.0"
7+
8+
define i1 @test1(float %x, float %y) {
9+
%1 = call float @llvm.ceil.f32(float %x)
10+
%cmp = fcmp oeq float %1, %y
11+
ret i1 %cmp
12+
}
13+
14+
define i1 @test1_intrin(float %x, float %y) {
15+
%1 = call float @llvm.ceil.f32(float %x)
16+
%cmp = fcmp oeq float %1, %y
17+
ret i1 %cmp
18+
}
19+
20+
define i1 @test2(float %x, float %y) {
21+
%1 = call float @llvm.fabs.f32(float %x)
22+
%cmp = fcmp oeq float %1, %y
23+
ret i1 %cmp
24+
}
25+
26+
define i1 @test2_intrin(float %x, float %y) {
27+
%1 = call float @llvm.fabs.f32(float %x)
28+
%cmp = fcmp oeq float %1, %y
29+
ret i1 %cmp
30+
}
31+
32+
define i1 @fmf_test2(float %x, float %y) {
33+
%1 = call nnan float @llvm.fabs.f32(float %x)
34+
%2 = fcmp oeq float %1, %y
35+
ret i1 %2
36+
}
37+
38+
define i1 @test3(float %x, float %y) {
39+
%1 = call float @llvm.floor.f32(float %x)
40+
%cmp = fcmp oeq float %1, %y
41+
ret i1 %cmp
42+
}
43+
44+
define i1 @test3_intrin(float %x, float %y) {
45+
%1 = call float @llvm.floor.f32(float %x)
46+
%cmp = fcmp oeq float %1, %y
47+
ret i1 %cmp
48+
}
49+
50+
define i1 @test4(float %x, float %y) {
51+
%1 = call float @llvm.nearbyint.f32(float %x)
52+
%cmp = fcmp oeq float %1, %y
53+
ret i1 %cmp
54+
}
55+
56+
define i1 @shrink_nearbyint_intrin(float %x, float %y) {
57+
%1 = call float @llvm.nearbyint.f32(float %x)
58+
%cmp = fcmp oeq float %1, %y
59+
ret i1 %cmp
60+
}
61+
62+
define i1 @test5(float %x, float %y) {
63+
%1 = call float @llvm.rint.f32(float %x)
64+
%cmp = fcmp oeq float %1, %y
65+
ret i1 %cmp
66+
}
67+
68+
define i1 @test6(float %x, float %y) {
69+
%1 = call float @llvm.round.f32(float %x)
70+
%cmp = fcmp oeq float %1, %y
71+
ret i1 %cmp
72+
}
73+
74+
define i1 @test6_intrin(float %x, float %y) {
75+
%1 = call float @llvm.round.f32(float %x)
76+
%cmp = fcmp oeq float %1, %y
77+
ret i1 %cmp
78+
}
79+
80+
define i1 @test6a(float %x, float %y) {
81+
%1 = call float @llvm.roundeven.f32(float %x)
82+
%cmp = fcmp oeq float %1, %y
83+
ret i1 %cmp
84+
}
85+
86+
define i1 @test6a_intrin(float %x, float %y) {
87+
%1 = call float @llvm.roundeven.f32(float %x)
88+
%cmp = fcmp oeq float %1, %y
89+
ret i1 %cmp
90+
}
91+
92+
define i1 @test7(float %x, float %y) {
93+
%1 = call float @llvm.trunc.f32(float %x)
94+
%cmp = fcmp oeq float %1, %y
95+
ret i1 %cmp
96+
}
97+
98+
define i1 @test7_intrin(float %x, float %y) {
99+
%1 = call float @llvm.trunc.f32(float %x)
100+
%cmp = fcmp oeq float %1, %y
101+
ret i1 %cmp
102+
}
103+
104+
define i1 @test8(float %x, float %y) {
105+
%1 = call float @llvm.ceil.f32(float %x)
106+
%cmp = fcmp oeq float %1, %y
107+
ret i1 %cmp
108+
}
109+
110+
define i1 @test8_intrin(float %x, float %y) {
111+
%1 = call float @llvm.ceil.f32(float %x)
112+
%cmp = fcmp oeq float %1, %y
113+
ret i1 %cmp
114+
}
115+
116+
define i1 @test9(float %x, float %y) {
117+
%1 = call float @llvm.fabs.f32(float %x)
118+
%cmp = fcmp oeq float %1, %y
119+
ret i1 %cmp
120+
}
121+
122+
define i1 @test9_intrin(float %x, float %y) {
123+
%1 = call float @llvm.fabs.f32(float %x)
124+
%cmp = fcmp oeq float %1, %y
125+
ret i1 %cmp
126+
}
127+
128+
define i1 @test10(float %x, float %y) {
129+
%1 = call float @llvm.floor.f32(float %x)
130+
%cmp = fcmp oeq float %1, %y
131+
ret i1 %cmp
132+
}
133+
134+
define i1 @test10_intrin(float %x, float %y) {
135+
%1 = call float @llvm.floor.f32(float %x)
136+
%cmp = fcmp oeq float %1, %y
137+
ret i1 %cmp
138+
}
139+
140+
define i1 @test11(float %x, float %y) {
141+
%1 = call float @llvm.nearbyint.f32(float %x)
142+
%cmp = fcmp oeq float %1, %y
143+
ret i1 %cmp
144+
}
145+
146+
define i1 @test11_intrin(float %x, float %y) {
147+
%1 = call float @llvm.nearbyint.f32(float %x)
148+
%cmp = fcmp oeq float %1, %y
149+
ret i1 %cmp
150+
}
151+
152+
define i1 @test12(float %x, float %y) {
153+
%1 = call float @llvm.rint.f32(float %x)
154+
%cmp = fcmp oeq float %1, %y
155+
ret i1 %cmp
156+
}
157+
158+
define i1 @test13(float %x, float %y) {
159+
%1 = call float @llvm.round.f32(float %x)
160+
%cmp = fcmp oeq float %1, %y
161+
ret i1 %cmp
162+
}
163+
164+
define i1 @test13_intrin(float %x, float %y) {
165+
%1 = call float @llvm.round.f32(float %x)
166+
%cmp = fcmp oeq float %1, %y
167+
ret i1 %cmp
168+
}
169+
170+
define i1 @test13a(float %x, float %y) {
171+
%1 = call float @llvm.roundeven.f32(float %x)
172+
%cmp = fcmp oeq float %1, %y
173+
ret i1 %cmp
174+
}
175+
176+
define i1 @test13a_intrin(float %x, float %y) {
177+
%1 = call float @llvm.roundeven.f32(float %x)
178+
%cmp = fcmp oeq float %1, %y
179+
ret i1 %cmp
180+
}
181+
182+
define i1 @test14(float %x, float %y) {
183+
%1 = call float @llvm.trunc.f32(float %x)
184+
%cmp = fcmp oeq float %1, %y
185+
ret i1 %cmp
186+
}
187+
188+
define i1 @test14_intrin(float %x, float %y) {
189+
%1 = call float @llvm.trunc.f32(float %x)
190+
%cmp = fcmp oeq float %1, %y
191+
ret i1 %cmp
192+
}
193+
194+
define i1 @test15(float %x, float %y, float %z) {
195+
%fminf = call nsz float @llvm.minnum.f32(float %x, float %y)
196+
%1 = fcmp oeq float %fminf, %z
197+
ret i1 %1
198+
}
199+
200+
define i1 @test16(float %x, float %y, float %z) {
201+
%fminf = call nsz float @llvm.minnum.f32(float %x, float %y)
202+
%1 = fcmp oeq float %fminf, %z
203+
ret i1 %1
204+
}
205+
206+
define i1 @test17(float %x, float %y, float %z) {
207+
%fmaxf = call nsz float @llvm.maxnum.f32(float %x, float %y)
208+
%1 = fcmp oeq float %fmaxf, %z
209+
ret i1 %1
210+
}
211+
212+
define i1 @test18(float %x, float %y, float %z) {
213+
%fmaxf = call nsz float @llvm.maxnum.f32(float %x, float %y)
214+
%1 = fcmp oeq float %fmaxf, %z
215+
ret i1 %1
216+
}
217+
218+
define i1 @test19(float %x, float %y, float %z) {
219+
%copysignf = call float @copysignf(float %x, float %y) #0
220+
%1 = fcmp oeq float %copysignf, %z
221+
ret i1 %1
222+
}
223+
224+
define i1 @test20(float %x, float %y) {
225+
%fminf = call nsz float @llvm.minnum.f32(float %x, float 1.000000e+00)
226+
%1 = fcmp oeq float %fminf, %y
227+
ret i1 %1
228+
}
229+
230+
define i1 @test21(float %x, float %y) {
231+
%1 = fpext float %y to double
232+
%2 = fpext float %x to double
233+
%3 = call nsz double @llvm.minnum.f64(double %2, double 1.300000e+00)
234+
%4 = fcmp oeq double %3, %1
235+
ret i1 %4
236+
}
237+
238+
; Function Attrs: nounwind memory(none)
239+
declare double @fabs(double) #0
240+
241+
; Function Attrs: nounwind memory(none)
242+
declare double @ceil(double) #0
243+
244+
; Function Attrs: nounwind memory(none)
245+
declare double @copysign(double, double) #0
246+
247+
; Function Attrs: nounwind memory(none)
248+
declare double @floor(double) #0
249+
250+
; Function Attrs: nounwind memory(none)
251+
declare double @nearbyint(double) #0
252+
253+
; Function Attrs: nounwind memory(none)
254+
declare double @rint(double) #0
255+
256+
; Function Attrs: nounwind memory(none)
257+
declare double @round(double) #0
258+
259+
; Function Attrs: nounwind memory(none)
260+
declare double @roundeven(double) #0
261+
262+
; Function Attrs: nounwind memory(none)
263+
declare double @trunc(double) #0
264+
265+
; Function Attrs: nounwind memory(none)
266+
declare double @fmin(double, double) #0
267+
268+
; Function Attrs: nounwind memory(none)
269+
declare double @fmax(double, double) #0
270+
271+
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
272+
declare double @llvm.fabs.f64(double) #1
273+
274+
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
275+
declare double @llvm.ceil.f64(double) #1
276+
277+
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
278+
declare double @llvm.floor.f64(double) #1
279+
280+
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
281+
declare double @llvm.nearbyint.f64(double) #1
282+
283+
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
284+
declare double @llvm.round.f64(double) #1
285+
286+
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
287+
declare double @llvm.roundeven.f64(double) #1
288+
289+
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
290+
declare double @llvm.trunc.f64(double) #1
291+
292+
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
293+
declare float @llvm.ceil.f32(float) #1
294+
295+
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
296+
declare float @llvm.fabs.f32(float) #1
297+
298+
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
299+
declare float @llvm.floor.f32(float) #1
300+
301+
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
302+
declare float @llvm.nearbyint.f32(float) #1
303+
304+
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
305+
declare double @llvm.rint.f64(double) #1
306+
307+
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
308+
declare float @llvm.rint.f32(float) #1
309+
310+
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
311+
declare float @llvm.round.f32(float) #1
312+
313+
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
314+
declare float @llvm.roundeven.f32(float) #1
315+
316+
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
317+
declare float @llvm.trunc.f32(float) #1
318+
319+
; Function Attrs: nofree nounwind willreturn memory(write)
320+
declare float @fminf(float, float) #2
321+
322+
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
323+
declare float @llvm.minnum.f32(float, float) #1
324+
325+
; Function Attrs: nofree nounwind willreturn memory(write)
326+
declare float @fmaxf(float, float) #2
327+
328+
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
329+
declare float @llvm.maxnum.f32(float, float) #1
330+
331+
; Function Attrs: nofree nounwind willreturn memory(write)
332+
declare float @copysignf(float, float) #2
333+
334+
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
335+
declare double @llvm.minnum.f64(double, double) #1
336+
337+
attributes #0 = { nounwind memory(none) }
338+
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
339+
attributes #2 = { nofree nounwind willreturn memory(write) }

.github/CODEOWNERS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,8 @@ clang/test/AST/Interp/ @tbaederr
150150
/llvm/**/DWARFLinker/ @JDevlieghere
151151
/llvm/**/dsymutil/ @JDevlieghere
152152
/llvm/**/llvm-dwarfutil/ @JDevlieghere
153+
154+
.github/CODEOWNERS @eilamgeless-ns
155+
156+
# NS-API headers
157+
/nextsilicon/nsapi/include/nsapi/* @eilamgeless-ns @ilan-t

.github/labeler.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
ci:
2+
- "**/*.groovy"
3+
- "*Jenkinsfile*"
4+
5+
linting:
6+
- .clang-format
7+
- .clang-tidy
8+
9+
python:
10+
- "**/*.py"
11+
- "*.py"
12+
13+
misc:
14+
- .github/**/*
15+
- .gitignore
16+
- .README.md
17+
18+
glibc:
19+
- glibc
20+
21+
mpi:
22+
- ucx
23+
- nextsilicon/3rd-party/01_build-openmpi.sh
24+
25+
math:
26+
- nextcrt/next32-clang/*
27+
- nextcrt/next32-clang/**/*
28+
- nextcrt/libm/*
29+
- nextcrt/libm/**/*
30+
31+
openmp:
32+
- openmp/**/*
33+

.github/pull_request_template.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
When PR is ready for merge, trigger a *pre merge* pipeline with a comment.
2+
The comment set the toolchain version bump level - `[ci-merge-<bump_level>]`:
3+
1. `[ci-merge-major]` - trigger *pre merge* pipeline that bump toolchaion MAJOR version (`X`).
4+
2. `[ci-merge-minor]` - trigger *pre merge* pipeline that bump toolchaion MINOR version (`Y`).
5+
3. `[ci-merge-patch]` - trigger *pre merge* pipeline that bump toolchaion PATCHLEVEL version (`Z`).
6+
Toolchain versioning levels - `MAJOR.MINOR.PATCHLEVEL` (`X.Y.Z`).
7+
8+
For more details, review (pull request merge flow)[https://github.com/nextsilicon/next-llvm-project/tree/master?tab=readme-ov-file#pull-request-merge-flow]

0 commit comments

Comments
 (0)