|
1 | | -; RUN: %dxopt %s -hlsl-passes-resume -dxilgen -S | FileCheck %s |
| 1 | +; RUN: opt -hlsl-passes-resume -dxilgen -S %s | FileCheck %s |
2 | 2 | ; generated the IR with: |
3 | 3 | ; ExtractIRForPassTest.py -p dxilgen -o LowerAllocateRayQuery2.ll tools\clang\test\CodeGenDXIL\hlsl\objects\RayQuery\allocateRayQuery2.hlsl -- -T lib_6_9 |
4 | 4 |
|
@@ -33,19 +33,19 @@ declare i32 @"dx.hl.op..i32 (i32, i32, i32)"(i32, i32, i32) #0 |
33 | 33 | define void @main(<3 x float>, float, <3 x float>, float) #0 { |
34 | 34 | entry: |
35 | 35 | ; CHECK: call i32 @dx.op.allocateRayQuery2(i32 258, i32 1024, i32 1) |
36 | | - %rayQuery12 = call i32 @"dx.hl.op..i32 (i32, i32, i32)"(i32 4, i32 1024, i32 1), !dbg !42 ; line:8 col:79 |
37 | | - %4 = load %struct.RaytracingAccelerationStructure, %struct.RaytracingAccelerationStructure* @"\01?RTAS@@3URaytracingAccelerationStructure@@A", !dbg !46 ; line:10 col:3 |
38 | | - %5 = call %dx.types.Handle @"dx.hl.createhandle..%dx.types.Handle (i32, %struct.RaytracingAccelerationStructure)"(i32 0, %struct.RaytracingAccelerationStructure %4), !dbg !46 ; line:10 col:3 |
39 | | - %6 = call %dx.types.Handle @"dx.hl.annotatehandle..%dx.types.Handle (i32, %dx.types.Handle, %dx.types.ResourceProperties, %struct.RaytracingAccelerationStructure)"(i32 14, %dx.types.Handle %5, %dx.types.ResourceProperties { i32 16, i32 0 }, %struct.RaytracingAccelerationStructure zeroinitializer), !dbg !46 ; line:10 col:3 |
40 | | - call void @"dx.hl.op..void (i32, i32, %dx.types.Handle, i32, i32, <3 x float>, float, <3 x float>, float)"(i32 325, i32 %rayQuery12, %dx.types.Handle %6, i32 1024, i32 2, <3 x float> %0, float %1, <3 x float> %2, float %3), !dbg !46 ; line:10 col:3 |
| 36 | + %rayQuery12 = call i32 @"dx.hl.op..i32 (i32, i32, i32)"(i32 4, i32 1024, i32 1), !dbg !42 ; line:15 col:79 |
| 37 | + %4 = load %struct.RaytracingAccelerationStructure, %struct.RaytracingAccelerationStructure* @"\01?RTAS@@3URaytracingAccelerationStructure@@A", !dbg !46 ; line:17 col:3 |
| 38 | + %5 = call %dx.types.Handle @"dx.hl.createhandle..%dx.types.Handle (i32, %struct.RaytracingAccelerationStructure)"(i32 0, %struct.RaytracingAccelerationStructure %4), !dbg !46 ; line:17 col:3 |
| 39 | + %6 = call %dx.types.Handle @"dx.hl.annotatehandle..%dx.types.Handle (i32, %dx.types.Handle, %dx.types.ResourceProperties, %struct.RaytracingAccelerationStructure)"(i32 14, %dx.types.Handle %5, %dx.types.ResourceProperties { i32 16, i32 0 }, %struct.RaytracingAccelerationStructure zeroinitializer), !dbg !46 ; line:17 col:3 |
| 40 | + call void @"dx.hl.op..void (i32, i32, %dx.types.Handle, i32, i32, <3 x float>, float, <3 x float>, float)"(i32 320, i32 %rayQuery12, %dx.types.Handle %6, i32 1024, i32 2, <3 x float> %0, float %1, <3 x float> %2, float %3), !dbg !46 ; line:17 col:3 |
41 | 41 |
|
42 | 42 | ; CHECK: call i32 @dx.op.allocateRayQuery(i32 178, i32 1) |
43 | | - %rayQuery23 = call i32 @"dx.hl.op..i32 (i32, i32, i32)"(i32 4, i32 1, i32 0), !dbg !47 ; line:13 col:35 |
44 | | - %7 = load %struct.RaytracingAccelerationStructure, %struct.RaytracingAccelerationStructure* @"\01?RTAS@@3URaytracingAccelerationStructure@@A", !dbg !48 ; line:14 col:3 |
45 | | - %8 = call %dx.types.Handle @"dx.hl.createhandle..%dx.types.Handle (i32, %struct.RaytracingAccelerationStructure)"(i32 0, %struct.RaytracingAccelerationStructure %7), !dbg !48 ; line:14 col:3 |
46 | | - %9 = call %dx.types.Handle @"dx.hl.annotatehandle..%dx.types.Handle (i32, %dx.types.Handle, %dx.types.ResourceProperties, %struct.RaytracingAccelerationStructure)"(i32 14, %dx.types.Handle %8, %dx.types.ResourceProperties { i32 16, i32 0 }, %struct.RaytracingAccelerationStructure zeroinitializer), !dbg !48 ; line:14 col:3 |
47 | | - call void @"dx.hl.op..void (i32, i32, %dx.types.Handle, i32, i32, <3 x float>, float, <3 x float>, float)"(i32 325, i32 %rayQuery23, %dx.types.Handle %9, i32 0, i32 2, <3 x float> %0, float %1, <3 x float> %2, float %3), !dbg !48 ; line:14 col:3 |
48 | | - ret void, !dbg !49 ; line:15 col:1 |
| 43 | + %rayQuery23 = call i32 @"dx.hl.op..i32 (i32, i32, i32)"(i32 4, i32 1, i32 0), !dbg !47 ; line:21 col:35 |
| 44 | + %7 = load %struct.RaytracingAccelerationStructure, %struct.RaytracingAccelerationStructure* @"\01?RTAS@@3URaytracingAccelerationStructure@@A", !dbg !48 ; line:22 col:3 |
| 45 | + %8 = call %dx.types.Handle @"dx.hl.createhandle..%dx.types.Handle (i32, %struct.RaytracingAccelerationStructure)"(i32 0, %struct.RaytracingAccelerationStructure %7), !dbg !48 ; line:22 col:3 |
| 46 | + %9 = call %dx.types.Handle @"dx.hl.annotatehandle..%dx.types.Handle (i32, %dx.types.Handle, %dx.types.ResourceProperties, %struct.RaytracingAccelerationStructure)"(i32 14, %dx.types.Handle %8, %dx.types.ResourceProperties { i32 16, i32 0 }, %struct.RaytracingAccelerationStructure zeroinitializer), !dbg !48 ; line:22 col:3 |
| 47 | + call void @"dx.hl.op..void (i32, i32, %dx.types.Handle, i32, i32, <3 x float>, float, <3 x float>, float)"(i32 320, i32 %rayQuery23, %dx.types.Handle %9, i32 0, i32 2, <3 x float> %0, float %1, <3 x float> %2, float %3), !dbg !48 ; line:22 col:3 |
| 48 | + ret void, !dbg !49 ; line:23 col:1 |
49 | 49 | } |
50 | 50 |
|
51 | 51 | ; Function Attrs: nounwind |
@@ -107,11 +107,11 @@ attributes #1 = { nounwind readnone } |
107 | 107 | !39 = !{void (<3 x float>, float, <3 x float>, float)* @main, i32 1} |
108 | 108 | !40 = !{i32 -2147483584} |
109 | 109 | !41 = !{i32 -1} |
110 | | -!42 = !DILocation(line: 8, column: 79, scope: !43) |
111 | | -!43 = !DISubprogram(name: "main", scope: !44, file: !44, line: 5, type: !45, isLocal: false, isDefinition: true, scopeLine: 5, flags: DIFlagPrototyped, isOptimized: false, function: void (<3 x float>, float, <3 x float>, float)* @main) |
112 | | -!44 = !DIFile(filename: "D:\5CDXC\5Ctools\5Cclang\5Ctest\5CCodeGenHLSL\5CallocateRayQuery2.hlsl", directory: "") |
| 110 | +!42 = !DILocation(line: 15, column: 79, scope: !43) |
| 111 | +!43 = !DISubprogram(name: "main", scope: !44, file: !44, line: 11, type: !45, isLocal: false, isDefinition: true, scopeLine: 11, flags: DIFlagPrototyped, isOptimized: false, function: void (<3 x float>, float, <3 x float>, float)* @main) |
| 112 | +!44 = !DIFile(filename: "tools\5Cclang\5Ctest\5CCodeGenDXIL\5Chlsl\5Cobjects\5CRayQuery\5CallocateRayQuery2.hlsl", directory: "") |
113 | 113 | !45 = !DISubroutineType(types: !24) |
114 | | -!46 = !DILocation(line: 10, column: 3, scope: !43) |
115 | | -!47 = !DILocation(line: 13, column: 35, scope: !43) |
116 | | -!48 = !DILocation(line: 14, column: 3, scope: !43) |
117 | | -!49 = !DILocation(line: 15, column: 1, scope: !43) |
| 114 | +!46 = !DILocation(line: 17, column: 3, scope: !43) |
| 115 | +!47 = !DILocation(line: 21, column: 35, scope: !43) |
| 116 | +!48 = !DILocation(line: 22, column: 3, scope: !43) |
| 117 | +!49 = !DILocation(line: 23, column: 1, scope: !43) |
0 commit comments