OLD | NEW |
---|---|
(Empty) | |
1 //===- subzero/crosstest/test_calling_conv.h - Test prototypes --*- C++ -*-===// | |
2 // | |
3 // The Subzero Code Generator | |
4 // | |
5 // This file is distributed under the University of Illinois Open Source | |
6 // License. See LICENSE.TXT for details. | |
7 // | |
8 //===----------------------------------------------------------------------===// | |
9 // | |
10 // This file declares the function prototypes for crosstesting the calling | |
11 // convention | |
Jim Stichnoth
2014/08/05 18:09:26
Period at the end of the sentence?
wala
2014/08/05 23:57:02
Done.
| |
12 // | |
13 //===----------------------------------------------------------------------===// | |
14 | |
15 #ifndef TEST_CALLING_CONV_H | |
16 #define TEST_CALLING_CONV_H | |
17 | |
18 #include "test_calling_conv.def" | |
Jim Stichnoth
2014/08/05 18:09:26
I think you forgot to "git add" this file.
wala
2014/08/05 23:57:02
Woops, done.
| |
19 | |
20 #include <stdint.h> | |
21 | |
22 typedef int v4si32 __attribute__((vector_size(16))); | |
Jim Stichnoth
2014/08/05 18:09:26
Consider #including vectors.h instead?
wala
2014/08/05 23:57:02
Done.
| |
23 typedef float v4f32 __attribute__((vector_size(16))); | |
24 | |
25 #ifdef __cplusplus | |
26 extern "C" { | |
27 #endif | |
28 | |
29 typedef void (*CalleePtrTy)(void); | |
30 extern CalleePtrTy Callee; | |
31 extern size_t DynAllocaSize; | |
32 extern size_t ArgNum; | |
33 extern char *Buf; | |
34 | |
35 void fakeUse(void *); | |
36 | |
37 void caller_i(void); | |
38 void caller_alloca_16_i(void); | |
39 void caller_alloca_17_i(void); | |
40 void caller_alloca_vla_i(void); | |
41 void Subzero_caller_i(void); | |
42 void Subzero_caller_alloca_16_i(void); | |
43 void Subzero_caller_alloca_17_i(void); | |
44 void Subzero_caller_alloca_vla_i(void); | |
45 | |
46 typedef void callee_i_Ty(int); | |
47 callee_i_Ty callee_i, Subzero_callee_i; | |
48 callee_i_Ty callee_alloca_16_i, Subzero_callee_alloca_16_i; | |
49 callee_i_Ty callee_alloca_17_i, Subzero_callee_alloca_17_i; | |
50 callee_i_Ty callee_alloca_vla_i, Subzero_callee_alloca_vla_i; | |
51 | |
52 void caller_vvvvv(void); | |
53 void Subzero_caller_vvvvv(void); | |
54 | |
55 typedef void (callee_vvvvv_Ty)(v4si32, v4si32, v4si32, v4si32, v4si32); | |
56 callee_vvvvv_Ty callee_vvvvv, Subzero_callee_vvvvv; | |
57 | |
58 void caller_vlvlvfvdviv(void); | |
59 void Subzero_caller_vlvlvfvdviv(void); | |
60 | |
61 typedef void(callee_vlvlvfvdviv_Ty)(v4f32, int64_t, v4f32, int64_t, v4f32, | |
62 float, v4f32, double, v4f32, int, v4f32); | |
63 callee_vlvlvfvdviv_Ty callee_vlvlvfvdviv, Subzero_callee_vlvlvfvdviv; | |
64 | |
65 #ifdef __cplusplus | |
66 } | |
67 #endif | |
68 | |
69 #endif // TEST_CALLING_CONV_H | |
OLD | NEW |