Skip to content

Commit 8758ab6

Browse files
JaroszPiotrigcbot
authored andcommitted
Minor refactor
Minor refactor
1 parent 198c08e commit 8758ab6

File tree

2 files changed

+56
-55
lines changed

2 files changed

+56
-55
lines changed

IGC/AdaptorCommon/RayTracing/AutoGenRTStackAccessPrivateOS.h

+55-55
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,8 @@ static Type* _struct_IGC__RayDispatchGlobalData__RT__Xe(Module &M)
483483
IntegerType::get(M.getContext(), 64),
484484
IntegerType::get(M.getContext(), 64),
485485
_igc_auto_union_anon_20(M),
486-
_igc_auto_union_anon_21(M),
487486
_igc_auto_union_anon_22(M),
487+
_igc_auto_union_anon_24(M),
488488
[&] {
489489
auto *EltTy =
490490
IntegerType::get(M.getContext(), 32);
@@ -508,11 +508,11 @@ static Type* _igc_auto_union_anon_20(Module &M)
508508
return StructType::create(M.getContext(), Tys, StructName, false);
509509
}();
510510
}
511-
static Type* _igc_auto_union_anon_21(Module &M)
511+
static Type* _igc_auto_union_anon_22(Module &M)
512512
{
513513
return
514514
[&] {
515-
StringRef StructName = "igc.auto.union.anon.21";
515+
StringRef StructName = "igc.auto.union.anon.22";
516516
if (auto *Ty = IGCLLVM::getTypeByName(M, StructName))
517517
return Ty;
518518
Type* Tys[] = {
@@ -521,11 +521,11 @@ static Type* _igc_auto_union_anon_21(Module &M)
521521
return StructType::create(M.getContext(), Tys, StructName, false);
522522
}();
523523
}
524-
static Type* _igc_auto_union_anon_22(Module &M)
524+
static Type* _igc_auto_union_anon_24(Module &M)
525525
{
526526
return
527527
[&] {
528-
StringRef StructName = "igc.auto.union.anon.22";
528+
StringRef StructName = "igc.auto.union.anon.24";
529529
if (auto *Ty = IGCLLVM::getTypeByName(M, StructName))
530530
return Ty;
531531
Type* Tys[] = {
@@ -544,18 +544,18 @@ static Type* _struct_IGC__RayDispatchGlobalData__RayDispatchGlobalDataCommon(Mod
544544
Type* Tys[] = {
545545
IntegerType::get(M.getContext(), 64),
546546
IntegerType::get(M.getContext(), 64),
547-
_igc_auto_union_anon_23(M),
548-
_igc_auto_union_anon_24(M),
547+
_igc_auto_union_anon_26(M),
548+
_igc_auto_union_anon_27(M),
549549
IntegerType::get(M.getContext(), 64),
550550
IntegerType::get(M.getContext(), 32),
551551
IntegerType::get(M.getContext(), 32),
552-
_igc_auto_union_anon_25(M),
552+
_igc_auto_union_anon_28(M),
553553
IntegerType::get(M.getContext(), 64),
554554
IntegerType::get(M.getContext(), 64),
555555
IntegerType::get(M.getContext(), 32),
556556
IntegerType::get(M.getContext(), 32),
557557
IntegerType::get(M.getContext(), 64),
558-
_igc_auto_union_anon_26(M),
558+
_igc_auto_union_anon_29(M),
559559
IntegerType::get(M.getContext(), 64),
560560
IntegerType::get(M.getContext(), 32),
561561
IntegerType::get(M.getContext(), 32),
@@ -569,11 +569,11 @@ static Type* _struct_IGC__RayDispatchGlobalData__RayDispatchGlobalDataCommon(Mod
569569
return StructType::create(M.getContext(), Tys, StructName, false);
570570
}();
571571
}
572-
static Type* _igc_auto_union_anon_23(Module &M)
572+
static Type* _igc_auto_union_anon_26(Module &M)
573573
{
574574
return
575575
[&] {
576-
StringRef StructName = "igc.auto.union.anon.23";
576+
StringRef StructName = "igc.auto.union.anon.26";
577577
if (auto *Ty = IGCLLVM::getTypeByName(M, StructName))
578578
return Ty;
579579
Type* Tys[] = {
@@ -582,11 +582,11 @@ static Type* _igc_auto_union_anon_23(Module &M)
582582
return StructType::create(M.getContext(), Tys, StructName, false);
583583
}();
584584
}
585-
static Type* _igc_auto_union_anon_24(Module &M)
585+
static Type* _igc_auto_union_anon_27(Module &M)
586586
{
587587
return
588588
[&] {
589-
StringRef StructName = "igc.auto.union.anon.24";
589+
StringRef StructName = "igc.auto.union.anon.27";
590590
if (auto *Ty = IGCLLVM::getTypeByName(M, StructName))
591591
return Ty;
592592
Type* Tys[] = {
@@ -595,11 +595,11 @@ static Type* _igc_auto_union_anon_24(Module &M)
595595
return StructType::create(M.getContext(), Tys, StructName, false);
596596
}();
597597
}
598-
static Type* _igc_auto_union_anon_25(Module &M)
598+
static Type* _igc_auto_union_anon_28(Module &M)
599599
{
600600
return
601601
[&] {
602-
StringRef StructName = "igc.auto.union.anon.25";
602+
StringRef StructName = "igc.auto.union.anon.28";
603603
if (auto *Ty = IGCLLVM::getTypeByName(M, StructName))
604604
return Ty;
605605
Type* Tys[] = {
@@ -608,24 +608,24 @@ static Type* _igc_auto_union_anon_25(Module &M)
608608
return StructType::create(M.getContext(), Tys, StructName, false);
609609
}();
610610
}
611-
static Type* _igc_auto_union_anon_26(Module &M)
611+
static Type* _igc_auto_union_anon_29(Module &M)
612612
{
613613
return
614614
[&] {
615-
StringRef StructName = "igc.auto.union.anon.26";
615+
StringRef StructName = "igc.auto.union.anon.29";
616616
if (auto *Ty = IGCLLVM::getTypeByName(M, StructName))
617617
return Ty;
618618
Type* Tys[] = {
619-
_igc_auto_struct_anon_27(M),
619+
_igc_auto_struct_anon_30(M),
620620
};
621621
return StructType::create(M.getContext(), Tys, StructName, false);
622622
}();
623623
}
624-
static Type* _igc_auto_struct_anon_27(Module &M)
624+
static Type* _igc_auto_struct_anon_30(Module &M)
625625
{
626626
return
627627
[&] {
628-
StringRef StructName = "igc.auto.struct.anon.27";
628+
StringRef StructName = "igc.auto.struct.anon.30";
629629
if (auto *Ty = IGCLLVM::getTypeByName(M, StructName))
630630
return Ty;
631631
Type* Tys[] = {
@@ -959,11 +959,11 @@ static Type* _igc_auto_struct_anon(Module &M)
959959
return StructType::create(M.getContext(), Tys, StructName, false);
960960
}();
961961
}
962-
static Type* _struct_RTStackFormat__InstanceLeaf_31(Module &M)
962+
static Type* _struct_RTStackFormat__InstanceLeaf_36(Module &M)
963963
{
964964
return
965965
[&] {
966-
StringRef StructName = "struct.RTStackFormat::InstanceLeaf.31";
966+
StringRef StructName = "struct.RTStackFormat::InstanceLeaf.36";
967967
if (auto *Ty = IGCLLVM::getTypeByName(M, StructName))
968968
return Ty;
969969
Type* Tys[] = {
@@ -1043,15 +1043,15 @@ static Type* _struct_RTStackFormat__InstanceLeaf_RTStackFormat__Xe3___Part1(Modu
10431043
return StructType::create(M.getContext(), Tys, StructName, false);
10441044
}();
10451045
}
1046-
static Type* _struct_RTStackFormat__ProceduralLeaf_50(Module &M)
1046+
static Type* _struct_RTStackFormat__ProceduralLeaf_55(Module &M)
10471047
{
10481048
return
10491049
[&] {
1050-
StringRef StructName = "struct.RTStackFormat::ProceduralLeaf.50";
1050+
StringRef StructName = "struct.RTStackFormat::ProceduralLeaf.55";
10511051
if (auto *Ty = IGCLLVM::getTypeByName(M, StructName))
10521052
return Ty;
10531053
Type* Tys[] = {
1054-
_struct_RTStackFormat__PrimLeafDesc_51(M),
1054+
_struct_RTStackFormat__PrimLeafDesc_56(M),
10551055
IntegerType::get(M.getContext(), 32),
10561056
[&] {
10571057
auto *EltTy =
@@ -1062,11 +1062,11 @@ static Type* _struct_RTStackFormat__ProceduralLeaf_50(Module &M)
10621062
return StructType::create(M.getContext(), Tys, StructName, false);
10631063
}();
10641064
}
1065-
static Type* _struct_RTStackFormat__PrimLeafDesc_51(Module &M)
1065+
static Type* _struct_RTStackFormat__PrimLeafDesc_56(Module &M)
10661066
{
10671067
return
10681068
[&] {
1069-
StringRef StructName = "struct.RTStackFormat::PrimLeafDesc.51";
1069+
StringRef StructName = "struct.RTStackFormat::PrimLeafDesc.56";
10701070
if (auto *Ty = IGCLLVM::getTypeByName(M, StructName))
10711071
return Ty;
10721072
Type* Tys[] = {
@@ -1076,15 +1076,15 @@ static Type* _struct_RTStackFormat__PrimLeafDesc_51(Module &M)
10761076
return StructType::create(M.getContext(), Tys, StructName, false);
10771077
}();
10781078
}
1079-
static Type* _struct_RTStackFormat__QuadLeaf_52(Module &M)
1079+
static Type* _struct_RTStackFormat__QuadLeaf_57(Module &M)
10801080
{
10811081
return
10821082
[&] {
1083-
StringRef StructName = "struct.RTStackFormat::QuadLeaf.52";
1083+
StringRef StructName = "struct.RTStackFormat::QuadLeaf.57";
10841084
if (auto *Ty = IGCLLVM::getTypeByName(M, StructName))
10851085
return Ty;
10861086
Type* Tys[] = {
1087-
_struct_RTStackFormat__PrimLeafDesc_51(M),
1087+
_struct_RTStackFormat__PrimLeafDesc_56(M),
10881088
IntegerType::get(M.getContext(), 32),
10891089
IntegerType::get(M.getContext(), 32),
10901090
[&] {
@@ -1537,7 +1537,7 @@ auto* _getInstanceLeaf_Xe3(Value* arg_0, Value* arg_1, const Twine& _ReturnName
15371537
auto* V_5 = CreateSelect(V_3, V_4, V_2);
15381538
auto* V_6 = CreateLoad(getInt64Ty(), V_5);
15391539
auto* V_7 = CreateAnd(V_6, getInt64(18446744073709551552u));
1540-
auto* V_8 = CreateIntToPtr(V_7, PointerType::get(_struct_RTStackFormat__InstanceLeaf_31(*Ctx.getModule()), 1), _ReturnName);
1540+
auto* V_8 = CreateIntToPtr(V_7, PointerType::get(_struct_RTStackFormat__InstanceLeaf_36(*Ctx.getModule()), 1), _ReturnName);
15411541
return V_8;
15421542
}
15431543

@@ -1566,8 +1566,8 @@ auto* _getInstanceContributionToHitGroupIndex_Xe3(Value* arg_0, Value* arg_1, co
15661566
auto* V_5 = CreateSelect(V_3, V_4, V_2);
15671567
auto* V_6 = CreateLoad(getInt64Ty(), V_5);
15681568
auto* V_7 = CreateAnd(V_6, getInt64(18446744073709551552u));
1569-
auto* V_8 = CreateIntToPtr(V_7, PointerType::get(_struct_RTStackFormat__InstanceLeaf_31(*Ctx.getModule()), 1));
1570-
auto* V_9 = CreateInBoundsGEP(_struct_RTStackFormat__InstanceLeaf_31(*Ctx.getModule()), V_8, { getInt64(0), getInt32(0), getInt32(0) });
1569+
auto* V_8 = CreateIntToPtr(V_7, PointerType::get(_struct_RTStackFormat__InstanceLeaf_36(*Ctx.getModule()), 1));
1570+
auto* V_9 = CreateInBoundsGEP(_struct_RTStackFormat__InstanceLeaf_36(*Ctx.getModule()), V_8, { getInt64(0), getInt32(0), getInt32(0) });
15711571
auto* V_10 = CreateLoad(getInt32Ty(), V_9);
15721572
auto* V_11 = CreateAnd(V_10, getInt32(16777215), _ReturnName);
15731573
return V_11;
@@ -1895,34 +1895,34 @@ auto* _TransformWorldToObject_Xe3(Value* arg_0, Value* arg_1, Value* arg_2, Valu
18951895
auto* V_10 = CreateSelect(V_8, V_9, V_7);
18961896
auto* V_11 = CreateLoad(getInt64Ty(), V_10);
18971897
auto* V_12 = CreateAnd(V_11, getInt64(18446744073709551552u));
1898-
auto* V_13 = CreateIntToPtr(V_12, PointerType::get(_struct_RTStackFormat__InstanceLeaf_31(*Ctx.getModule()), 1));
1898+
auto* V_13 = CreateIntToPtr(V_12, PointerType::get(_struct_RTStackFormat__InstanceLeaf_36(*Ctx.getModule()), 1));
18991899
auto* V_14 = CreateZExt(arg_1, getInt64Ty());
19001900
CreateCondBr(arg_2, BB_5, BB_6);
19011901
SetInsertPoint(BB_5);
1902-
auto* V_15 = CreateInBoundsGEP(_struct_RTStackFormat__InstanceLeaf_31(*Ctx.getModule()), V_13, { getInt64(0), getInt32(1), getInt32(6), V_14 });
1902+
auto* V_15 = CreateInBoundsGEP(_struct_RTStackFormat__InstanceLeaf_36(*Ctx.getModule()), V_13, { getInt64(0), getInt32(1), getInt32(6), V_14 });
19031903
auto* V_16 = CreateLoad(getFloatTy(), V_15);
19041904
CreateBr(BB_6);
19051905
SetInsertPoint(BB_6);
19061906
auto* V_17 = CreatePHI(getFloatTy(), 2);
19071907
auto* V_18 = CreateInBoundsGEP(_struct_RTStackFormat__RTStack_8(*Ctx.getModule()), arg_0, { getInt64(0), getInt32(2), getInt32(0), getInt64(0) });
19081908
auto* V_19 = CreateInBoundsGEP(_struct_RTStackFormat__RTStack_8(*Ctx.getModule()), arg_0, { getInt64(0), getInt32(2), getInt32(1), getInt64(0) });
19091909
auto* V_20 = CreateSelect(arg_2, V_18, V_19);
1910-
auto* V_21 = CreateInBoundsGEP(_struct_RTStackFormat__InstanceLeaf_31(*Ctx.getModule()), V_13, { getInt64(0), getInt32(0), getInt32(3), V_14 });
1910+
auto* V_21 = CreateInBoundsGEP(_struct_RTStackFormat__InstanceLeaf_36(*Ctx.getModule()), V_13, { getInt64(0), getInt32(0), getInt32(3), V_14 });
19111911
auto* V_22 = CreateLoad(getFloatTy(), V_21);
19121912
auto* V_23 = CreateLoad(getFloatTy(), V_20);
19131913
auto* V_24 = CreateFMul(V_22, V_23);
19141914
auto* V_25 = CreateFAdd(V_17, V_24);
19151915
auto* V_26 = CreateAdd(arg_1, getInt32(3));
19161916
auto* V_27 = CreateZExt(V_26, getInt64Ty());
1917-
auto* V_28 = CreateInBoundsGEP(_struct_RTStackFormat__InstanceLeaf_31(*Ctx.getModule()), V_13, { getInt64(0), getInt32(0), getInt32(3), V_27 });
1917+
auto* V_28 = CreateInBoundsGEP(_struct_RTStackFormat__InstanceLeaf_36(*Ctx.getModule()), V_13, { getInt64(0), getInt32(0), getInt32(3), V_27 });
19181918
auto* V_29 = CreateLoad(getFloatTy(), V_28);
19191919
auto* V_30 = CreateInBoundsGEP(getFloatTy(), V_20, getInt64(1));
19201920
auto* V_31 = CreateLoad(getFloatTy(), V_30);
19211921
auto* V_32 = CreateFMul(V_29, V_31);
19221922
auto* V_33 = CreateFAdd(V_25, V_32);
19231923
auto* V_34 = CreateAdd(arg_1, getInt32(6));
19241924
auto* V_35 = CreateZExt(V_34, getInt64Ty());
1925-
auto* V_36 = CreateInBoundsGEP(_struct_RTStackFormat__InstanceLeaf_31(*Ctx.getModule()), V_13, { getInt64(0), getInt32(0), getInt32(3), V_35 });
1925+
auto* V_36 = CreateInBoundsGEP(_struct_RTStackFormat__InstanceLeaf_36(*Ctx.getModule()), V_13, { getInt64(0), getInt32(0), getInt32(3), V_35 });
19261926
auto* V_37 = CreateLoad(getFloatTy(), V_36);
19271927
auto* V_38 = CreateInBoundsGEP(getFloatTy(), V_20, getInt64(2));
19281928
auto* V_39 = CreateLoad(getFloatTy(), V_38);
@@ -1969,16 +1969,16 @@ auto* _getObjWorldAndWorldObj_Xe3(Value* arg_0, Value* arg_1, Value* arg_2, Valu
19691969
auto* V_7 = CreateSelect(V_5, V_6, V_4);
19701970
auto* V_8 = CreateLoad(getInt64Ty(), V_7);
19711971
auto* V_9 = CreateAnd(V_8, getInt64(18446744073709551552u));
1972-
auto* V_10 = CreateIntToPtr(V_9, PointerType::get(_struct_RTStackFormat__InstanceLeaf_31(*Ctx.getModule()), 1));
1972+
auto* V_10 = CreateIntToPtr(V_9, PointerType::get(_struct_RTStackFormat__InstanceLeaf_36(*Ctx.getModule()), 1));
19731973
auto* V_11 = CreateZExt(arg_1, getInt64Ty());
1974-
auto* V_12 = CreateInBoundsGEP(_struct_RTStackFormat__InstanceLeaf_31(*Ctx.getModule()), V_10, { getInt64(0), getInt32(1), getInt32(3), V_11 });
1975-
auto* V_13 = CreateInBoundsGEP(_struct_RTStackFormat__InstanceLeaf_31(*Ctx.getModule()), V_10, { getInt64(0), getInt32(0), getInt32(3), V_11 });
1974+
auto* V_12 = CreateInBoundsGEP(_struct_RTStackFormat__InstanceLeaf_36(*Ctx.getModule()), V_10, { getInt64(0), getInt32(1), getInt32(3), V_11 });
1975+
auto* V_13 = CreateInBoundsGEP(_struct_RTStackFormat__InstanceLeaf_36(*Ctx.getModule()), V_10, { getInt64(0), getInt32(0), getInt32(3), V_11 });
19761976
auto* V_14 = CreateSelect(arg_2, V_12, V_13);
19771977
auto* V_15 = CreateICmpUGT(arg_1, getInt32(8));
19781978
auto* V_16 = CreateAdd(arg_1, getInt32(4294967287));
19791979
auto* V_17 = CreateZExt(V_16, getInt64Ty());
1980-
auto* V_18 = CreateInBoundsGEP(_struct_RTStackFormat__InstanceLeaf_31(*Ctx.getModule()), V_10, { getInt64(0), getInt32(0), getInt32(6), V_17 });
1981-
auto* V_19 = CreateInBoundsGEP(_struct_RTStackFormat__InstanceLeaf_31(*Ctx.getModule()), V_10, { getInt64(0), getInt32(1), getInt32(6), V_17 });
1980+
auto* V_18 = CreateInBoundsGEP(_struct_RTStackFormat__InstanceLeaf_36(*Ctx.getModule()), V_10, { getInt64(0), getInt32(0), getInt32(6), V_17 });
1981+
auto* V_19 = CreateInBoundsGEP(_struct_RTStackFormat__InstanceLeaf_36(*Ctx.getModule()), V_10, { getInt64(0), getInt32(1), getInt32(6), V_17 });
19821982
auto* V_20 = CreateSelect(arg_2, V_18, V_19);
19831983
auto* V_21 = CreateSelect(V_15, V_20, V_14);
19841984
auto* V_22 = CreateLoad(getFloatTy(), V_21, _ReturnName);
@@ -2071,8 +2071,8 @@ auto* _getInstanceIndex_Xe3(Value* arg_0, Value* arg_1, const Twine& _ReturnName
20712071
auto* V_5 = CreateSelect(V_3, V_4, V_2);
20722072
auto* V_6 = CreateLoad(getInt64Ty(), V_5);
20732073
auto* V_7 = CreateAnd(V_6, getInt64(18446744073709551552u));
2074-
auto* V_8 = CreateIntToPtr(V_7, PointerType::get(_struct_RTStackFormat__InstanceLeaf_31(*Ctx.getModule()), 1));
2075-
auto* V_9 = CreateInBoundsGEP(_struct_RTStackFormat__InstanceLeaf_31(*Ctx.getModule()), V_8, { getInt64(0), getInt32(1), getInt32(2) });
2074+
auto* V_8 = CreateIntToPtr(V_7, PointerType::get(_struct_RTStackFormat__InstanceLeaf_36(*Ctx.getModule()), 1));
2075+
auto* V_9 = CreateInBoundsGEP(_struct_RTStackFormat__InstanceLeaf_36(*Ctx.getModule()), V_8, { getInt64(0), getInt32(1), getInt32(2) });
20762076
auto* V_10 = CreateLoad(getInt32Ty(), V_9, _ReturnName);
20772077
return V_10;
20782078
}
@@ -2101,8 +2101,8 @@ auto* _getInstanceID_Xe3(Value* arg_0, Value* arg_1, const Twine& _ReturnName =
21012101
auto* V_5 = CreateSelect(V_3, V_4, V_2);
21022102
auto* V_6 = CreateLoad(getInt64Ty(), V_5);
21032103
auto* V_7 = CreateAnd(V_6, getInt64(18446744073709551552u));
2104-
auto* V_8 = CreateIntToPtr(V_7, PointerType::get(_struct_RTStackFormat__InstanceLeaf_31(*Ctx.getModule()), 1));
2105-
auto* V_9 = CreateInBoundsGEP(_struct_RTStackFormat__InstanceLeaf_31(*Ctx.getModule()), V_8, { getInt64(0), getInt32(1), getInt32(1) });
2104+
auto* V_8 = CreateIntToPtr(V_7, PointerType::get(_struct_RTStackFormat__InstanceLeaf_36(*Ctx.getModule()), 1));
2105+
auto* V_9 = CreateInBoundsGEP(_struct_RTStackFormat__InstanceLeaf_36(*Ctx.getModule()), V_8, { getInt64(0), getInt32(1), getInt32(1) });
21062106
auto* V_10 = CreateLoad(getInt32Ty(), V_9, _ReturnName);
21072107
return V_10;
21082108
}
@@ -2179,8 +2179,8 @@ auto* _getPrimitiveIndex_Xe3(Value* arg_0, Value* arg_1, Value* arg_2, const Twi
21792179
CreateCondBr(V_17, BB_5, BB_4);
21802180
SetInsertPoint(BB_5);
21812181
auto* V_18 = CreateAnd(V_15, getInt32(31));
2182-
auto* V_19 = CreateIntToPtr(V_11, PointerType::get(_struct_RTStackFormat__QuadLeaf_52(*Ctx.getModule()), 1));
2183-
auto* V_20 = CreateInBoundsGEP(_struct_RTStackFormat__QuadLeaf_52(*Ctx.getModule()), V_19, { getInt64(0), getInt32(1) });
2182+
auto* V_19 = CreateIntToPtr(V_11, PointerType::get(_struct_RTStackFormat__QuadLeaf_57(*Ctx.getModule()), 1));
2183+
auto* V_20 = CreateInBoundsGEP(_struct_RTStackFormat__QuadLeaf_57(*Ctx.getModule()), V_19, { getInt64(0), getInt32(1) });
21842184
auto* V_21 = CreateLoad(getInt32Ty(), V_20);
21852185
auto* V_22 = CreateAdd(V_21, V_18);
21862186
CreateBr(BB_6);
@@ -2190,9 +2190,9 @@ auto* _getPrimitiveIndex_Xe3(Value* arg_0, Value* arg_1, Value* arg_2, const Twi
21902190
SetInsertPoint(BB_4);
21912191
auto* V_24 = CreateLShr(V_15, getInt32(20));
21922192
auto* V_25 = CreateAnd(V_24, getInt32(15));
2193-
auto* V_26 = CreateIntToPtr(V_11, PointerType::get(_struct_RTStackFormat__ProceduralLeaf_50(*Ctx.getModule()), 1));
2193+
auto* V_26 = CreateIntToPtr(V_11, PointerType::get(_struct_RTStackFormat__ProceduralLeaf_55(*Ctx.getModule()), 1));
21942194
auto* V_27 = CreateZExt(V_25, getInt64Ty());
2195-
auto* V_28 = CreateInBoundsGEP(_struct_RTStackFormat__ProceduralLeaf_50(*Ctx.getModule()), V_26, { getInt64(0), getInt32(2), V_27 });
2195+
auto* V_28 = CreateInBoundsGEP(_struct_RTStackFormat__ProceduralLeaf_55(*Ctx.getModule()), V_26, { getInt64(0), getInt32(2), V_27 });
21962196
auto* V_29 = CreateLoad(getInt32Ty(), V_28);
21972197
CreateBr(BB_6);
21982198
V_23->addIncoming(V_29, BB_4);
@@ -2231,10 +2231,10 @@ auto* _getGeometryIndex_Xe3(Value* arg_0, Value* arg_1, Value* arg_2, const Twin
22312231
auto* V_7 = CreateAnd(V_6, getInt64(18446744073709551552u));
22322232
auto* V_8 = CreateAnd(arg_1, getInt32(1));
22332233
auto* V_9 = CreateICmpEQ(V_8, getInt32(0));
2234-
auto* V_10 = CreateIntToPtr(V_7, PointerType::get(_struct_RTStackFormat__ProceduralLeaf_50(*Ctx.getModule()), 1));
2235-
auto* V_11 = CreateInBoundsGEP(_struct_RTStackFormat__ProceduralLeaf_50(*Ctx.getModule()), V_10, { getInt64(0), getInt32(0), getInt32(1) });
2236-
auto* V_12 = CreateIntToPtr(V_7, PointerType::get(_struct_RTStackFormat__QuadLeaf_52(*Ctx.getModule()), 1));
2237-
auto* V_13 = CreateInBoundsGEP(_struct_RTStackFormat__QuadLeaf_52(*Ctx.getModule()), V_12, { getInt64(0), getInt32(0), getInt32(1) });
2234+
auto* V_10 = CreateIntToPtr(V_7, PointerType::get(_struct_RTStackFormat__ProceduralLeaf_55(*Ctx.getModule()), 1));
2235+
auto* V_11 = CreateInBoundsGEP(_struct_RTStackFormat__ProceduralLeaf_55(*Ctx.getModule()), V_10, { getInt64(0), getInt32(0), getInt32(1) });
2236+
auto* V_12 = CreateIntToPtr(V_7, PointerType::get(_struct_RTStackFormat__QuadLeaf_57(*Ctx.getModule()), 1));
2237+
auto* V_13 = CreateInBoundsGEP(_struct_RTStackFormat__QuadLeaf_57(*Ctx.getModule()), V_12, { getInt64(0), getInt32(0), getInt32(1) });
22382238
auto* V_14 = CreateSelect(V_9, V_13, V_11);
22392239
auto* V_15 = CreateLoad(getInt32Ty(), V_14);
22402240
auto* V_16 = CreateAnd(V_15, getInt32(16777215), _ReturnName);

IGC/AdaptorCommon/RayTracing/TraceRayInlineLoweringPass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ Value* TraceRayInlineLoweringPass::emitProceedMainBody(
401401
);
402402
}
403403

404+
404405
//TraceRay
405406
Value* retSyncRT = builder.createSyncTraceRay(
406407
builder.getBvhLevel(ShadowMemStackPointer, false),

0 commit comments

Comments
 (0)