Skip to content

Commit b9f9fac

Browse files
authored
[SYCL][NFC] Code clean up revealed by self build. (#2985)
1 parent bd0edfe commit b9f9fac

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

llvm/lib/SYCLLowerIR/LowerESIMD.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ struct ESIMDIntrinDesc {
144144

145145
std::string GenXSpelling;
146146
SmallVector<ArgRule, 16> ArgRules;
147-
NameRule SuffixRule = {NO_RULE, 0};
147+
NameRule SuffixRule = {NO_RULE, {0}};
148148

149149
int getNumGenXArgs() const {
150150
auto NRules = ArgRules.size();
@@ -169,7 +169,7 @@ class ESIMDIntrinDescTable {
169169

170170
#define DEF_ARG_RULE(Nm, Kind) \
171171
static constexpr ESIMDIntrinDesc::ArgRule Nm(int16_t N) { \
172-
return ESIMDIntrinDesc::ArgRule{ESIMDIntrinDesc::Kind, N}; \
172+
return ESIMDIntrinDesc::ArgRule{ESIMDIntrinDesc::Kind, {{N, {}}}}; \
173173
}
174174
DEF_ARG_RULE(l, SRC_CALL_ALL)
175175
DEF_ARG_RULE(t, SRC_TMPL_ARG)
@@ -179,39 +179,39 @@ class ESIMDIntrinDescTable {
179179
static constexpr ESIMDIntrinDesc::ArgRule a(int16_t N) {
180180
return ESIMDIntrinDesc::ArgRule{
181181
ESIMDIntrinDesc::SRC_CALL_ARG,
182-
{N, ESIMDIntrinDesc::GenXArgConversion::NONE}};
182+
{{N, ESIMDIntrinDesc::GenXArgConversion::NONE}}};
183183
}
184184

185185
static constexpr ESIMDIntrinDesc::ArgRule ai1(int16_t N) {
186186
return ESIMDIntrinDesc::ArgRule{
187187
ESIMDIntrinDesc::SRC_CALL_ARG,
188-
{N, ESIMDIntrinDesc::GenXArgConversion::TO_I1}};
188+
{{N, ESIMDIntrinDesc::GenXArgConversion::TO_I1}}};
189189
}
190190

191191
static constexpr ESIMDIntrinDesc::ArgRule aSI(int16_t N) {
192192
return ESIMDIntrinDesc::ArgRule{
193193
ESIMDIntrinDesc::SRC_CALL_ARG,
194-
{N, ESIMDIntrinDesc::GenXArgConversion::TO_SI}};
194+
{{N, ESIMDIntrinDesc::GenXArgConversion::TO_SI}}};
195195
}
196196

197197
static constexpr ESIMDIntrinDesc::ArgRule c16(int16_t N) {
198-
return ESIMDIntrinDesc::ArgRule{ESIMDIntrinDesc::CONST_INT16, N};
198+
return ESIMDIntrinDesc::ArgRule{ESIMDIntrinDesc::CONST_INT16, {{N, {}}}};
199199
}
200200

201201
static constexpr ESIMDIntrinDesc::ArgRule c32(int16_t N) {
202-
return ESIMDIntrinDesc::ArgRule{ESIMDIntrinDesc::CONST_INT32, N};
202+
return ESIMDIntrinDesc::ArgRule{ESIMDIntrinDesc::CONST_INT32, {{N, {}}}};
203203
}
204204

205205
static constexpr ESIMDIntrinDesc::ArgRule c64(int16_t N) {
206-
return ESIMDIntrinDesc::ArgRule{ESIMDIntrinDesc::CONST_INT64, N};
206+
return ESIMDIntrinDesc::ArgRule{ESIMDIntrinDesc::CONST_INT64, {{N, {}}}};
207207
}
208208

209209
static constexpr ESIMDIntrinDesc::NameRule bo(int16_t N) {
210-
return ESIMDIntrinDesc::NameRule{ESIMDIntrinDesc::BIN_OP, N};
210+
return ESIMDIntrinDesc::NameRule{ESIMDIntrinDesc::BIN_OP, {N}};
211211
}
212212

213213
static constexpr ESIMDIntrinDesc::NameRule nk(int16_t N) {
214-
return ESIMDIntrinDesc::NameRule{ESIMDIntrinDesc::NUM_KIND, N};
214+
return ESIMDIntrinDesc::NameRule{ESIMDIntrinDesc::NUM_KIND, {N}};
215215
}
216216

217217
public:

0 commit comments

Comments
 (0)