@@ -69,52 +69,60 @@ static Type* _struct_RTStackFormat__MemRay(Module &M)
69
69
}(),
70
70
Type ::getFloatTy (M .getContext ()),
71
71
Type ::getFloatTy (M .getContext ()),
72
- _union_anon (M ),
72
+ _igc_auto_union_anon (M ),
73
73
IntegerType ::get (M .getContext (), 64 ),
74
74
IntegerType ::get (M .getContext (), 64 ),
75
- _union_anon_1 (M ),
75
+ _igc_auto_union_anon_1 (M ),
76
76
};
77
77
return StructType ::create (M .getContext (), Tys , StructName , false);
78
78
}( );
79
79
}
80
- static Type * _union_anon (Module & M )
80
+ static Type * _igc_auto_union_anon (Module & M )
81
81
{
82
82
return
83
83
[& ] {
84
- StringRef StructName = "union.anon" ;
84
+ StringRef StructName = "igc.auto.union.anon" ;
85
+ if (auto * Ty = IGCLLVM ::getTypeByName (M , StructName ))
86
+ return Ty ;
85
87
Type * Tys [] = {
86
- _struct_anon_0 (M ),
88
+ _igc_auto_struct_anon_0 (M ),
87
89
};
88
90
return StructType ::create (M .getContext (), Tys , StructName , false);
89
91
}( );
90
92
}
91
- static Type * _struct_anon_0 (Module & M )
93
+ static Type * _igc_auto_struct_anon_0 (Module & M )
92
94
{
93
95
return
94
96
[& ] {
95
- StringRef StructName = "struct.anon.0" ;
97
+ StringRef StructName = "igc.auto.struct.anon.0" ;
98
+ if (auto * Ty = IGCLLVM ::getTypeByName (M , StructName ))
99
+ return Ty ;
96
100
Type * Tys [] = {
97
101
IntegerType ::get (M .getContext (), 64 ),
98
102
};
99
103
return StructType ::create (M .getContext (), Tys , StructName , false);
100
104
}( );
101
105
}
102
- static Type * _union_anon_1 (Module & M )
106
+ static Type * _igc_auto_union_anon_1 (Module & M )
103
107
{
104
108
return
105
109
[& ] {
106
- StringRef StructName = "union.anon.1" ;
110
+ StringRef StructName = "igc.auto.union.anon.1" ;
111
+ if (auto * Ty = IGCLLVM ::getTypeByName (M , StructName ))
112
+ return Ty ;
107
113
Type * Tys [] = {
108
- _struct_anon_3 (M ),
114
+ _igc_auto_struct_anon_3 (M ),
109
115
};
110
116
return StructType ::create (M .getContext (), Tys , StructName , false);
111
117
}( );
112
118
}
113
- static Type * _struct_anon_3 (Module & M )
119
+ static Type * _igc_auto_struct_anon_3 (Module & M )
114
120
{
115
121
return
116
122
[& ] {
117
- StringRef StructName = "struct.anon.3" ;
123
+ StringRef StructName = "igc.auto.struct.anon.3" ;
124
+ if (auto * Ty = IGCLLVM ::getTypeByName (M , StructName ))
125
+ return Ty ;
118
126
Type * Tys [] = {
119
127
IntegerType ::get (M .getContext (), 64 ),
120
128
};
@@ -129,27 +137,31 @@ static Type* _struct_RTStackFormat__MemTravStack(Module &M)
129
137
if (auto * Ty = IGCLLVM ::getTypeByName (M , StructName ))
130
138
return Ty ;
131
139
Type * Tys [] = {
132
- _union_anon_5 (M ),
140
+ _igc_auto_union_anon_5 (M ),
133
141
};
134
142
return StructType ::create (M .getContext (), Tys , StructName , false);
135
143
}( );
136
144
}
137
- static Type * _union_anon_5 (Module & M )
145
+ static Type * _igc_auto_union_anon_5 (Module & M )
138
146
{
139
147
return
140
148
[& ] {
141
- StringRef StructName = "union.anon.5" ;
149
+ StringRef StructName = "igc.auto.union.anon.5" ;
150
+ if (auto * Ty = IGCLLVM ::getTypeByName (M , StructName ))
151
+ return Ty ;
142
152
Type * Tys [] = {
143
- _struct_anon_7 (M ),
153
+ _igc_auto_struct_anon_7 (M ),
144
154
};
145
155
return StructType ::create (M .getContext (), Tys , StructName , false);
146
156
}( );
147
157
}
148
- static Type * _struct_anon_7 (Module & M )
158
+ static Type * _igc_auto_struct_anon_7 (Module & M )
149
159
{
150
160
return
151
161
[& ] {
152
- StringRef StructName = "struct.anon.7" ;
162
+ StringRef StructName = "igc.auto.struct.anon.7" ;
163
+ if (auto * Ty = IGCLLVM ::getTypeByName (M , StructName ))
164
+ return Ty ;
153
165
Type * Tys [] = {
154
166
IntegerType ::get (M .getContext (), 64 ),
155
167
IntegerType ::get (M .getContext (), 32 ),
@@ -237,16 +249,18 @@ static Type* _struct_RTStackFormat__StackPtrAndBudges(Module &M)
237
249
return Ty ;
238
250
Type * Tys [] = {
239
251
IntegerType ::get (M .getContext (), 16 ),
240
- _union_anon_8 (M ),
252
+ _igc_auto_union_anon_8 (M ),
241
253
};
242
254
return StructType ::create (M .getContext (), Tys , StructName , false);
243
255
}( );
244
256
}
245
- static Type * _union_anon_8 (Module & M )
257
+ static Type * _igc_auto_union_anon_8 (Module & M )
246
258
{
247
259
return
248
260
[& ] {
249
- StringRef StructName = "union.anon.8" ;
261
+ StringRef StructName = "igc.auto.union.anon.8" ;
262
+ if (auto * Ty = IGCLLVM ::getTypeByName (M , StructName ))
263
+ return Ty ;
250
264
Type * Tys [] = {
251
265
IntegerType ::get (M .getContext (), 16 ),
252
266
};
@@ -331,9 +345,9 @@ static Type* _struct_IGC__RayDispatchGlobalData__RT__Xe(Module &M)
331
345
Type * Tys [] = {
332
346
IntegerType ::get (M .getContext (), 64 ),
333
347
IntegerType ::get (M .getContext (), 64 ),
334
- _union_anon_10 (M ),
335
- _union_anon_11 (M ),
336
- _union_anon_12 (M ),
348
+ _igc_auto_union_anon_10 (M ),
349
+ _igc_auto_union_anon_11 (M ),
350
+ _igc_auto_union_anon_12 (M ),
337
351
[& ] {
338
352
auto * EltTy =
339
353
IntegerType ::get (M .getContext (), 32 );
@@ -344,33 +358,39 @@ static Type* _struct_IGC__RayDispatchGlobalData__RT__Xe(Module &M)
344
358
return StructType ::create (M .getContext (), Tys , StructName , false);
345
359
}( );
346
360
}
347
- static Type * _union_anon_10 (Module & M )
361
+ static Type * _igc_auto_union_anon_10 (Module & M )
348
362
{
349
363
return
350
364
[& ] {
351
- StringRef StructName = "union.anon.10" ;
365
+ StringRef StructName = "igc.auto.union.anon.10" ;
366
+ if (auto * Ty = IGCLLVM ::getTypeByName (M , StructName ))
367
+ return Ty ;
352
368
Type * Tys [] = {
353
369
IntegerType ::get (M .getContext (), 32 ),
354
370
};
355
371
return StructType ::create (M .getContext (), Tys , StructName , false);
356
372
}( );
357
373
}
358
- static Type * _union_anon_11 (Module & M )
374
+ static Type * _igc_auto_union_anon_11 (Module & M )
359
375
{
360
376
return
361
377
[& ] {
362
- StringRef StructName = "union.anon.11" ;
378
+ StringRef StructName = "igc.auto.union.anon.11" ;
379
+ if (auto * Ty = IGCLLVM ::getTypeByName (M , StructName ))
380
+ return Ty ;
363
381
Type * Tys [] = {
364
382
IntegerType ::get (M .getContext (), 32 ),
365
383
};
366
384
return StructType ::create (M .getContext (), Tys , StructName , false);
367
385
}( );
368
386
}
369
- static Type * _union_anon_12 (Module & M )
387
+ static Type * _igc_auto_union_anon_12 (Module & M )
370
388
{
371
389
return
372
390
[& ] {
373
- StringRef StructName = "union.anon.12" ;
391
+ StringRef StructName = "igc.auto.union.anon.12" ;
392
+ if (auto * Ty = IGCLLVM ::getTypeByName (M , StructName ))
393
+ return Ty ;
374
394
Type * Tys [] = {
375
395
IntegerType ::get (M .getContext (), 32 ),
376
396
};
@@ -387,18 +407,18 @@ static Type* _struct_IGC__RayDispatchGlobalData__RayDispatchGlobalDataCommon(Mod
387
407
Type * Tys [] = {
388
408
IntegerType ::get (M .getContext (), 64 ),
389
409
IntegerType ::get (M .getContext (), 64 ),
390
- _union_anon_13 (M ),
391
- _union_anon_14 (M ),
410
+ _igc_auto_union_anon_13 (M ),
411
+ _igc_auto_union_anon_14 (M ),
392
412
IntegerType ::get (M .getContext (), 64 ),
393
413
IntegerType ::get (M .getContext (), 32 ),
394
414
IntegerType ::get (M .getContext (), 32 ),
395
- _union_anon_15 (M ),
415
+ _igc_auto_union_anon_15 (M ),
396
416
IntegerType ::get (M .getContext (), 64 ),
397
417
IntegerType ::get (M .getContext (), 64 ),
398
418
IntegerType ::get (M .getContext (), 32 ),
399
419
IntegerType ::get (M .getContext (), 32 ),
400
420
IntegerType ::get (M .getContext (), 64 ),
401
- _union_anon_16 (M ),
421
+ _igc_auto_union_anon_16 (M ),
402
422
IntegerType ::get (M .getContext (), 32 ),
403
423
IntegerType ::get (M .getContext (), 32 ),
404
424
IntegerType ::get (M .getContext (), 32 ),
@@ -411,55 +431,65 @@ static Type* _struct_IGC__RayDispatchGlobalData__RayDispatchGlobalDataCommon(Mod
411
431
return StructType ::create (M .getContext (), Tys , StructName , false);
412
432
}( );
413
433
}
414
- static Type * _union_anon_13 (Module & M )
434
+ static Type * _igc_auto_union_anon_13 (Module & M )
415
435
{
416
436
return
417
437
[& ] {
418
- StringRef StructName = "union.anon.13" ;
438
+ StringRef StructName = "igc.auto.union.anon.13" ;
439
+ if (auto * Ty = IGCLLVM ::getTypeByName (M , StructName ))
440
+ return Ty ;
419
441
Type * Tys [] = {
420
442
IntegerType ::get (M .getContext (), 64 ),
421
443
};
422
444
return StructType ::create (M .getContext (), Tys , StructName , false);
423
445
}( );
424
446
}
425
- static Type * _union_anon_14 (Module & M )
447
+ static Type * _igc_auto_union_anon_14 (Module & M )
426
448
{
427
449
return
428
450
[& ] {
429
- StringRef StructName = "union.anon.14" ;
451
+ StringRef StructName = "igc.auto.union.anon.14" ;
452
+ if (auto * Ty = IGCLLVM ::getTypeByName (M , StructName ))
453
+ return Ty ;
430
454
Type * Tys [] = {
431
455
IntegerType ::get (M .getContext (), 64 ),
432
456
};
433
457
return StructType ::create (M .getContext (), Tys , StructName , false);
434
458
}( );
435
459
}
436
- static Type * _union_anon_15 (Module & M )
460
+ static Type * _igc_auto_union_anon_15 (Module & M )
437
461
{
438
462
return
439
463
[& ] {
440
- StringRef StructName = "union.anon.15" ;
464
+ StringRef StructName = "igc.auto.union.anon.15" ;
465
+ if (auto * Ty = IGCLLVM ::getTypeByName (M , StructName ))
466
+ return Ty ;
441
467
Type * Tys [] = {
442
468
IntegerType ::get (M .getContext (), 64 ),
443
469
};
444
470
return StructType ::create (M .getContext (), Tys , StructName , false);
445
471
}( );
446
472
}
447
- static Type * _union_anon_16 (Module & M )
473
+ static Type * _igc_auto_union_anon_16 (Module & M )
448
474
{
449
475
return
450
476
[& ] {
451
- StringRef StructName = "union.anon.16" ;
477
+ StringRef StructName = "igc.auto.union.anon.16" ;
478
+ if (auto * Ty = IGCLLVM ::getTypeByName (M , StructName ))
479
+ return Ty ;
452
480
Type * Tys [] = {
453
- _struct_anon_17 (M ),
481
+ _igc_auto_struct_anon_17 (M ),
454
482
};
455
483
return StructType ::create (M .getContext (), Tys , StructName , false);
456
484
}( );
457
485
}
458
- static Type * _struct_anon_17 (Module & M )
486
+ static Type * _igc_auto_struct_anon_17 (Module & M )
459
487
{
460
488
return
461
489
[& ] {
462
- StringRef StructName = "struct.anon.17" ;
490
+ StringRef StructName = "igc.auto.struct.anon.17" ;
491
+ if (auto * Ty = IGCLLVM ::getTypeByName (M , StructName ))
492
+ return Ty ;
463
493
Type * Tys [] = {
464
494
IntegerType ::get (M .getContext (), 32 ),
465
495
IntegerType ::get (M .getContext (), 32 ),
@@ -775,11 +805,13 @@ static Type* _struct_RTStackFormat__InstanceLeaf_RTStackFormat__Xe___Part1(Modul
775
805
return StructType ::create (M .getContext (), Tys , StructName , false);
776
806
}( );
777
807
}
778
- static Type * _struct_anon (Module & M )
808
+ static Type * _igc_auto_struct_anon (Module & M )
779
809
{
780
810
return
781
811
[& ] {
782
- StringRef StructName = "struct.anon" ;
812
+ StringRef StructName = "igc.auto.struct.anon" ;
813
+ if (auto * Ty = IGCLLVM ::getTypeByName (M , StructName ))
814
+ return Ty ;
783
815
Type * Tys [] = {
784
816
IntegerType ::get (M .getContext (), 16 ),
785
817
IntegerType ::get (M .getContext (), 16 ),
@@ -1059,17 +1091,17 @@ auto* _getRayInfo_Xe(Value* arg_0, Value* arg_1, Value* arg_2, const Twine& _Ret
1059
1091
auto* _getRayFlagsSync_Xe (Value * arg_0 , const Twine & _ReturnName = "" )
1060
1092
{
1061
1093
auto* V_1 = CreateInBoundsGEP (_struct_RTStackFormat__RTStack (* Ctx .getModule ()), arg_0 , { getInt64 (0 ), getInt32 (2 ), getInt32 (4 ) });
1062
- auto* V_2 = CreateBitCast (V_1 , PointerType ::get (_struct_anon (* Ctx .getModule ()), arg_0 -> getType ()-> getPointerAddressSpace ()));
1063
- auto* V_3 = CreateInBoundsGEP (_struct_anon (* Ctx .getModule ()), V_2 , { getInt64 (0 ), getInt32 (3 ) });
1094
+ auto* V_2 = CreateBitCast (V_1 , PointerType ::get (_igc_auto_struct_anon (* Ctx .getModule ()), arg_0 -> getType ()-> getPointerAddressSpace ()));
1095
+ auto* V_3 = CreateInBoundsGEP (_igc_auto_struct_anon (* Ctx .getModule ()), V_2 , { getInt64 (0 ), getInt32 (3 ) });
1064
1096
auto* V_4 = CreateLoad (getInt16Ty (), V_3 , _ReturnName );
1065
1097
return V_4 ;
1066
1098
}
1067
1099
1068
1100
void _setRayFlagsSync_Xe (Value * arg_0 , Value * arg_1 )
1069
1101
{
1070
1102
auto* V_2 = CreateInBoundsGEP (_struct_RTStackFormat__RTStack (* Ctx .getModule ()), arg_0 , { getInt64 (0 ), getInt32 (2 ), getInt32 (4 ) });
1071
- auto* V_3 = CreateBitCast (V_2 , PointerType ::get (_struct_anon (* Ctx .getModule ()), arg_0 -> getType ()-> getPointerAddressSpace ()));
1072
- auto* V_4 = CreateInBoundsGEP (_struct_anon (* Ctx .getModule ()), V_3 , { getInt64 (0 ), getInt32 (3 ) });
1103
+ auto* V_3 = CreateBitCast (V_2 , PointerType ::get (_igc_auto_struct_anon (* Ctx .getModule ()), arg_0 -> getType ()-> getPointerAddressSpace ()));
1104
+ auto* V_4 = CreateInBoundsGEP (_igc_auto_struct_anon (* Ctx .getModule ()), V_3 , { getInt64 (0 ), getInt32 (3 ) });
1073
1105
CreateStore (arg_1 , V_4 );
1074
1106
return ;
1075
1107
}
@@ -1488,11 +1520,11 @@ void _createTraceRayInlinePrologue_Xe(Value* arg_0, Value* arg_1, Value* arg_2,
1488
1520
auto* V_11 = CreateBitCast (V_10 , PointerType ::get (IGCLLVM ::FixedVectorType ::get (getFloatTy (), 8 ), arg_0 -> getType ()-> getPointerAddressSpace ()));
1489
1521
CreateStore (arg_1 , V_11 );
1490
1522
auto* V_12 = CreateInBoundsGEP (_struct_RTStackFormat__RTStack (* Ctx .getModule ()), arg_0 , { getInt64 (0 ), getInt32 (2 ), getInt32 (4 ) });
1491
- auto* V_13 = CreateBitCast (V_12 , PointerType ::get (_struct_anon (* Ctx .getModule ()), arg_0 -> getType ()-> getPointerAddressSpace ()));
1492
- auto* V_14 = CreateInBoundsGEP (_struct_anon (* Ctx .getModule ()), V_13 , { getInt64 (0 ), getInt32 (3 ) });
1523
+ auto* V_13 = CreateBitCast (V_12 , PointerType ::get (_igc_auto_struct_anon (* Ctx .getModule ()), arg_0 -> getType ()-> getPointerAddressSpace ()));
1524
+ auto* V_14 = CreateInBoundsGEP (_igc_auto_struct_anon (* Ctx .getModule ()), V_13 , { getInt64 (0 ), getInt32 (3 ) });
1493
1525
auto* V_15 = CreateLoad (getInt16Ty (), V_14 );
1494
1526
auto* V_16 = CreateZExt (V_15 , getInt32Ty ());
1495
- auto* V_17 = CreateGEP (_union_anon (* Ctx .getModule ()), V_12 , { getInt64 (0 ), getInt32 (0 ), getInt32 (0 ) });
1527
+ auto* V_17 = CreateGEP (_igc_auto_union_anon (* Ctx .getModule ()), V_12 , { getInt64 (0 ), getInt32 (0 ), getInt32 (0 ) });
1496
1528
auto* V_18 = CreateAnd (arg_2 , getInt64 (281474976710655 ));
1497
1529
auto* V_19 = CreateOr (V_16 , arg_3 );
1498
1530
auto* V_20 = CreateZExt (V_19 , getInt64Ty ());
0 commit comments