@@ -26,7 +26,7 @@ __shared__ int s_v;
26
26
// DEVICE: @s_v ={{.*}} addrspace(3) global i32 undef,
27
27
// HOST: @s_v = internal global i32 undef,
28
28
__constant__ int c_v;
29
- // DEVICE: addrspace(4) externally_initialized global i32 0,
29
+ // DEVICE: addrspace(4) externally_initialized constant i32 0,
30
30
// HOST: @c_v = internal global i32 undef,
31
31
32
32
__device__ int d_v_i = 1 ;
@@ -51,14 +51,14 @@ __shared__ T s_t;
51
51
// DEVICE: @s_t ={{.*}} addrspace(3) global %struct.T undef,
52
52
// HOST: @s_t = internal global %struct.T undef,
53
53
__constant__ T c_t ;
54
- // DEVICE: @c_t ={{.*}} addrspace(4) externally_initialized global %struct.T zeroinitializer,
54
+ // DEVICE: @c_t ={{.*}} addrspace(4) externally_initialized constant %struct.T zeroinitializer,
55
55
// HOST: @c_t = internal global %struct.T undef,
56
56
57
57
__device__ T d_t_i = {2 };
58
58
// DEVICE: @d_t_i ={{.*}} addrspace(1) externally_initialized global %struct.T { i32 2 },
59
59
// HOST: @d_t_i = internal global %struct.T undef,
60
60
__constant__ T c_t_i = {2 };
61
- // DEVICE: @c_t_i ={{.*}} addrspace(4) externally_initialized global %struct.T { i32 2 },
61
+ // DEVICE: @c_t_i ={{.*}} addrspace(4) externally_initialized constant %struct.T { i32 2 },
62
62
// HOST: @c_t_i = internal global %struct.T undef,
63
63
64
64
// empty constructor
@@ -69,7 +69,7 @@ __shared__ EC s_ec;
69
69
// DEVICE: @s_ec ={{.*}} addrspace(3) global %struct.EC undef,
70
70
// HOST: @s_ec = internal global %struct.EC undef,
71
71
__constant__ EC c_ec;
72
- // DEVICE: @c_ec ={{.*}} addrspace(4) externally_initialized global %struct.EC zeroinitializer,
72
+ // DEVICE: @c_ec ={{.*}} addrspace(4) externally_initialized constant %struct.EC zeroinitializer,
73
73
// HOST: @c_ec = internal global %struct.EC undef
74
74
75
75
// empty destructor
@@ -80,7 +80,7 @@ __shared__ ED s_ed;
80
80
// DEVICE: @s_ed ={{.*}} addrspace(3) global %struct.ED undef,
81
81
// HOST: @s_ed = internal global %struct.ED undef,
82
82
__constant__ ED c_ed;
83
- // DEVICE: @c_ed ={{.*}} addrspace(4) externally_initialized global %struct.ED zeroinitializer,
83
+ // DEVICE: @c_ed ={{.*}} addrspace(4) externally_initialized constant %struct.ED zeroinitializer,
84
84
// HOST: @c_ed = internal global %struct.ED undef,
85
85
86
86
__device__ ECD d_ecd;
@@ -90,7 +90,7 @@ __shared__ ECD s_ecd;
90
90
// DEVICE: @s_ecd ={{.*}} addrspace(3) global %struct.ECD undef,
91
91
// HOST: @s_ecd = internal global %struct.ECD undef,
92
92
__constant__ ECD c_ecd;
93
- // DEVICE: @c_ecd ={{.*}} addrspace(4) externally_initialized global %struct.ECD zeroinitializer,
93
+ // DEVICE: @c_ecd ={{.*}} addrspace(4) externally_initialized constant %struct.ECD zeroinitializer,
94
94
// HOST: @c_ecd = internal global %struct.ECD undef,
95
95
96
96
// empty templated constructor -- allowed with no arguments
@@ -101,14 +101,14 @@ __shared__ ETC s_etc;
101
101
// DEVICE: @s_etc ={{.*}} addrspace(3) global %struct.ETC undef,
102
102
// HOST: @s_etc = internal global %struct.ETC undef,
103
103
__constant__ ETC c_etc;
104
- // DEVICE: @c_etc ={{.*}} addrspace(4) externally_initialized global %struct.ETC zeroinitializer,
104
+ // DEVICE: @c_etc ={{.*}} addrspace(4) externally_initialized constant %struct.ETC zeroinitializer,
105
105
// HOST: @c_etc = internal global %struct.ETC undef,
106
106
107
107
__device__ NCFS d_ncfs;
108
108
// DEVICE: @d_ncfs ={{.*}} addrspace(1) externally_initialized global %struct.NCFS { i32 3 }
109
109
// HOST: @d_ncfs = internal global %struct.NCFS undef,
110
110
__constant__ NCFS c_ncfs;
111
- // DEVICE: @c_ncfs ={{.*}} addrspace(4) externally_initialized global %struct.NCFS { i32 3 }
111
+ // DEVICE: @c_ncfs ={{.*}} addrspace(4) externally_initialized constant %struct.NCFS { i32 3 }
112
112
// HOST: @c_ncfs = internal global %struct.NCFS undef,
113
113
114
114
// Regular base class -- allowed
@@ -119,7 +119,7 @@ __shared__ T_B_T s_t_b_t;
119
119
// DEVICE: @s_t_b_t ={{.*}} addrspace(3) global %struct.T_B_T undef,
120
120
// HOST: @s_t_b_t = internal global %struct.T_B_T undef,
121
121
__constant__ T_B_T c_t_b_t ;
122
- // DEVICE: @c_t_b_t ={{.*}} addrspace(4) externally_initialized global %struct.T_B_T zeroinitializer,
122
+ // DEVICE: @c_t_b_t ={{.*}} addrspace(4) externally_initialized constant %struct.T_B_T zeroinitializer,
123
123
// HOST: @c_t_b_t = internal global %struct.T_B_T undef,
124
124
125
125
// Incapsulated object of allowed class -- allowed
@@ -130,7 +130,7 @@ __shared__ T_F_T s_t_f_t;
130
130
// DEVICE: @s_t_f_t ={{.*}} addrspace(3) global %struct.T_F_T undef,
131
131
// HOST: @s_t_f_t = internal global %struct.T_F_T undef,
132
132
__constant__ T_F_T c_t_f_t ;
133
- // DEVICE: @c_t_f_t ={{.*}} addrspace(4) externally_initialized global %struct.T_F_T zeroinitializer,
133
+ // DEVICE: @c_t_f_t ={{.*}} addrspace(4) externally_initialized constant %struct.T_F_T zeroinitializer,
134
134
// HOST: @c_t_f_t = internal global %struct.T_F_T undef,
135
135
136
136
// array of allowed objects -- allowed
@@ -141,7 +141,7 @@ __shared__ T_FA_T s_t_fa_t;
141
141
// DEVICE: @s_t_fa_t ={{.*}} addrspace(3) global %struct.T_FA_T undef,
142
142
// HOST: @s_t_fa_t = internal global %struct.T_FA_T undef,
143
143
__constant__ T_FA_T c_t_fa_t ;
144
- // DEVICE: @c_t_fa_t ={{.*}} addrspace(4) externally_initialized global %struct.T_FA_T zeroinitializer,
144
+ // DEVICE: @c_t_fa_t ={{.*}} addrspace(4) externally_initialized constant %struct.T_FA_T zeroinitializer,
145
145
// HOST: @c_t_fa_t = internal global %struct.T_FA_T undef,
146
146
147
147
@@ -153,7 +153,7 @@ __shared__ EC_I_EC s_ec_i_ec;
153
153
// DEVICE: @s_ec_i_ec ={{.*}} addrspace(3) global %struct.EC_I_EC undef,
154
154
// HOST: @s_ec_i_ec = internal global %struct.EC_I_EC undef,
155
155
__constant__ EC_I_EC c_ec_i_ec;
156
- // DEVICE: @c_ec_i_ec ={{.*}} addrspace(4) externally_initialized global %struct.EC_I_EC zeroinitializer,
156
+ // DEVICE: @c_ec_i_ec ={{.*}} addrspace(4) externally_initialized constant %struct.EC_I_EC zeroinitializer,
157
157
// HOST: @c_ec_i_ec = internal global %struct.EC_I_EC undef,
158
158
159
159
// DEVICE: @_ZZ2dfvE4s_ec = internal addrspace(3) global %struct.EC undef
0 commit comments