@@ -178,8 +178,8 @@ groupEntryPointsByKernelType(ModuleDesc &MD,
178
178
179
179
if (!EntryPointMap.empty ()) {
180
180
for (auto &EPG : EntryPointMap) {
181
- EntryPointGroups.emplace_back (EntryPointGroup{
182
- EPG. first , std::move (EPG. second ), MD.getEntryPointGroup ().Props } );
181
+ EntryPointGroups.emplace_back (EPG. first , std::move (EPG. second ),
182
+ MD.getEntryPointGroup ().Props );
183
183
EntryPointGroup &G = EntryPointGroups.back ();
184
184
185
185
if (G.GroupId == ESIMD_SCOPE_NAME) {
@@ -191,8 +191,7 @@ groupEntryPointsByKernelType(ModuleDesc &MD,
191
191
}
192
192
} else {
193
193
// No entry points met, record this.
194
- EntryPointGroups.emplace_back (
195
- EntryPointGroup{SYCL_SCOPE_NAME, EntryPointSet{}});
194
+ EntryPointGroups.emplace_back (SYCL_SCOPE_NAME, EntryPointSet{});
196
195
EntryPointGroup &G = EntryPointGroups.back ();
197
196
G.Props .HasESIMD = SyclEsimdSplitStatus::SYCL_ONLY;
198
197
}
@@ -250,15 +249,14 @@ EntryPointGroupVec groupEntryPointsByScope(ModuleDesc &MD,
250
249
if (!EntryPointMap.empty ()) {
251
250
EntryPointGroups.reserve (EntryPointMap.size ());
252
251
for (auto &EPG : EntryPointMap) {
253
- EntryPointGroups.emplace_back (EntryPointGroup{
254
- EPG. first , std::move (EPG. second ), MD.getEntryPointGroup ().Props } );
252
+ EntryPointGroups.emplace_back (EPG. first , std::move (EPG. second ),
253
+ MD.getEntryPointGroup ().Props );
255
254
EntryPointGroup &G = EntryPointGroups.back ();
256
255
G.Props .Scope = EntryScope;
257
256
}
258
257
} else {
259
258
// No entry points met, record this.
260
- EntryPointGroups.emplace_back (
261
- EntryPointGroup{GLOBAL_SCOPE_NAME, EntryPointSet{}});
259
+ EntryPointGroups.emplace_back (GLOBAL_SCOPE_NAME, EntryPointSet{});
262
260
}
263
261
return EntryPointGroups;
264
262
}
@@ -287,13 +285,13 @@ groupEntryPointsByAttribute(ModuleDesc &MD, StringRef AttrName,
287
285
if (!EntryPointMap.empty ()) {
288
286
EntryPointGroups.reserve (EntryPointMap.size ());
289
287
for (auto &EPG : EntryPointMap) {
290
- EntryPointGroups.emplace_back (EntryPointGroup{
291
- EPG. first , std::move (EPG. second ), MD.getEntryPointGroup ().Props } );
288
+ EntryPointGroups.emplace_back (EPG. first , std::move (EPG. second ),
289
+ MD.getEntryPointGroup ().Props );
292
290
F (EntryPointGroups.back ());
293
291
}
294
292
} else {
295
293
// No entry points met, record this.
296
- EntryPointGroups.push_back ({ GLOBAL_SCOPE_NAME, {} });
294
+ EntryPointGroups.emplace_back ( GLOBAL_SCOPE_NAME, EntryPointSet{ });
297
295
F (EntryPointGroups.back ());
298
296
}
299
297
return EntryPointGroups;
0 commit comments