indexabletemp4.ref 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. %dx.types.Handle = type { i8* }
  2. %dx.types.CBufRet.i32 = type { i32, i32, i32, i32 }
  3. %dx.types.i8x192 = type { [192 x i8] }
  4. define void @main() {
  5. entry:
  6. %dx.v32.x01 = alloca [8 x i32], align 4
  7. %0 = call %dx.types.Handle @dx.op.createHandle(i32 57, i8 2, i32 0, i32 0, i1 false)
  8. %1 = call i32 @dx.op.loadInput.i32(i32 4, i32 0, i32 0, i8 0, i32 undef)
  9. %2 = call %dx.types.CBufRet.i32 @dx.op.cbufferLoadLegacy.i32(i32 59, %dx.types.Handle %0, i32 %1)
  10. %3 = extractvalue %dx.types.CBufRet.i32 %2, 0
  11. %4 = getelementptr [8 x i32], [8 x i32]* %dx.v32.x01, i32 0, i32 0
  12. store i32 %3, i32* %4, align 4
  13. %5 = add i32 %1, 4
  14. %6 = call %dx.types.CBufRet.i32 @dx.op.cbufferLoadLegacy.i32(i32 59, %dx.types.Handle %0, i32 %5)
  15. %7 = extractvalue %dx.types.CBufRet.i32 %6, 0
  16. %8 = getelementptr [8 x i32], [8 x i32]* %dx.v32.x01, i32 0, i32 2
  17. store i32 %7, i32* %8, align 4
  18. %9 = call i32 @dx.op.loadInput.i32(i32 4, i32 0, i32 0, i8 1, i32 undef)
  19. %10 = getelementptr [8 x i32], [8 x i32]* %dx.v32.x01, i32 0, i32 3
  20. store i32 %9, i32* %10, align 4
  21. %11 = getelementptr [8 x i32], [8 x i32]* %dx.v32.x01, i32 0, i32 3
  22. %12 = load i32, i32* %11, align 4
  23. %13 = add i32 %12, 77
  24. %14 = mul i32 %13, 2
  25. %15 = add i32 %14, 0
  26. %16 = getelementptr [8 x i32], [8 x i32]* %dx.v32.x01, i32 0, i32 %15
  27. %17 = load i32, i32* %16, align 4
  28. call void @dx.op.storeOutput.i32(i32 5, i32 0, i32 0, i8 0, i32 %17)
  29. ret void
  30. }
  31. ; Function Attrs: nounwind readonly
  32. declare %dx.types.Handle @dx.op.createHandle(i32, i8, i32, i32, i1) #0
  33. ; Function Attrs: nounwind readnone
  34. declare i32 @dx.op.loadInput.i32(i32, i32, i32, i8, i32) #1
  35. ; Function Attrs: nounwind
  36. declare void @dx.op.tempRegStore.i32(i32, i32, i32) #2
  37. ; Function Attrs: nounwind readonly
  38. declare i32 @dx.op.tempRegLoad.i32(i32, i32) #0
  39. ; Function Attrs: nounwind readonly
  40. declare %dx.types.CBufRet.i32 @dx.op.cbufferLoadLegacy.i32(i32, %dx.types.Handle, i32) #0
  41. ; Function Attrs: nounwind readnone
  42. declare float @dx.op.bitcastI32toF32(i32, i32) #1
  43. ; Function Attrs: nounwind readnone
  44. declare i32 @dx.op.bitcastF32toI32(i32, float) #1
  45. ; Function Attrs: nounwind
  46. declare void @dx.op.storeOutput.i32(i32, i32, i32, i8, i32) #2
  47. attributes #0 = { nounwind readonly }
  48. attributes #1 = { nounwind readnone }
  49. attributes #2 = { nounwind }
  50. !dx.version = !{!0}
  51. !dx.valver = !{!0}
  52. !dx.shaderModel = !{!1}
  53. !dx.resources = !{!2}
  54. !dx.entryPoints = !{!5}
  55. !llvm.ident = !{!13}
  56. !0 = !{i32 1, i32 0}
  57. !1 = !{!"ps", i32 6, i32 0}
  58. !2 = !{null, null, !3, null}
  59. !3 = !{!4}
  60. !4 = !{i32 0, %dx.types.i8x192 addrspace(2)* undef, !"CB0", i32 0, i32 0, i32 1, i32 192, null}
  61. !5 = !{void ()* @main, !"main", !6, !2, !12}
  62. !6 = !{!7, !10, null}
  63. !7 = !{!8}
  64. !8 = !{i32 0, !"1_", i8 5, i8 0, !9, i8 1, i32 1, i8 2, i32 1, i8 0, null}
  65. !9 = !{i32 0}
  66. !10 = !{!11}
  67. !11 = !{i32 0, !"SV_Target", i8 5, i8 16, !9, i8 0, i32 1, i8 1, i32 0, i8 0, null}
  68. !12 = !{i32 0, i64 256}
  69. !13 = !{!"dxbc2dxil 1.2"}