Fixtures: reconverge_sample's and reconverge_select's golden printouts
Written by tests::air_input::bless_engine_goldens under the pinned LLVM on msi-laptop at dbcc0a89df (job m3-max-72157). These are the only two files it changed. Without them, engine_fixtures_match_their_golden_printout failed (gate m3-max-72143).
This commit is contained in:
1 parent
9a2f2b81a9
commit
12f2440aff
2 files changed
+1364
No files matched your search
@@ -0,0 +1,903 @@
|
||||
target triple = "air64_v28-apple-macosx26.0.0"
|
||||
source_filename = "-"
|
||||
; datalayout DataLayout { endian: Little, pointers: {0: PointerSpec { size_bits: 64, abi_bits: 64, pref_bits: 64, index_bits: 64 }}, ints: {1: AlignSpec { abi_bits: 8, pref_bits: 8 }, 8: AlignSpec { abi_bits: 8, pref_bits: 8 }, 16: AlignSpec { abi_bits: 16, pref_bits: 16 }, 32: AlignSpec { abi_bits: 32, pref_bits: 32 }, 64: AlignSpec { abi_bits: 64, pref_bits: 64 }}, floats: {16: AlignSpec { abi_bits: 16, pref_bits: 16 }, 32: AlignSpec { abi_bits: 32, pref_bits: 32 }, 64: AlignSpec { abi_bits: 64, pref_bits: 64 }, 128: AlignSpec { abi_bits: 128, pref_bits: 128 }}, vectors: {16: AlignSpec { abi_bits: 16, pref_bits: 16 }, 24: AlignSpec { abi_bits: 32, pref_bits: 32 }, 32: AlignSpec { abi_bits: 32, pref_bits: 32 }, 48: AlignSpec { abi_bits: 64, pref_bits: 64 }, 64: AlignSpec { abi_bits: 64, pref_bits: 64 }, 96: AlignSpec { abi_bits: 128, pref_bits: 128 }, 128: AlignSpec { abi_bits: 128, pref_bits: 128 }, 192: AlignSpec { abi_bits: 256, pref_bits: 256 }, 256: AlignSpec { abi_bits: 256, pref_bits: 256 }, 512: AlignSpec { abi_bits: 512, pref_bits: 512 }, 1024: AlignSpec { abi_bits: 1024, pref_bits: 1024 }}, aggregate: AlignSpec { abi_bits: 0, pref_bits: 64 }, native_ints: [8, 16, 32], stack_align_bits: None, alloca_space: 0, program_space: 0, globals_space: 0, mangling: None, fn_ptr_align: None, non_integral: [] }
|
||||
%t2 = type [2 x i64]
|
||||
%t6 = type <{ <4 x float> }>
|
||||
%t8 = type %t6 (i32)
|
||||
%t9 = type float (i32)
|
||||
%t11 = type <4 x float> (<4 x float>, ptr addrspace(1), ptr addrspace(1))
|
||||
%t14 = type <2 x i32> (<2 x float>)
|
||||
%t16 = type { <4 x float>, i8 }
|
||||
%t18 = type %t16 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i1, <2 x i32>, i1, float, float, i32)
|
||||
%t19 = type float (float)
|
||||
%t21 = type void ()
|
||||
%t23 = type [2 x i32]
|
||||
c22 = %t2 [34901797601026194, 0]
|
||||
c23 = %t2 [34901797601036946, 0]
|
||||
c24 = %t23 [27, 2]
|
||||
c38 = <2 x float> [0x40000000, 0x40000000]
|
||||
c39 = <2 x float> [0xBF800000, 0xBF800000]
|
||||
c42 = <4 x i32> [0, 1, poison, poison]
|
||||
c46 = <4 x float> [poison, poison, 0x0, 0x3F800000]
|
||||
c47 = <4 x i32> [0, 1, 6, 7]
|
||||
c51 = <2 x i32> [0, 1]
|
||||
c58 = <2 x i32> [1, 1]
|
||||
c65 = <2 x float> [0x3FC00000, 0x3FC00000]
|
||||
c67 = <4 x i32> [0, 1, 2, 4]
|
||||
c78 = <2 x i32> [3, 3]
|
||||
c81 = <4 x float> [poison, 0x0, 0x0, 0xC0A00000]
|
||||
@g0 "__air_sampler_state" = internal addrspace(2) constant %t2 c22, align 8
|
||||
@g1 "__air_sampler_state.1" = internal addrspace(2) constant %t2 c23, align 8
|
||||
|
||||
define %t8 @f0 "rc_cover" memory(NoModRef, NoModRef, NoModRef) "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "no-builtins"="" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" {
|
||||
bb0:
|
||||
%i0 = shl i32 %a0, i32 1
|
||||
%i1 = and i32 %i0, i32 2
|
||||
%i2 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i1)
|
||||
%i3 = insertelement <2 x float> undef, %i2, i64 0
|
||||
%i4 = and i32 %a0, i32 2
|
||||
%i5 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i4)
|
||||
%i6 = insertelement %i3, %i5, i64 1
|
||||
%i7 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i6, <2 x float> c38
|
||||
%i8 = fadd reassoc nnan ninf nsz arcp contract afn <2 x float> %i7, <2 x float> c39
|
||||
%i9 = shufflevector <4 x float> %i8, <2 x float> poison, <0, 1, poison, poison>
|
||||
%i10 = shufflevector <4 x float> %i9, <4 x float> c46, <0, 1, 6, 7>
|
||||
%i11 = insertvalue %t6 undef %i10, 0
|
||||
ret %i11
|
||||
}
|
||||
|
||||
declare %t9 @f1 "air.convert.f.f32.u.i32" memory(NoModRef, NoModRef, NoModRef)
|
||||
|
||||
define %t11 @f2 "rc_if" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="128" "no-builtins"="" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" %a1( Ref nocapture ) %a2( Ref nocapture "air-buffer-no-alias"="" ) {
|
||||
bb0:
|
||||
%i0 = shufflevector <2 x float> %a0, <4 x float> poison, <0, 1>
|
||||
%i1 = tail call <2 x i32> @f3 [air Convert(Convert { dst: NumTy { elem: I32, lanes: 2 }, dst_kind: Unsigned, src: NumTy { elem: F32, lanes: 2 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i0)
|
||||
%i2 = extractelement %i1, i64 0
|
||||
%i3 = mul i32 %i2, i32 2654435761
|
||||
%i4 = extractelement %i1, i64 1
|
||||
%i5 = mul i32 %i4, i32 2246822519
|
||||
%i6 = xor i32 %i3, %i5
|
||||
%i7 = lshr i32 %i6, i32 15
|
||||
%i8 = xor i32 %i7, %i6
|
||||
%i9 = mul i32 %i8, i32 739982445
|
||||
%i10 = lshr i32 %i9, i32 12
|
||||
%i11 = xor i32 %i10, %i9
|
||||
%i12 = and i32 %i11, i32 255
|
||||
%i13 = zext %i12 to i64
|
||||
%i14 = getelementptr inbounds i32, %a2, %i13
|
||||
%i15 = load i32, %i14, align 4
|
||||
%i16 = and i32 %i15, i32 1
|
||||
%i17 = icmp eq %i16, i32 0
|
||||
br %i17, bb2, bb1
|
||||
bb1:
|
||||
%i19 = lshr i32 %i11, i32 8
|
||||
%i20 = and i32 %i19, i32 255
|
||||
%i21 = zext %i20 to i64
|
||||
%i22 = getelementptr inbounds i32, %a2, %i21
|
||||
%i23 = load i32, %i22, align 4
|
||||
%i24 = and i32 %i23, i32 255
|
||||
%i25 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i24)
|
||||
%i26 = lshr <2 x i32> %i1, <2 x i32> c58
|
||||
%i27 = extractelement %i26, i64 0
|
||||
%i28 = mul i32 %i27, i32 2654435761
|
||||
%i29 = extractelement %i26, i64 1
|
||||
%i30 = mul i32 %i29, i32 2246822519
|
||||
%i31 = xor i32 %i28, %i30
|
||||
%i32 = lshr i32 %i31, i32 15
|
||||
%i33 = xor i32 %i32, %i31
|
||||
%i34 = mul i32 %i33, i32 739982445
|
||||
%i35 = lshr i32 %i34, i32 12
|
||||
%i36 = xor i32 %i35, %i34
|
||||
br bb3
|
||||
bb2:
|
||||
%i38 = lshr i32 %i11, i32 16
|
||||
%i39 = and i32 %i38, i32 255
|
||||
%i40 = zext %i39 to i64
|
||||
%i41 = getelementptr inbounds i32, %a2, %i40
|
||||
%i42 = load i32, %i41, align 4
|
||||
%i43 = and i32 %i42, i32 255
|
||||
%i44 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i43)
|
||||
%i45 = fadd reassoc nnan ninf nsz arcp contract afn float %i44, float 0x43800000
|
||||
%i46 = lshr <2 x i32> %i1, <2 x i32> c58
|
||||
%i47 = extractelement %i46, i64 0
|
||||
%i48 = mul i32 %i47, i32 2654435761
|
||||
%i49 = extractelement %i46, i64 1
|
||||
%i50 = mul i32 %i49, i32 2246822519
|
||||
%i51 = xor i32 %i48, %i50
|
||||
%i52 = lshr i32 %i51, i32 15
|
||||
%i53 = xor i32 %i52, %i51
|
||||
%i54 = mul i32 %i53, i32 739982445
|
||||
%i55 = lshr i32 %i54, i32 12
|
||||
%i56 = xor i32 %i55, %i54
|
||||
br bb3
|
||||
bb3:
|
||||
%i58 = phi float [%i25, bb1], [%i45, bb2]
|
||||
%i59 = phi i32 [%i36, bb1], [%i56, bb2]
|
||||
%i60 = and i32 %i59, i32 7
|
||||
%i61 = shl nuw nsw i32 i32 1, %i60
|
||||
%i62 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i61)
|
||||
%i63 = fmul reassoc nnan ninf nsz arcp contract afn float %i62, float 0x3A800000
|
||||
%i64 = insertelement <2 x float> undef, %i63, i64 0
|
||||
%i65 = fmul reassoc nnan ninf nsz arcp contract afn float %i62, float 0x3F000000
|
||||
%i66 = insertelement %i64, %i65, i64 1
|
||||
%i67 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i66, %i0
|
||||
%i68 = tail call %t16 @f11 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%a1, ptr addrspace(2) @g0, %i67, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
|
||||
%i69 = extractvalue <4 x float> %i68, 0
|
||||
%i70 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i67, <2 x float> c65
|
||||
%i71 = tail call %t16 @f11 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%a1, ptr addrspace(2) @g1, %i70, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
|
||||
%i72 = extractvalue <4 x float> %i71, 0
|
||||
%i73 = tail call reassoc nnan ninf nsz arcp contract afn float @f12 [air Derivative(Derivative { op: Dfdx, fast: false, ty: NumTy { elem: F32, lanes: 1 } })](%i58) convergent
|
||||
%i74 = insertelement %i69, %i73, i64 1
|
||||
%i75 = tail call reassoc nnan ninf nsz arcp contract afn float @f13 [air Derivative(Derivative { op: Dfdy, fast: false, ty: NumTy { elem: F32, lanes: 1 } })](%i58) convergent
|
||||
%i76 = insertelement %i74, %i75, i64 2
|
||||
%i77 = shufflevector <4 x float> %i76, %i72, <0, 1, 2, 4>
|
||||
ret %i77
|
||||
}
|
||||
|
||||
declare %t14 @f3 "air.convert.u.v2i32.f.v2f32" memory(NoModRef, NoModRef, NoModRef)
|
||||
|
||||
define %t11 @f4 "rc_loop" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="128" "no-builtins"="" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" %a1( Ref nocapture ) %a2( Ref nocapture "air-buffer-no-alias"="" ) {
|
||||
bb0:
|
||||
%i0 = shufflevector <2 x float> %a0, <4 x float> poison, <0, 1>
|
||||
%i1 = tail call <2 x i32> @f3 [air Convert(Convert { dst: NumTy { elem: I32, lanes: 2 }, dst_kind: Unsigned, src: NumTy { elem: F32, lanes: 2 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i0)
|
||||
%i2 = extractelement %i1, i64 0
|
||||
%i3 = mul i32 %i2, i32 2654435761
|
||||
%i4 = extractelement %i1, i64 1
|
||||
%i5 = mul i32 %i4, i32 2246822519
|
||||
%i6 = xor i32 %i3, %i5
|
||||
%i7 = lshr i32 %i6, i32 15
|
||||
%i8 = xor i32 %i7, %i6
|
||||
%i9 = mul i32 %i8, i32 739982445
|
||||
%i10 = lshr i32 %i9, i32 12
|
||||
%i11 = xor i32 %i10, %i9
|
||||
%i12 = and i32 %i11, i32 255
|
||||
%i13 = zext %i12 to i64
|
||||
%i14 = getelementptr inbounds i32, %a2, %i13
|
||||
%i15 = load i32, %i14, align 4
|
||||
%i16 = urem i32 %i15, i32 5
|
||||
%i17 = icmp eq %i16, i32 0
|
||||
br %i17, bb1, bb2
|
||||
bb1:
|
||||
%i19 = phi float [float 0x0, bb0], [%i60, bb2]
|
||||
%i20 = lshr <2 x i32> %i1, <2 x i32> c58
|
||||
%i21 = extractelement %i20, i64 0
|
||||
%i22 = mul i32 %i21, i32 2654435761
|
||||
%i23 = extractelement %i20, i64 1
|
||||
%i24 = mul i32 %i23, i32 2246822519
|
||||
%i25 = xor i32 %i22, %i24
|
||||
%i26 = lshr i32 %i25, i32 15
|
||||
%i27 = xor i32 %i26, %i25
|
||||
%i28 = mul i32 %i27, i32 739982445
|
||||
%i29 = lshr i32 %i28, i32 12
|
||||
%i30 = xor i32 %i29, %i28
|
||||
%i31 = and i32 %i30, i32 7
|
||||
%i32 = shl nuw nsw i32 i32 1, %i31
|
||||
%i33 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i32)
|
||||
%i34 = fmul reassoc nnan ninf nsz arcp contract afn float %i33, float 0x3A800000
|
||||
%i35 = insertelement <2 x float> undef, %i34, i64 0
|
||||
%i36 = fmul reassoc nnan ninf nsz arcp contract afn float %i33, float 0x3F000000
|
||||
%i37 = insertelement %i35, %i36, i64 1
|
||||
%i38 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i37, %i0
|
||||
%i39 = tail call %t16 @f11 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%a1, ptr addrspace(2) @g0, %i38, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
|
||||
%i40 = extractvalue <4 x float> %i39, 0
|
||||
%i41 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i38, <2 x float> c65
|
||||
%i42 = tail call %t16 @f11 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%a1, ptr addrspace(2) @g1, %i41, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
|
||||
%i43 = extractvalue <4 x float> %i42, 0
|
||||
%i44 = tail call reassoc nnan ninf nsz arcp contract afn float @f12 [air Derivative(Derivative { op: Dfdx, fast: false, ty: NumTy { elem: F32, lanes: 1 } })](%i19) convergent
|
||||
%i45 = insertelement %i40, %i44, i64 1
|
||||
%i46 = tail call reassoc nnan ninf nsz arcp contract afn float @f13 [air Derivative(Derivative { op: Dfdy, fast: false, ty: NumTy { elem: F32, lanes: 1 } })](%i19) convergent
|
||||
%i47 = insertelement %i45, %i46, i64 2
|
||||
%i48 = shufflevector <4 x float> %i47, %i43, <0, 1, 2, 4>
|
||||
ret %i48
|
||||
bb2:
|
||||
%i50 = phi float [%i60, bb2], [float 0x0, bb0]
|
||||
%i51 = phi i32 [%i61, bb2], [i32 0, bb0]
|
||||
%i52 = mul i32 %i51, i32 37
|
||||
%i53 = add i32 %i52, %i11
|
||||
%i54 = and i32 %i53, i32 255
|
||||
%i55 = zext %i54 to i64
|
||||
%i56 = getelementptr inbounds i32, %a2, %i55
|
||||
%i57 = load i32, %i56, align 4
|
||||
%i58 = and i32 %i57, i32 63
|
||||
%i59 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i58)
|
||||
%i60 = fadd reassoc nnan ninf nsz arcp contract afn float %i59, %i50
|
||||
%i61 = add nuw i32 %i51, i32 1
|
||||
%i62 = icmp ult %i61, %i16
|
||||
br %i62, bb2, bb1, !llvm.loop LoopHints { unroll: Default, must_progress: true }
|
||||
}
|
||||
|
||||
define %t11 @f5 "rc_break" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="128" "no-builtins"="" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" %a1( Ref nocapture ) %a2( Ref nocapture "air-buffer-no-alias"="" ) {
|
||||
bb0:
|
||||
%i0 = shufflevector <2 x float> %a0, <4 x float> poison, <0, 1>
|
||||
%i1 = tail call <2 x i32> @f3 [air Convert(Convert { dst: NumTy { elem: I32, lanes: 2 }, dst_kind: Unsigned, src: NumTy { elem: F32, lanes: 2 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i0)
|
||||
%i2 = extractelement %i1, i64 0
|
||||
%i3 = mul i32 %i2, i32 2654435761
|
||||
%i4 = extractelement %i1, i64 1
|
||||
%i5 = mul i32 %i4, i32 2246822519
|
||||
%i6 = xor i32 %i3, %i5
|
||||
%i7 = lshr i32 %i6, i32 15
|
||||
%i8 = xor i32 %i7, %i6
|
||||
%i9 = mul i32 %i8, i32 739982445
|
||||
%i10 = lshr i32 %i9, i32 12
|
||||
%i11 = xor i32 %i10, %i9
|
||||
%i12 = getelementptr inbounds i32, %a2, i64 255
|
||||
%i13 = load i32, %i12, align 4
|
||||
%i14 = urem i32 %i13, i32 3
|
||||
%i15 = add nuw nsw i32 %i14, i32 5
|
||||
br bb1
|
||||
bb1:
|
||||
%i17 = phi float [float 0x0, bb0], [%i32, bb3]
|
||||
%i18 = phi i32 [i32 0, bb0], [%i33, bb3]
|
||||
%i19 = mul i32 %i18, i32 13
|
||||
%i20 = add i32 %i19, %i11
|
||||
%i21 = and i32 %i20, i32 255
|
||||
%i22 = zext %i21 to i64
|
||||
%i23 = getelementptr inbounds i32, %a2, %i22
|
||||
%i24 = load i32, %i23, align 4
|
||||
%i25 = and i32 %i24, i32 3
|
||||
%i26 = icmp eq %i25, i32 0
|
||||
br %i26, bb3, bb2
|
||||
bb2:
|
||||
%i28 = and i32 %i24, i32 31
|
||||
%i29 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i28)
|
||||
%i30 = fadd reassoc nnan ninf nsz arcp contract afn float %i29, %i17
|
||||
br bb3
|
||||
bb3:
|
||||
%i32 = phi float [%i30, bb2], [%i17, bb1]
|
||||
%i33 = add nuw i32 %i18, i32 1
|
||||
%i34 = icmp eq %i18, %i15
|
||||
%i35 = select i1 %i26, i1 1, %i34
|
||||
br %i35, bb4, bb1, !llvm.loop LoopHints { unroll: Default, must_progress: true }
|
||||
bb4:
|
||||
%i37 = lshr <2 x i32> %i1, <2 x i32> c58
|
||||
%i38 = extractelement %i37, i64 0
|
||||
%i39 = mul i32 %i38, i32 2654435761
|
||||
%i40 = extractelement %i37, i64 1
|
||||
%i41 = mul i32 %i40, i32 2246822519
|
||||
%i42 = xor i32 %i39, %i41
|
||||
%i43 = lshr i32 %i42, i32 15
|
||||
%i44 = xor i32 %i43, %i42
|
||||
%i45 = mul i32 %i44, i32 739982445
|
||||
%i46 = lshr i32 %i45, i32 12
|
||||
%i47 = xor i32 %i46, %i45
|
||||
%i48 = and i32 %i47, i32 7
|
||||
%i49 = shl nuw nsw i32 i32 1, %i48
|
||||
%i50 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i49)
|
||||
%i51 = fmul reassoc nnan ninf nsz arcp contract afn float %i50, float 0x3A800000
|
||||
%i52 = insertelement <2 x float> undef, %i51, i64 0
|
||||
%i53 = fmul reassoc nnan ninf nsz arcp contract afn float %i50, float 0x3F000000
|
||||
%i54 = insertelement %i52, %i53, i64 1
|
||||
%i55 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i54, %i0
|
||||
%i56 = tail call %t16 @f11 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%a1, ptr addrspace(2) @g0, %i55, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
|
||||
%i57 = extractvalue <4 x float> %i56, 0
|
||||
%i58 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i55, <2 x float> c65
|
||||
%i59 = tail call %t16 @f11 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%a1, ptr addrspace(2) @g1, %i58, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
|
||||
%i60 = extractvalue <4 x float> %i59, 0
|
||||
%i61 = tail call reassoc nnan ninf nsz arcp contract afn float @f12 [air Derivative(Derivative { op: Dfdx, fast: false, ty: NumTy { elem: F32, lanes: 1 } })](%i32) convergent
|
||||
%i62 = insertelement %i57, %i61, i64 1
|
||||
%i63 = tail call reassoc nnan ninf nsz arcp contract afn float @f13 [air Derivative(Derivative { op: Dfdy, fast: false, ty: NumTy { elem: F32, lanes: 1 } })](%i32) convergent
|
||||
%i64 = insertelement %i62, %i63, i64 2
|
||||
%i65 = shufflevector <4 x float> %i64, %i60, <0, 1, 2, 4>
|
||||
ret %i65
|
||||
}
|
||||
|
||||
define %t11 @f6 "rc_switch" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="128" "no-builtins"="" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" %a1( Ref nocapture ) %a2( Ref nocapture "air-buffer-no-alias"="" ) {
|
||||
bb0:
|
||||
%i0 = shufflevector <2 x float> %a0, <4 x float> poison, <0, 1>
|
||||
%i1 = tail call <2 x i32> @f3 [air Convert(Convert { dst: NumTy { elem: I32, lanes: 2 }, dst_kind: Unsigned, src: NumTy { elem: F32, lanes: 2 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i0)
|
||||
%i2 = extractelement %i1, i64 0
|
||||
%i3 = mul i32 %i2, i32 2654435761
|
||||
%i4 = extractelement %i1, i64 1
|
||||
%i5 = mul i32 %i4, i32 2246822519
|
||||
%i6 = xor i32 %i3, %i5
|
||||
%i7 = lshr i32 %i6, i32 15
|
||||
%i8 = xor i32 %i7, %i6
|
||||
%i9 = mul i32 %i8, i32 739982445
|
||||
%i10 = lshr i32 %i9, i32 12
|
||||
%i11 = xor i32 %i10, %i9
|
||||
%i12 = and i32 %i11, i32 255
|
||||
%i13 = zext %i12 to i64
|
||||
%i14 = getelementptr inbounds i32, %a2, %i13
|
||||
%i15 = load i32, %i14, align 4
|
||||
%i16 = and i32 %i15, i32 3
|
||||
switch %i16, bb4 [ 0: bb1 1: bb2 2: bb3 ]
|
||||
bb1:
|
||||
%i18 = lshr i32 %i11, i32 8
|
||||
%i19 = and i32 %i18, i32 255
|
||||
%i20 = zext %i19 to i64
|
||||
%i21 = getelementptr inbounds i32, %a2, %i20
|
||||
%i22 = load i32, %i21, align 4
|
||||
%i23 = and i32 %i22, i32 127
|
||||
%i24 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i23)
|
||||
br bb5
|
||||
bb2:
|
||||
%i26 = lshr i32 %i11, i32 16
|
||||
%i27 = and i32 %i26, i32 255
|
||||
%i28 = zext %i27 to i64
|
||||
%i29 = getelementptr inbounds i32, %a2, %i28
|
||||
%i30 = load i32, %i29, align 4
|
||||
%i31 = and i32 %i30, i32 127
|
||||
%i32 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i31)
|
||||
%i33 = fadd reassoc nnan ninf nsz arcp contract afn float %i32, float 0x43000000
|
||||
br bb5
|
||||
bb3:
|
||||
%i35 = lshr i32 %i9, i32 24
|
||||
%i36 = zext %i35 to i64
|
||||
%i37 = getelementptr inbounds i32, %a2, %i36
|
||||
%i38 = load i32, %i37, align 4
|
||||
%i39 = and i32 %i38, i32 127
|
||||
%i40 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i39)
|
||||
%i41 = fadd reassoc nnan ninf nsz arcp contract afn float %i40, float 0x43800000
|
||||
br bb5
|
||||
bb4:
|
||||
%i43 = lshr i32 %i11, i32 4
|
||||
%i44 = and i32 %i43, i32 255
|
||||
%i45 = zext %i44 to i64
|
||||
%i46 = getelementptr inbounds i32, %a2, %i45
|
||||
%i47 = load i32, %i46, align 4
|
||||
%i48 = and i32 %i47, i32 63
|
||||
%i49 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i48)
|
||||
%i50 = fadd reassoc nnan ninf nsz arcp contract afn float %i49, float 0x43C00000
|
||||
br bb5
|
||||
bb5:
|
||||
%i52 = phi float [%i50, bb4], [%i41, bb3], [%i33, bb2], [%i24, bb1]
|
||||
%i53 = lshr <2 x i32> %i1, <2 x i32> c58
|
||||
%i54 = extractelement %i53, i64 0
|
||||
%i55 = mul i32 %i54, i32 2654435761
|
||||
%i56 = extractelement %i53, i64 1
|
||||
%i57 = mul i32 %i56, i32 2246822519
|
||||
%i58 = xor i32 %i55, %i57
|
||||
%i59 = lshr i32 %i58, i32 15
|
||||
%i60 = xor i32 %i59, %i58
|
||||
%i61 = mul i32 %i60, i32 739982445
|
||||
%i62 = lshr i32 %i61, i32 12
|
||||
%i63 = xor i32 %i62, %i61
|
||||
%i64 = and i32 %i63, i32 7
|
||||
%i65 = shl nuw nsw i32 i32 1, %i64
|
||||
%i66 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i65)
|
||||
%i67 = fmul reassoc nnan ninf nsz arcp contract afn float %i66, float 0x3A800000
|
||||
%i68 = insertelement <2 x float> undef, %i67, i64 0
|
||||
%i69 = fmul reassoc nnan ninf nsz arcp contract afn float %i66, float 0x3F000000
|
||||
%i70 = insertelement %i68, %i69, i64 1
|
||||
%i71 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i70, %i0
|
||||
%i72 = tail call %t16 @f11 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%a1, ptr addrspace(2) @g0, %i71, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
|
||||
%i73 = extractvalue <4 x float> %i72, 0
|
||||
%i74 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i71, <2 x float> c65
|
||||
%i75 = tail call %t16 @f11 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%a1, ptr addrspace(2) @g1, %i74, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
|
||||
%i76 = extractvalue <4 x float> %i75, 0
|
||||
%i77 = tail call reassoc nnan ninf nsz arcp contract afn float @f12 [air Derivative(Derivative { op: Dfdx, fast: false, ty: NumTy { elem: F32, lanes: 1 } })](%i52) convergent
|
||||
%i78 = insertelement %i73, %i77, i64 1
|
||||
%i79 = tail call reassoc nnan ninf nsz arcp contract afn float @f13 [air Derivative(Derivative { op: Dfdy, fast: false, ty: NumTy { elem: F32, lanes: 1 } })](%i52) convergent
|
||||
%i80 = insertelement %i78, %i79, i64 2
|
||||
%i81 = shufflevector <4 x float> %i80, %i76, <0, 1, 2, 4>
|
||||
ret %i81
|
||||
}
|
||||
|
||||
define %t11 @f7 "rc_discard" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="128" "no-builtins"="" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" %a1( Ref nocapture ) %a2( Ref nocapture "air-buffer-no-alias"="" ) {
|
||||
bb0:
|
||||
%i0 = shufflevector <2 x float> %a0, <4 x float> poison, <0, 1>
|
||||
%i1 = tail call <2 x i32> @f3 [air Convert(Convert { dst: NumTy { elem: I32, lanes: 2 }, dst_kind: Unsigned, src: NumTy { elem: F32, lanes: 2 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i0)
|
||||
%i2 = extractelement %i1, i64 0
|
||||
%i3 = mul i32 %i2, i32 2654435761
|
||||
%i4 = extractelement %i1, i64 1
|
||||
%i5 = mul i32 %i4, i32 2246822519
|
||||
%i6 = xor i32 %i3, %i5
|
||||
%i7 = lshr i32 %i6, i32 15
|
||||
%i8 = xor i32 %i7, %i6
|
||||
%i9 = mul i32 %i8, i32 739982445
|
||||
%i10 = lshr i32 %i9, i32 12
|
||||
%i11 = xor i32 %i10, %i9
|
||||
%i12 = and i32 %i11, i32 255
|
||||
%i13 = zext %i12 to i64
|
||||
%i14 = getelementptr inbounds i32, %a2, %i13
|
||||
%i15 = load i32, %i14, align 4
|
||||
%i16 = urem i32 %i15, i32 5
|
||||
%i17 = icmp eq %i16, i32 0
|
||||
br %i17, bb1, bb2
|
||||
bb1:
|
||||
tail call void @f14 [air Fragment(Discard)]()
|
||||
br bb2
|
||||
bb2:
|
||||
%i21 = lshr i32 %i11, i32 8
|
||||
%i22 = and i32 %i21, i32 255
|
||||
%i23 = zext %i22 to i64
|
||||
%i24 = getelementptr inbounds i32, %a2, %i23
|
||||
%i25 = load i32, %i24, align 4
|
||||
%i26 = and i32 %i25, i32 255
|
||||
%i27 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i26)
|
||||
%i28 = lshr <2 x i32> %i1, <2 x i32> c58
|
||||
%i29 = extractelement %i28, i64 0
|
||||
%i30 = mul i32 %i29, i32 2654435761
|
||||
%i31 = extractelement %i28, i64 1
|
||||
%i32 = mul i32 %i31, i32 2246822519
|
||||
%i33 = xor i32 %i30, %i32
|
||||
%i34 = lshr i32 %i33, i32 15
|
||||
%i35 = xor i32 %i34, %i33
|
||||
%i36 = mul i32 %i35, i32 739982445
|
||||
%i37 = lshr i32 %i36, i32 12
|
||||
%i38 = xor i32 %i37, %i36
|
||||
%i39 = and i32 %i38, i32 7
|
||||
%i40 = shl nuw nsw i32 i32 1, %i39
|
||||
%i41 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i40)
|
||||
%i42 = fmul reassoc nnan ninf nsz arcp contract afn float %i41, float 0x3A800000
|
||||
%i43 = insertelement <2 x float> undef, %i42, i64 0
|
||||
%i44 = fmul reassoc nnan ninf nsz arcp contract afn float %i41, float 0x3F000000
|
||||
%i45 = insertelement %i43, %i44, i64 1
|
||||
%i46 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i45, %i0
|
||||
%i47 = tail call %t16 @f11 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%a1, ptr addrspace(2) @g0, %i46, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
|
||||
%i48 = extractvalue <4 x float> %i47, 0
|
||||
%i49 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i46, <2 x float> c65
|
||||
%i50 = tail call %t16 @f11 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%a1, ptr addrspace(2) @g1, %i49, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
|
||||
%i51 = extractvalue <4 x float> %i50, 0
|
||||
%i52 = tail call reassoc nnan ninf nsz arcp contract afn float @f12 [air Derivative(Derivative { op: Dfdx, fast: false, ty: NumTy { elem: F32, lanes: 1 } })](%i27) convergent
|
||||
%i53 = insertelement %i48, %i52, i64 1
|
||||
%i54 = tail call reassoc nnan ninf nsz arcp contract afn float @f13 [air Derivative(Derivative { op: Dfdy, fast: false, ty: NumTy { elem: F32, lanes: 1 } })](%i27) convergent
|
||||
%i55 = insertelement %i53, %i54, i64 2
|
||||
%i56 = shufflevector <4 x float> %i55, %i51, <0, 1, 2, 4>
|
||||
ret %i56
|
||||
}
|
||||
|
||||
define %t11 @f8 "rc_grid" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="128" "no-builtins"="" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" %a1( Ref nocapture ) %a2( Ref nocapture "air-buffer-no-alias"="" ) {
|
||||
bb0:
|
||||
%i0 = shufflevector <2 x float> %a0, <4 x float> poison, <0, 1>
|
||||
%i1 = tail call <2 x i32> @f3 [air Convert(Convert { dst: NumTy { elem: I32, lanes: 2 }, dst_kind: Unsigned, src: NumTy { elem: F32, lanes: 2 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i0)
|
||||
%i2 = lshr <2 x i32> %i1, <2 x i32> c78
|
||||
%i3 = extractelement %i2, i64 0
|
||||
%i4 = mul i32 %i3, i32 2654435761
|
||||
%i5 = extractelement %i2, i64 1
|
||||
%i6 = mul i32 %i5, i32 2246822519
|
||||
%i7 = xor i32 %i4, %i6
|
||||
%i8 = lshr i32 %i7, i32 15
|
||||
%i9 = xor i32 %i8, %i7
|
||||
%i10 = mul i32 %i9, i32 739982445
|
||||
%i11 = lshr i32 %i10, i32 12
|
||||
%i12 = xor i32 %i11, %i10
|
||||
%i13 = lshr <2 x i32> %i1, <2 x i32> c58
|
||||
%i14 = extractelement %i13, i64 0
|
||||
%i15 = mul i32 %i14, i32 2654435761
|
||||
%i16 = extractelement %i13, i64 1
|
||||
%i17 = mul i32 %i16, i32 2246822519
|
||||
%i18 = xor i32 %i15, %i17
|
||||
%i19 = lshr i32 %i18, i32 15
|
||||
%i20 = xor i32 %i19, %i18
|
||||
%i21 = mul i32 %i20, i32 739982445
|
||||
%i22 = lshr i32 %i21, i32 12
|
||||
%i23 = xor i32 %i22, %i21
|
||||
%i24 = and i32 %i23, i32 7
|
||||
%i25 = extractelement %i1, i64 0
|
||||
%i26 = mul i32 %i25, i32 2654435761
|
||||
%i27 = extractelement %i1, i64 1
|
||||
%i28 = mul i32 %i27, i32 2246822519
|
||||
%i29 = xor i32 %i26, %i28
|
||||
%i30 = lshr i32 %i29, i32 15
|
||||
%i31 = xor i32 %i30, %i29
|
||||
%i32 = mul i32 %i31, i32 739982445
|
||||
%i33 = lshr i32 %i32, i32 12
|
||||
%i34 = xor i32 %i33, %i32
|
||||
%i35 = and i32 %i34, i32 255
|
||||
%i36 = zext %i35 to i64
|
||||
%i37 = getelementptr inbounds i32, %a2, %i36
|
||||
%i38 = load i32, %i37, align 4
|
||||
%i39 = and i32 %i38, i32 255
|
||||
%i40 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i39)
|
||||
%i41 = and i32 %i12, i32 255
|
||||
%i42 = zext %i41 to i64
|
||||
%i43 = getelementptr inbounds i32, %a2, %i42
|
||||
%i44 = load i32, %i43, align 4
|
||||
%i45 = and i32 %i44, i32 1
|
||||
%i46 = icmp eq %i45, i32 0
|
||||
br %i46, bb7, bb1
|
||||
bb1:
|
||||
%i48 = lshr i32 %i12, i32 8
|
||||
%i49 = and i32 %i48, i32 255
|
||||
%i50 = zext %i49 to i64
|
||||
%i51 = getelementptr inbounds i32, %a2, %i50
|
||||
%i52 = load i32, %i51, align 4
|
||||
%i53 = and i32 %i52, i32 1
|
||||
%i54 = icmp eq %i53, i32 0
|
||||
br %i54, bb6, bb2
|
||||
bb2:
|
||||
%i56 = lshr i32 %i12, i32 16
|
||||
%i57 = and i32 %i56, i32 255
|
||||
%i58 = zext %i57 to i64
|
||||
%i59 = getelementptr inbounds i32, %a2, %i58
|
||||
%i60 = load i32, %i59, align 4
|
||||
%i61 = urem i32 %i60, i32 3
|
||||
br bb3
|
||||
bb3:
|
||||
%i63 = phi <4 x float> [<4 x float> zeroinitializer, bb2], [%i94, bb5]
|
||||
%i64 = phi i32 [i32 0, bb2], [%i95, bb5]
|
||||
%i65 = add i32 %i64, %i12
|
||||
%i66 = and i32 %i65, i32 255
|
||||
%i67 = zext %i66 to i64
|
||||
%i68 = getelementptr inbounds i32, %a2, %i67
|
||||
%i69 = load i32, %i68, align 4
|
||||
%i70 = and i32 %i69, i32 2
|
||||
%i71 = icmp eq %i70, i32 0
|
||||
br %i71, bb5, bb4
|
||||
bb4:
|
||||
%i73 = add i32 %i64, %i23
|
||||
%i74 = and i32 %i73, i32 7
|
||||
%i75 = shl nuw nsw i32 i32 1, %i74
|
||||
%i76 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i75)
|
||||
%i77 = fmul reassoc nnan ninf nsz arcp contract afn float %i76, float 0x3A800000
|
||||
%i78 = insertelement <2 x float> undef, %i77, i64 0
|
||||
%i79 = fmul reassoc nnan ninf nsz arcp contract afn float %i76, float 0x3F000000
|
||||
%i80 = insertelement %i78, %i79, i64 1
|
||||
%i81 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i80, %i0
|
||||
%i82 = tail call %t16 @f11 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%a1, ptr addrspace(2) @g0, %i81, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
|
||||
%i83 = extractvalue <4 x float> %i82, 0
|
||||
%i84 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i81, <2 x float> c65
|
||||
%i85 = tail call %t16 @f11 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%a1, ptr addrspace(2) @g1, %i84, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
|
||||
%i86 = extractvalue <4 x float> %i85, 0
|
||||
%i87 = tail call reassoc nnan ninf nsz arcp contract afn float @f12 [air Derivative(Derivative { op: Dfdx, fast: false, ty: NumTy { elem: F32, lanes: 1 } })](%i40) convergent
|
||||
%i88 = insertelement %i83, %i87, i64 1
|
||||
%i89 = tail call reassoc nnan ninf nsz arcp contract afn float @f13 [air Derivative(Derivative { op: Dfdy, fast: false, ty: NumTy { elem: F32, lanes: 1 } })](%i40) convergent
|
||||
%i90 = insertelement %i88, %i89, i64 2
|
||||
%i91 = shufflevector <4 x float> %i90, %i86, <0, 1, 2, 4>
|
||||
%i92 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i91, %i63
|
||||
br bb5
|
||||
bb5:
|
||||
%i94 = phi <4 x float> [%i92, bb4], [%i63, bb3]
|
||||
%i95 = add i32 %i64, i32 1
|
||||
%i96 = icmp ugt %i95, %i61
|
||||
br %i96, bb8, bb3, !llvm.loop LoopHints { unroll: Default, must_progress: true }
|
||||
bb6:
|
||||
%i98 = fadd reassoc nnan ninf nsz arcp contract afn float %i40, float 0x3F800000
|
||||
%i99 = shl nuw nsw i32 i32 1, %i24
|
||||
%i100 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i99)
|
||||
%i101 = fmul reassoc nnan ninf nsz arcp contract afn float %i100, float 0x3A800000
|
||||
%i102 = insertelement <2 x float> undef, %i101, i64 0
|
||||
%i103 = fmul reassoc nnan ninf nsz arcp contract afn float %i100, float 0x3F000000
|
||||
%i104 = insertelement %i102, %i103, i64 1
|
||||
%i105 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i104, %i0
|
||||
%i106 = tail call %t16 @f11 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%a1, ptr addrspace(2) @g0, %i105, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
|
||||
%i107 = extractvalue <4 x float> %i106, 0
|
||||
%i108 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i105, <2 x float> c65
|
||||
%i109 = tail call %t16 @f11 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%a1, ptr addrspace(2) @g1, %i108, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
|
||||
%i110 = extractvalue <4 x float> %i109, 0
|
||||
%i111 = tail call reassoc nnan ninf nsz arcp contract afn float @f12 [air Derivative(Derivative { op: Dfdx, fast: false, ty: NumTy { elem: F32, lanes: 1 } })](%i98) convergent
|
||||
%i112 = insertelement %i107, %i111, i64 1
|
||||
%i113 = tail call reassoc nnan ninf nsz arcp contract afn float @f13 [air Derivative(Derivative { op: Dfdy, fast: false, ty: NumTy { elem: F32, lanes: 1 } })](%i98) convergent
|
||||
%i114 = insertelement %i112, %i113, i64 2
|
||||
%i115 = shufflevector <4 x float> %i114, %i110, <0, 1, 2, 4>
|
||||
br bb8
|
||||
bb7:
|
||||
%i117 = lshr i32 %i10, i32 24
|
||||
%i118 = zext %i117 to i64
|
||||
%i119 = getelementptr inbounds i32, %a2, %i118
|
||||
%i120 = load i32, %i119, align 4
|
||||
%i121 = and i32 %i120, i32 15
|
||||
%i122 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i121)
|
||||
%i123 = insertelement <4 x float> c81, %i122, i64 0
|
||||
br bb8
|
||||
bb8:
|
||||
%i125 = phi <4 x float> [%i115, bb6], [%i123, bb7], [%i94, bb5]
|
||||
ret %i125
|
||||
}
|
||||
|
||||
define %t11 @f9 "rc_continue_quad" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="128" "no-builtins"="" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" %a1( Ref nocapture ) %a2( Ref nocapture "air-buffer-no-alias"="" ) {
|
||||
bb0:
|
||||
%i0 = shufflevector <2 x float> %a0, <4 x float> poison, <0, 1>
|
||||
%i1 = tail call <2 x i32> @f3 [air Convert(Convert { dst: NumTy { elem: I32, lanes: 2 }, dst_kind: Unsigned, src: NumTy { elem: F32, lanes: 2 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i0)
|
||||
%i2 = extractelement %i1, i64 0
|
||||
%i3 = mul i32 %i2, i32 2654435761
|
||||
%i4 = extractelement %i1, i64 1
|
||||
%i5 = mul i32 %i4, i32 2246822519
|
||||
%i6 = xor i32 %i3, %i5
|
||||
%i7 = lshr i32 %i6, i32 15
|
||||
%i8 = xor i32 %i7, %i6
|
||||
%i9 = mul i32 %i8, i32 739982445
|
||||
%i10 = lshr i32 %i9, i32 12
|
||||
%i11 = xor i32 %i10, %i9
|
||||
%i12 = getelementptr inbounds i32, %a2, i64 250
|
||||
%i13 = load i32, %i12, align 4
|
||||
%i14 = icmp eq %i13, i32 0
|
||||
br %i14, bb2, bb1
|
||||
bb1:
|
||||
%i16 = and i32 %i11, i32 255
|
||||
%i17 = zext %i16 to i64
|
||||
%i18 = getelementptr inbounds i32, %a2, %i17
|
||||
%i19 = load i32, %i18, align 4
|
||||
%i20 = and i32 %i19, i32 255
|
||||
%i21 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i20)
|
||||
%i22 = lshr <2 x i32> %i1, <2 x i32> c58
|
||||
%i23 = extractelement %i22, i64 0
|
||||
%i24 = mul i32 %i23, i32 2654435761
|
||||
%i25 = extractelement %i22, i64 1
|
||||
%i26 = mul i32 %i25, i32 2246822519
|
||||
%i27 = xor i32 %i24, %i26
|
||||
%i28 = lshr i32 %i27, i32 15
|
||||
%i29 = xor i32 %i28, %i27
|
||||
%i30 = mul i32 %i29, i32 739982445
|
||||
%i31 = lshr i32 %i30, i32 12
|
||||
%i32 = xor i32 %i31, %i30
|
||||
%i33 = and i32 %i32, i32 7
|
||||
%i34 = getelementptr inbounds i32, %a2, i64 252
|
||||
%i35 = or i32 %i2, %i4
|
||||
%i36 = and i32 %i35, i32 1
|
||||
%i37 = icmp ne %i36, i32 0
|
||||
%i38 = getelementptr inbounds i32, %a2, i64 251
|
||||
%i39 = shl nuw nsw i32 i32 1, %i33
|
||||
br bb3
|
||||
bb2:
|
||||
%i41 = phi <4 x float> [<4 x float> zeroinitializer, bb0], [%i88, bb8]
|
||||
ret %i41
|
||||
bb3:
|
||||
%i43 = phi i32 [%i13, bb1], [%i86, bb8]
|
||||
%i44 = phi i32 [%i13, bb1], [%i87, bb8]
|
||||
%i45 = phi float [%i21, bb1], [%i89, bb8]
|
||||
%i46 = phi i32 [i32 0, bb1], [%i90, bb8]
|
||||
%i47 = phi <4 x float> [<4 x float> zeroinitializer, bb1], [%i88, bb8]
|
||||
%i48 = load i32, %i34, align 4
|
||||
%i49 = icmp ne %i46, %i48
|
||||
%i50 = select i1 %i49, i1 1, %i37
|
||||
br %i50, bb5, bb4
|
||||
bb4:
|
||||
%i52 = fadd reassoc nnan ninf nsz arcp contract afn float %i45, float 0x3F800000
|
||||
br bb8
|
||||
bb5:
|
||||
%i54 = load i32, %i38, align 4
|
||||
%i55 = icmp eq %i46, %i54
|
||||
br %i55, bb6, bb7
|
||||
bb6:
|
||||
%i57 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i39)
|
||||
%i58 = fmul reassoc nnan ninf nsz arcp contract afn float %i57, float 0x3A800000
|
||||
%i59 = insertelement <2 x float> undef, %i58, i64 0
|
||||
%i60 = fmul reassoc nnan ninf nsz arcp contract afn float %i57, float 0x3F000000
|
||||
%i61 = insertelement %i59, %i60, i64 1
|
||||
%i62 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i61, %i0
|
||||
%i63 = tail call %t16 @f11 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%a1, ptr addrspace(2) @g0, %i62, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
|
||||
%i64 = extractvalue <4 x float> %i63, 0
|
||||
%i65 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i62, <2 x float> c65
|
||||
%i66 = tail call %t16 @f11 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%a1, ptr addrspace(2) @g1, %i65, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
|
||||
%i67 = extractvalue <4 x float> %i66, 0
|
||||
%i68 = tail call reassoc nnan ninf nsz arcp contract afn float @f12 [air Derivative(Derivative { op: Dfdx, fast: false, ty: NumTy { elem: F32, lanes: 1 } })](%i45) convergent
|
||||
%i69 = insertelement %i64, %i68, i64 1
|
||||
%i70 = tail call reassoc nnan ninf nsz arcp contract afn float @f13 [air Derivative(Derivative { op: Dfdy, fast: false, ty: NumTy { elem: F32, lanes: 1 } })](%i45) convergent
|
||||
%i71 = insertelement %i69, %i70, i64 2
|
||||
%i72 = shufflevector <4 x float> %i71, %i67, <0, 1, 2, 4>
|
||||
%i73 = load i32, %i12, align 4
|
||||
br bb7
|
||||
bb7:
|
||||
%i75 = phi i32 [%i73, bb6], [%i43, bb5]
|
||||
%i76 = phi <4 x float> [%i72, bb6], [%i47, bb5]
|
||||
%i77 = add i32 %i46, %i11
|
||||
%i78 = and i32 %i77, i32 255
|
||||
%i79 = zext %i78 to i64
|
||||
%i80 = getelementptr inbounds i32, %a2, %i79
|
||||
%i81 = load i32, %i80, align 4
|
||||
%i82 = and i32 %i81, i32 7
|
||||
%i83 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i82)
|
||||
%i84 = fadd reassoc nnan ninf nsz arcp contract afn float %i83, %i45
|
||||
br bb8
|
||||
bb8:
|
||||
%i86 = phi i32 [%i43, bb4], [%i75, bb7]
|
||||
%i87 = phi i32 [%i44, bb4], [%i75, bb7]
|
||||
%i88 = phi <4 x float> [%i47, bb4], [%i76, bb7]
|
||||
%i89 = phi float [%i52, bb4], [%i84, bb7]
|
||||
%i90 = add nuw i32 %i46, i32 1
|
||||
%i91 = icmp ult %i90, %i87
|
||||
br %i91, bb3, bb2, !llvm.loop LoopHints { unroll: Default, must_progress: true }
|
||||
}
|
||||
|
||||
define %t11 @f10 "rc_latches" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="128" "no-builtins"="" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" %a1( Ref nocapture ) %a2( Ref nocapture "air-buffer-no-alias"="" ) {
|
||||
bb0:
|
||||
%i0 = shufflevector <2 x float> %a0, <4 x float> poison, <0, 1>
|
||||
%i1 = tail call <2 x i32> @f3 [air Convert(Convert { dst: NumTy { elem: I32, lanes: 2 }, dst_kind: Unsigned, src: NumTy { elem: F32, lanes: 2 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i0)
|
||||
%i2 = extractelement %i1, i64 0
|
||||
%i3 = mul i32 %i2, i32 2654435761
|
||||
%i4 = extractelement %i1, i64 1
|
||||
%i5 = mul i32 %i4, i32 2246822519
|
||||
%i6 = xor i32 %i3, %i5
|
||||
%i7 = lshr i32 %i6, i32 15
|
||||
%i8 = xor i32 %i7, %i6
|
||||
%i9 = mul i32 %i8, i32 739982445
|
||||
%i10 = lshr i32 %i9, i32 12
|
||||
%i11 = xor i32 %i10, %i9
|
||||
%i12 = getelementptr inbounds i32, %a2, i64 250
|
||||
%i13 = load i32, %i12, align 4
|
||||
%i14 = icmp eq %i13, i32 0
|
||||
br %i14, bb2, bb1
|
||||
bb1:
|
||||
%i16 = and i32 %i11, i32 255
|
||||
%i17 = zext %i16 to i64
|
||||
%i18 = getelementptr inbounds i32, %a2, %i17
|
||||
%i19 = load i32, %i18, align 4
|
||||
%i20 = and i32 %i19, i32 255
|
||||
%i21 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i20)
|
||||
%i22 = lshr <2 x i32> %i1, <2 x i32> c58
|
||||
%i23 = extractelement %i22, i64 0
|
||||
%i24 = mul i32 %i23, i32 2654435761
|
||||
%i25 = extractelement %i22, i64 1
|
||||
%i26 = mul i32 %i25, i32 2246822519
|
||||
%i27 = xor i32 %i24, %i26
|
||||
%i28 = lshr i32 %i27, i32 15
|
||||
%i29 = xor i32 %i28, %i27
|
||||
%i30 = mul i32 %i29, i32 739982445
|
||||
%i31 = lshr i32 %i30, i32 12
|
||||
%i32 = xor i32 %i31, %i30
|
||||
%i33 = and i32 %i32, i32 7
|
||||
%i34 = getelementptr inbounds i32, %a2, i64 251
|
||||
%i35 = shl nuw nsw i32 i32 1, %i33
|
||||
%i36 = getelementptr inbounds i32, %a2, i64 252
|
||||
%i37 = or i32 %i2, %i4
|
||||
%i38 = and i32 %i37, i32 1
|
||||
%i39 = icmp ne %i38, i32 0
|
||||
br bb3
|
||||
bb2:
|
||||
%i41 = phi <4 x float> [<4 x float> zeroinitializer, bb0], [%i66, bb8]
|
||||
ret %i41
|
||||
bb3:
|
||||
%i43 = phi float [%i21, bb1], [%i82, bb8]
|
||||
%i44 = phi i32 [i32 0, bb1], [%i83, bb8]
|
||||
%i45 = phi <4 x float> [<4 x float> zeroinitializer, bb1], [%i66, bb8]
|
||||
%i46 = load i32, %i34, align 4
|
||||
%i47 = icmp eq %i44, %i46
|
||||
br %i47, bb4, bb5
|
||||
bb4:
|
||||
%i49 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i35)
|
||||
%i50 = fmul reassoc nnan ninf nsz arcp contract afn float %i49, float 0x3A800000
|
||||
%i51 = insertelement <2 x float> undef, %i50, i64 0
|
||||
%i52 = fmul reassoc nnan ninf nsz arcp contract afn float %i49, float 0x3F000000
|
||||
%i53 = insertelement %i51, %i52, i64 1
|
||||
%i54 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i53, %i0
|
||||
%i55 = tail call %t16 @f11 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%a1, ptr addrspace(2) @g0, %i54, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
|
||||
%i56 = extractvalue <4 x float> %i55, 0
|
||||
%i57 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i54, <2 x float> c65
|
||||
%i58 = tail call %t16 @f11 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%a1, ptr addrspace(2) @g1, %i57, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
|
||||
%i59 = extractvalue <4 x float> %i58, 0
|
||||
%i60 = tail call reassoc nnan ninf nsz arcp contract afn float @f12 [air Derivative(Derivative { op: Dfdx, fast: false, ty: NumTy { elem: F32, lanes: 1 } })](%i43) convergent
|
||||
%i61 = insertelement %i56, %i60, i64 1
|
||||
%i62 = tail call reassoc nnan ninf nsz arcp contract afn float @f13 [air Derivative(Derivative { op: Dfdy, fast: false, ty: NumTy { elem: F32, lanes: 1 } })](%i43) convergent
|
||||
%i63 = insertelement %i61, %i62, i64 2
|
||||
%i64 = shufflevector <4 x float> %i63, %i59, <0, 1, 2, 4>
|
||||
br bb5
|
||||
bb5:
|
||||
%i66 = phi <4 x float> [%i64, bb4], [%i45, bb3]
|
||||
%i67 = load i32, %i36, align 4
|
||||
%i68 = icmp ne %i44, %i67
|
||||
%i69 = select i1 %i68, i1 1, %i39
|
||||
br %i69, bb7, bb6
|
||||
bb6:
|
||||
%i71 = fadd reassoc nnan ninf nsz arcp contract afn float %i43, float 0x3F800000
|
||||
br bb8
|
||||
bb7:
|
||||
%i73 = add i32 %i44, %i11
|
||||
%i74 = and i32 %i73, i32 255
|
||||
%i75 = zext %i74 to i64
|
||||
%i76 = getelementptr inbounds i32, %a2, %i75
|
||||
%i77 = load i32, %i76, align 4
|
||||
%i78 = and i32 %i77, i32 7
|
||||
%i79 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i78)
|
||||
%i80 = fadd reassoc nnan ninf nsz arcp contract afn float %i79, %i43
|
||||
br bb8
|
||||
bb8:
|
||||
%i82 = phi float [%i71, bb6], [%i80, bb7]
|
||||
%i83 = add nuw i32 %i44, i32 1
|
||||
%i84 = load i32, %i12, align 4
|
||||
%i85 = icmp ult %i83, %i84
|
||||
br %i85, bb3, bb2, !llvm.loop LoopHints { unroll: Default, must_progress: true }
|
||||
}
|
||||
|
||||
declare %t18 @f11 "air.sample_texture_2d.v4f32" convergent memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture ) %a1( Ref nocapture )
|
||||
|
||||
declare %t19 @f12 "air.dfdx.f32" convergent
|
||||
|
||||
declare %t19 @f13 "air.dfdy.f32" convergent
|
||||
|
||||
declare %t21 @f14 "air.discard_fragment"
|
||||
!md0 = !"SDK Version"
|
||||
!md1 = !"wchar_size"
|
||||
!md2 = !"frame-pointer"
|
||||
!md3 = !"air.max_device_buffers"
|
||||
!md4 = !"air.max_constant_buffers"
|
||||
!md5 = !"air.max_threadgroup_buffers"
|
||||
!md6 = !"air.max_textures"
|
||||
!md7 = !"air.max_read_write_textures"
|
||||
!md8 = !"air.max_samplers"
|
||||
!md9 = !"air.position"
|
||||
!md10 = !"air.arg_type_name"
|
||||
!md11 = !"float4"
|
||||
!md12 = !"air.arg_name"
|
||||
!md13 = !"position"
|
||||
!md14 = !"air.vertex_id"
|
||||
!md15 = !"uint"
|
||||
!md16 = !"id"
|
||||
!md17 = !"air.render_target"
|
||||
!md18 = !"air.center"
|
||||
!md19 = !"air.no_perspective"
|
||||
!md20 = !"air.texture"
|
||||
!md21 = !"air.location_index"
|
||||
!md22 = !"air.sample"
|
||||
!md23 = !"texture2d<float, sample>"
|
||||
!md24 = !"source"
|
||||
!md25 = !"air.buffer"
|
||||
!md26 = !"air.read"
|
||||
!md27 = !"air.address_space"
|
||||
!md28 = !"air.arg_type_size"
|
||||
!md29 = !"air.arg_type_align_size"
|
||||
!md30 = !"data"
|
||||
!md31 = !"air.compile.denorms_disable"
|
||||
!md32 = !"air.compile.fast_math_enable"
|
||||
!md33 = !"air.compile.framebuffer_fetch_enable"
|
||||
!md34 = !"air.sampler_state"
|
||||
!md35 = !"Apple metal version 32023.922 (metalfe-32023.922.4)"
|
||||
!md36 = !"Metal"
|
||||
!md37 = !"int"
|
||||
!md38 = !"omnipotent char"
|
||||
!md39 = !"Simple C++ TBAA"
|
||||
!md40 = !"air-alias-scope-arg(2)"
|
||||
!md41 = !"air-alias-scope-textures"
|
||||
!md42 = !"llvm.loop.mustprogress"
|
||||
!md43 = i32 2
|
||||
!md44 = %t23 c24
|
||||
!md45 = i32 1
|
||||
!md46 = i32 4
|
||||
!md47 = i32 7
|
||||
!md48 = i32 31
|
||||
!md49 = i32 128
|
||||
!md50 = i32 8
|
||||
!md51 = i32 16
|
||||
!md52 = ptr addrspace(0) @f0
|
||||
!md53 = i32 0
|
||||
!md54 = ptr addrspace(0) @f2
|
||||
!md55 = ptr addrspace(0) @f4
|
||||
!md56 = ptr addrspace(0) @f5
|
||||
!md57 = ptr addrspace(0) @f6
|
||||
!md58 = ptr addrspace(0) @f7
|
||||
!md59 = ptr addrspace(0) @f8
|
||||
!md60 = ptr addrspace(0) @f9
|
||||
!md61 = ptr addrspace(0) @f10
|
||||
!md62 = ptr addrspace(2) @g0
|
||||
!md63 = ptr addrspace(2) @g1
|
||||
!md64 = i64 0
|
||||
!md65 = !{!md43, !md0, !md44}
|
||||
!md66 = !{!md45, !md1, !md46}
|
||||
!md67 = !{!md47, !md2, !md43}
|
||||
!md68 = !{!md47, !md3, !md48}
|
||||
!md69 = !{!md47, !md4, !md48}
|
||||
!md70 = !{!md47, !md5, !md48}
|
||||
!md71 = !{!md47, !md6, !md49}
|
||||
!md72 = !{!md47, !md7, !md50}
|
||||
!md73 = !{!md47, !md8, !md51}
|
||||
!md74 = !{!md9, !md10, !md11, !md12, !md13}
|
||||
!md75 = !{!md74}
|
||||
!md76 = !{!md53, !md14, !md10, !md15, !md12, !md16}
|
||||
!md77 = !{!md76}
|
||||
!md78 = !{!md52, !md75, !md77}
|
||||
!md79 = !{!md17, !md53, !md53, !md10, !md11}
|
||||
!md80 = !{!md79}
|
||||
!md81 = !{!md53, !md9, !md18, !md19, !md10, !md11, !md12, !md13}
|
||||
!md82 = !{!md45, !md20, !md21, !md53, !md45, !md22, !md10, !md23, !md12, !md24}
|
||||
!md83 = !{!md43, !md25, !md21, !md53, !md45, !md26, !md27, !md45, !md28, !md46, !md29, !md46, !md10, !md15, !md12, !md30}
|
||||
!md84 = !{!md81, !md82, !md83}
|
||||
!md85 = !{!md54, !md80, !md84}
|
||||
!md86 = !{!md55, !md80, !md84}
|
||||
!md87 = !{!md56, !md80, !md84}
|
||||
!md88 = !{!md57, !md80, !md84}
|
||||
!md89 = !{!md58, !md80, !md84}
|
||||
!md90 = !{!md59, !md80, !md84}
|
||||
!md91 = !{!md60, !md80, !md84}
|
||||
!md92 = !{!md61, !md80, !md84}
|
||||
!md93 = !{!md31}
|
||||
!md94 = !{!md32}
|
||||
!md95 = !{!md33}
|
||||
!md96 = !{!md34, !md62}
|
||||
!md97 = !{!md34, !md63}
|
||||
!md98 = !{!md35}
|
||||
!md99 = !{!md43, !md50, !md53}
|
||||
!md100 = !{!md36, !md46, !md53, !md53}
|
||||
!md101 = !{!md39}
|
||||
!md102 = !{!md38, !md101, !md64}
|
||||
!md103 = !{!md37, !md102, !md64}
|
||||
!md104 = !{!md103, !md103, !md64}
|
||||
!md105 = !{!md42}
|
||||
!"llvm.module.flags" = !{!md65, !md66, !md67, !md68, !md69, !md70, !md71, !md72, !md73}
|
||||
!"air.vertex" = !{!md78}
|
||||
!"air.fragment" = !{!md85, !md86, !md87, !md88, !md89, !md90, !md91, !md92}
|
||||
!"air.compile_options" = !{!md93, !md94, !md95}
|
||||
!"air.sampler_states" = !{!md96, !md97}
|
||||
!"llvm.ident" = !{!md98}
|
||||
!"air.version" = !{!md99}
|
||||
!"air.language_version" = !{!md100}
|
||||
@@ -0,0 +1,461 @@
|
||||
target triple = "air64_v28-apple-macosx26.0.0"
|
||||
source_filename = "-"
|
||||
; datalayout DataLayout { endian: Little, pointers: {0: PointerSpec { size_bits: 64, abi_bits: 64, pref_bits: 64, index_bits: 64 }}, ints: {1: AlignSpec { abi_bits: 8, pref_bits: 8 }, 8: AlignSpec { abi_bits: 8, pref_bits: 8 }, 16: AlignSpec { abi_bits: 16, pref_bits: 16 }, 32: AlignSpec { abi_bits: 32, pref_bits: 32 }, 64: AlignSpec { abi_bits: 64, pref_bits: 64 }}, floats: {16: AlignSpec { abi_bits: 16, pref_bits: 16 }, 32: AlignSpec { abi_bits: 32, pref_bits: 32 }, 64: AlignSpec { abi_bits: 64, pref_bits: 64 }, 128: AlignSpec { abi_bits: 128, pref_bits: 128 }}, vectors: {16: AlignSpec { abi_bits: 16, pref_bits: 16 }, 24: AlignSpec { abi_bits: 32, pref_bits: 32 }, 32: AlignSpec { abi_bits: 32, pref_bits: 32 }, 48: AlignSpec { abi_bits: 64, pref_bits: 64 }, 64: AlignSpec { abi_bits: 64, pref_bits: 64 }, 96: AlignSpec { abi_bits: 128, pref_bits: 128 }, 128: AlignSpec { abi_bits: 128, pref_bits: 128 }, 192: AlignSpec { abi_bits: 256, pref_bits: 256 }, 256: AlignSpec { abi_bits: 256, pref_bits: 256 }, 512: AlignSpec { abi_bits: 512, pref_bits: 512 }, 1024: AlignSpec { abi_bits: 1024, pref_bits: 1024 }}, aggregate: AlignSpec { abi_bits: 0, pref_bits: 64 }, native_ints: [8, 16, 32], stack_align_bits: None, alloca_space: 0, program_space: 0, globals_space: 0, mangling: None, fn_ptr_align: None, non_integral: [] }
|
||||
%t2 = type [2 x i64]
|
||||
%t6 = type <{ <4 x float> }>
|
||||
%t8 = type %t6 (i32)
|
||||
%t9 = type float (i32)
|
||||
%t11 = type <4 x float> (<4 x float>, ptr addrspace(1), ptr addrspace(1), ptr addrspace(1))
|
||||
%t14 = type <2 x i32> (<2 x float>)
|
||||
%t15 = type <4 x float> (<4 x float>, ptr addrspace(1), ptr addrspace(1), ptr addrspace(1), ptr addrspace(2))
|
||||
%t17 = type { <4 x float>, i8 }
|
||||
%t19 = type %t17 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i1, <2 x i32>, i1, float, float, i32)
|
||||
%t20 = type float (float)
|
||||
%t23 = type [2 x i32]
|
||||
%t25 = type [3 x <2 x float>]
|
||||
c17 = %t2 [34901797601026194, 0]
|
||||
c18 = %t2 [34901797601036946, 0]
|
||||
c19 = %t23 [27, 2]
|
||||
c34 = <2 x float> [0x40000000, 0x40000000]
|
||||
c35 = <2 x float> [0xBF800000, 0xBF800000]
|
||||
c38 = <4 x i32> [0, 1, poison, poison]
|
||||
c42 = <4 x float> [poison, poison, 0x0, 0x3F800000]
|
||||
c43 = <4 x i32> [0, 1, 6, 7]
|
||||
c52 = <2 x float> [0x3FA66666, 0x3F333333]
|
||||
c53 = <2 x float> [0x40D33333, 0x3FF33333]
|
||||
c55 = <2 x float> [0x40066666, 0x40D9999A]
|
||||
c57 = <2 x float> [0x41000000, 0x41000000]
|
||||
c62 = <2 x i32> [0, 1]
|
||||
c63 = <2 x i32> [3, 3]
|
||||
c70 = <2 x i32> [1, 1]
|
||||
c76 = <2 x float> [0x3FC00000, 0x3FC00000]
|
||||
c77 = <4 x i32> [0, 1, 2, 4]
|
||||
c78 = <4 x float> [0x0, 0x0, 0x0, 0xC0A00000]
|
||||
c79 = <2 x i32> [2, 2]
|
||||
@g0 "__air_sampler_state" = internal addrspace(2) constant %t2 c17, align 8
|
||||
@g1 "__air_sampler_state.1" = internal addrspace(2) constant %t2 c18, align 8
|
||||
|
||||
define %t8 @f0 "rs_cover" memory(NoModRef, NoModRef, NoModRef) "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "no-builtins"="" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" {
|
||||
bb0:
|
||||
%i0 = shl i32 %a0, i32 1
|
||||
%i1 = and i32 %i0, i32 2
|
||||
%i2 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i1)
|
||||
%i3 = insertelement <2 x float> undef, %i2, i64 0
|
||||
%i4 = and i32 %a0, i32 2
|
||||
%i5 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i4)
|
||||
%i6 = insertelement %i3, %i5, i64 1
|
||||
%i7 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i6, <2 x float> c34
|
||||
%i8 = fadd reassoc nnan ninf nsz arcp contract afn <2 x float> %i7, <2 x float> c35
|
||||
%i9 = shufflevector <4 x float> %i8, <2 x float> poison, <0, 1, poison, poison>
|
||||
%i10 = shufflevector <4 x float> %i9, <4 x float> c42, <0, 1, 6, 7>
|
||||
%i11 = insertvalue %t6 undef %i10, 0
|
||||
ret %i11
|
||||
}
|
||||
|
||||
declare %t9 @f1 "air.convert.f.f32.u.i32" memory(NoModRef, NoModRef, NoModRef)
|
||||
|
||||
define %t8 @f2 "rs_cells" memory(NoModRef, NoModRef, NoModRef) "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "no-builtins"="" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" {
|
||||
bb0:
|
||||
%i0 = alloca %t25, i32 1, align 8
|
||||
%i1 = udiv i32 %a0, i32 3
|
||||
%i2 = urem i32 %a0, i32 3
|
||||
%i3 = bitcast %i0 to ptr addrspace(0)
|
||||
%i4 = getelementptr inbounds %t25, %i0, i64 0, i64 0
|
||||
store <2 x float> c52, %i4, align 8
|
||||
%i6 = getelementptr inbounds %t25, %i0, i64 0, i64 1
|
||||
store <2 x float> c53, %i6, align 8
|
||||
%i8 = getelementptr inbounds %t25, %i0, i64 0, i64 2
|
||||
store <2 x float> c55, %i8, align 8
|
||||
%i10 = and i32 %i1, i32 7
|
||||
%i11 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i10)
|
||||
%i12 = insertelement <2 x float> undef, %i11, i64 0
|
||||
%i13 = udiv i32 %a0, i32 24
|
||||
%i14 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i13)
|
||||
%i15 = insertelement %i12, %i14, i64 1
|
||||
%i16 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i15, <2 x float> c57
|
||||
%i17 = zext %i2 to i64
|
||||
%i18 = getelementptr inbounds %t25, %i0, i64 0, %i17
|
||||
%i19 = load <2 x float>, %i18, align 8
|
||||
%i20 = fadd reassoc nnan ninf nsz arcp contract afn <2 x float> %i16, %i19
|
||||
%i21 = extractelement %i20, i64 0
|
||||
%i22 = fmul reassoc nnan ninf nsz arcp contract afn float %i21, float 0x3D000000
|
||||
%i23 = fadd reassoc nnan ninf nsz arcp contract afn float %i22, float 0xBF800000
|
||||
%i24 = extractelement %i20, i64 1
|
||||
%i25 = fmul reassoc nnan ninf nsz arcp contract afn float %i24, float 0x3D000000
|
||||
%i26 = fsub reassoc nnan ninf nsz arcp contract afn float float 0x3F800000, %i25
|
||||
%i27 = insertelement <4 x float> c42, %i23, i64 0
|
||||
%i28 = insertelement %i27, %i26, i64 1
|
||||
%i29 = insertvalue %t6 undef %i28, 0
|
||||
ret %i29
|
||||
}
|
||||
|
||||
define %t11 @f3 "rc_select" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="128" "no-builtins"="" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" %a1( Ref nocapture ) %a2( Ref nocapture ) %a3( Ref nocapture "air-buffer-no-alias"="" ) {
|
||||
bb0:
|
||||
%i0 = shufflevector <2 x float> %a0, <4 x float> poison, <0, 1>
|
||||
%i1 = tail call <2 x i32> @f4 [air Convert(Convert { dst: NumTy { elem: I32, lanes: 2 }, dst_kind: Unsigned, src: NumTy { elem: F32, lanes: 2 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i0)
|
||||
%i2 = lshr <2 x i32> %i1, <2 x i32> c63
|
||||
%i3 = extractelement %i2, i64 0
|
||||
%i4 = mul i32 %i3, i32 2654435761
|
||||
%i5 = extractelement %i2, i64 1
|
||||
%i6 = mul i32 %i5, i32 2246822519
|
||||
%i7 = xor i32 %i4, %i6
|
||||
%i8 = lshr i32 %i7, i32 15
|
||||
%i9 = xor i32 %i8, %i7
|
||||
%i10 = mul i32 %i9, i32 739982445
|
||||
%i11 = lshr i32 %i10, i32 12
|
||||
%i12 = xor i32 %i11, %i10
|
||||
%i13 = and i32 %i12, i32 255
|
||||
%i14 = zext %i13 to i64
|
||||
%i15 = getelementptr inbounds i32, %a3, %i14
|
||||
%i16 = load i32, %i15, align 4
|
||||
%i17 = and i32 %i16, i32 1
|
||||
%i18 = icmp eq %i17, i32 0
|
||||
br %i18, bb2, bb1
|
||||
bb1:
|
||||
%i20 = extractelement %i1, i64 0
|
||||
%i21 = mul i32 %i20, i32 2654435761
|
||||
%i22 = extractelement %i1, i64 1
|
||||
%i23 = mul i32 %i22, i32 2246822519
|
||||
%i24 = xor i32 %i21, %i23
|
||||
%i25 = lshr i32 %i24, i32 15
|
||||
%i26 = xor i32 %i25, %i24
|
||||
%i27 = mul i32 %i26, i32 739982445
|
||||
%i28 = lshr i32 %i27, i32 12
|
||||
%i29 = xor i32 %i28, %i27
|
||||
%i30 = lshr i32 %i29, i32 8
|
||||
%i31 = and i32 %i30, i32 255
|
||||
%i32 = zext %i31 to i64
|
||||
%i33 = getelementptr inbounds i32, %a3, %i32
|
||||
%i34 = load i32, %i33, align 4
|
||||
%i35 = and i32 %i34, i32 1
|
||||
%i36 = icmp eq %i35, i32 0
|
||||
%i37 = select ptr addrspace(1) %i36, %a1, %a2
|
||||
%i38 = and i32 %i29, i32 255
|
||||
%i39 = zext %i38 to i64
|
||||
%i40 = getelementptr inbounds i32, %a3, %i39
|
||||
%i41 = load i32, %i40, align 4
|
||||
%i42 = and i32 %i41, i32 255
|
||||
%i43 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i42)
|
||||
%i44 = lshr <2 x i32> %i1, <2 x i32> c70
|
||||
%i45 = extractelement %i44, i64 0
|
||||
%i46 = mul i32 %i45, i32 2654435761
|
||||
%i47 = extractelement %i44, i64 1
|
||||
%i48 = mul i32 %i47, i32 2246822519
|
||||
%i49 = xor i32 %i46, %i48
|
||||
%i50 = lshr i32 %i49, i32 15
|
||||
%i51 = xor i32 %i50, %i49
|
||||
%i52 = mul i32 %i51, i32 739982445
|
||||
%i53 = lshr i32 %i52, i32 12
|
||||
%i54 = xor i32 %i53, %i52
|
||||
%i55 = and i32 %i54, i32 7
|
||||
%i56 = shl nuw nsw i32 i32 1, %i55
|
||||
%i57 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i56)
|
||||
%i58 = fmul reassoc nnan ninf nsz arcp contract afn float %i57, float 0x3A800000
|
||||
%i59 = insertelement <2 x float> undef, %i58, i64 0
|
||||
%i60 = fmul reassoc nnan ninf nsz arcp contract afn float %i57, float 0x3F000000
|
||||
%i61 = insertelement %i59, %i60, i64 1
|
||||
%i62 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i61, %i0
|
||||
%i63 = tail call %t17 @f7 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%i37, ptr addrspace(2) @g0, %i62, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
|
||||
%i64 = extractvalue <4 x float> %i63, 0
|
||||
%i65 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i62, <2 x float> c76
|
||||
%i66 = tail call %t17 @f7 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%i37, ptr addrspace(2) @g1, %i65, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
|
||||
%i67 = extractvalue <4 x float> %i66, 0
|
||||
%i68 = tail call reassoc nnan ninf nsz arcp contract afn float @f8 [air Derivative(Derivative { op: Dfdx, fast: false, ty: NumTy { elem: F32, lanes: 1 } })](%i43) convergent
|
||||
%i69 = insertelement %i64, %i68, i64 1
|
||||
%i70 = tail call reassoc nnan ninf nsz arcp contract afn float @f9 [air Derivative(Derivative { op: Dfdy, fast: false, ty: NumTy { elem: F32, lanes: 1 } })](%i43) convergent
|
||||
%i71 = insertelement %i69, %i70, i64 2
|
||||
%i72 = shufflevector <4 x float> %i71, %i67, <0, 1, 2, 4>
|
||||
br bb2
|
||||
bb2:
|
||||
%i74 = phi <4 x float> [%i72, bb1], [<4 x float> c78, bb0]
|
||||
ret %i74
|
||||
}
|
||||
|
||||
declare %t14 @f4 "air.convert.u.v2i32.f.v2f32" memory(NoModRef, NoModRef, NoModRef)
|
||||
|
||||
define %t11 @f5 "rc_select_quad" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="128" "no-builtins"="" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" %a1( Ref nocapture ) %a2( Ref nocapture ) %a3( Ref nocapture "air-buffer-no-alias"="" ) {
|
||||
bb0:
|
||||
%i0 = shufflevector <2 x float> %a0, <4 x float> poison, <0, 1>
|
||||
%i1 = tail call <2 x i32> @f4 [air Convert(Convert { dst: NumTy { elem: I32, lanes: 2 }, dst_kind: Unsigned, src: NumTy { elem: F32, lanes: 2 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i0)
|
||||
%i2 = lshr <2 x i32> %i1, <2 x i32> c63
|
||||
%i3 = extractelement %i2, i64 0
|
||||
%i4 = mul i32 %i3, i32 2654435761
|
||||
%i5 = extractelement %i2, i64 1
|
||||
%i6 = mul i32 %i5, i32 2246822519
|
||||
%i7 = xor i32 %i4, %i6
|
||||
%i8 = lshr i32 %i7, i32 15
|
||||
%i9 = xor i32 %i8, %i7
|
||||
%i10 = mul i32 %i9, i32 739982445
|
||||
%i11 = lshr i32 %i10, i32 12
|
||||
%i12 = xor i32 %i11, %i10
|
||||
%i13 = and i32 %i12, i32 255
|
||||
%i14 = zext %i13 to i64
|
||||
%i15 = getelementptr inbounds i32, %a3, %i14
|
||||
%i16 = load i32, %i15, align 4
|
||||
%i17 = and i32 %i16, i32 1
|
||||
%i18 = icmp eq %i17, i32 0
|
||||
br %i18, bb2, bb1
|
||||
bb1:
|
||||
%i20 = extractelement %i1, i64 0
|
||||
%i21 = mul i32 %i20, i32 2654435761
|
||||
%i22 = extractelement %i1, i64 1
|
||||
%i23 = mul i32 %i22, i32 2246822519
|
||||
%i24 = xor i32 %i21, %i23
|
||||
%i25 = lshr i32 %i24, i32 15
|
||||
%i26 = xor i32 %i25, %i24
|
||||
%i27 = mul i32 %i26, i32 739982445
|
||||
%i28 = lshr i32 %i27, i32 12
|
||||
%i29 = xor i32 %i28, %i27
|
||||
%i30 = lshr <2 x i32> %i1, <2 x i32> c79
|
||||
%i31 = extractelement %i30, i64 0
|
||||
%i32 = mul i32 %i31, i32 2654435761
|
||||
%i33 = extractelement %i30, i64 1
|
||||
%i34 = mul i32 %i33, i32 2246822519
|
||||
%i35 = xor i32 %i32, %i34
|
||||
%i36 = lshr i32 %i35, i32 15
|
||||
%i37 = xor i32 %i36, %i35
|
||||
%i38 = mul i32 %i37, i32 739982445
|
||||
%i39 = lshr i32 %i38, i32 20
|
||||
%i40 = lshr i32 %i38, i32 8
|
||||
%i41 = xor i32 %i39, %i40
|
||||
%i42 = and i32 %i41, i32 255
|
||||
%i43 = zext %i42 to i64
|
||||
%i44 = getelementptr inbounds i32, %a3, %i43
|
||||
%i45 = load i32, %i44, align 4
|
||||
%i46 = and i32 %i45, i32 1
|
||||
%i47 = icmp eq %i46, i32 0
|
||||
%i48 = select ptr addrspace(1) %i47, %a1, %a2
|
||||
%i49 = and i32 %i29, i32 255
|
||||
%i50 = zext %i49 to i64
|
||||
%i51 = getelementptr inbounds i32, %a3, %i50
|
||||
%i52 = load i32, %i51, align 4
|
||||
%i53 = and i32 %i52, i32 255
|
||||
%i54 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i53)
|
||||
%i55 = lshr <2 x i32> %i1, <2 x i32> c70
|
||||
%i56 = extractelement %i55, i64 0
|
||||
%i57 = mul i32 %i56, i32 2654435761
|
||||
%i58 = extractelement %i55, i64 1
|
||||
%i59 = mul i32 %i58, i32 2246822519
|
||||
%i60 = xor i32 %i57, %i59
|
||||
%i61 = lshr i32 %i60, i32 15
|
||||
%i62 = xor i32 %i61, %i60
|
||||
%i63 = mul i32 %i62, i32 739982445
|
||||
%i64 = lshr i32 %i63, i32 12
|
||||
%i65 = xor i32 %i64, %i63
|
||||
%i66 = and i32 %i65, i32 7
|
||||
%i67 = shl nuw nsw i32 i32 1, %i66
|
||||
%i68 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i67)
|
||||
%i69 = fmul reassoc nnan ninf nsz arcp contract afn float %i68, float 0x3A800000
|
||||
%i70 = insertelement <2 x float> undef, %i69, i64 0
|
||||
%i71 = fmul reassoc nnan ninf nsz arcp contract afn float %i68, float 0x3F000000
|
||||
%i72 = insertelement %i70, %i71, i64 1
|
||||
%i73 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i72, %i0
|
||||
%i74 = tail call %t17 @f7 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%i48, ptr addrspace(2) @g0, %i73, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
|
||||
%i75 = extractvalue <4 x float> %i74, 0
|
||||
%i76 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i73, <2 x float> c76
|
||||
%i77 = tail call %t17 @f7 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%i48, ptr addrspace(2) @g1, %i76, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
|
||||
%i78 = extractvalue <4 x float> %i77, 0
|
||||
%i79 = tail call reassoc nnan ninf nsz arcp contract afn float @f8 [air Derivative(Derivative { op: Dfdx, fast: false, ty: NumTy { elem: F32, lanes: 1 } })](%i54) convergent
|
||||
%i80 = insertelement %i75, %i79, i64 1
|
||||
%i81 = tail call reassoc nnan ninf nsz arcp contract afn float @f9 [air Derivative(Derivative { op: Dfdy, fast: false, ty: NumTy { elem: F32, lanes: 1 } })](%i54) convergent
|
||||
%i82 = insertelement %i80, %i81, i64 2
|
||||
%i83 = shufflevector <4 x float> %i82, %i78, <0, 1, 2, 4>
|
||||
br bb2
|
||||
bb2:
|
||||
%i85 = phi <4 x float> [%i83, bb1], [<4 x float> c78, bb0]
|
||||
ret %i85
|
||||
}
|
||||
|
||||
define %t15 @f6 "rc_pick" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="128" "no-builtins"="" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" %a1( Ref nocapture ) %a2( Ref nocapture ) %a3( Ref nocapture "air-buffer-no-alias"="" ) %a4( align 4 dereferenceable(4) Ref nocapture "air-buffer-no-alias"="" ) {
|
||||
bb0:
|
||||
%i0 = shufflevector <2 x float> %a0, <4 x float> poison, <0, 1>
|
||||
%i1 = tail call <2 x i32> @f4 [air Convert(Convert { dst: NumTy { elem: I32, lanes: 2 }, dst_kind: Unsigned, src: NumTy { elem: F32, lanes: 2 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i0)
|
||||
%i2 = lshr <2 x i32> %i1, <2 x i32> c63
|
||||
%i3 = extractelement %i2, i64 0
|
||||
%i4 = mul i32 %i3, i32 2654435761
|
||||
%i5 = extractelement %i2, i64 1
|
||||
%i6 = mul i32 %i5, i32 2246822519
|
||||
%i7 = xor i32 %i4, %i6
|
||||
%i8 = lshr i32 %i7, i32 15
|
||||
%i9 = xor i32 %i8, %i7
|
||||
%i10 = mul i32 %i9, i32 739982445
|
||||
%i11 = lshr i32 %i10, i32 12
|
||||
%i12 = xor i32 %i11, %i10
|
||||
%i13 = and i32 %i12, i32 255
|
||||
%i14 = zext %i13 to i64
|
||||
%i15 = getelementptr inbounds i32, %a3, %i14
|
||||
%i16 = load i32, %i15, align 4
|
||||
%i17 = and i32 %i16, i32 1
|
||||
%i18 = icmp eq %i17, i32 0
|
||||
br %i18, bb2, bb1
|
||||
bb1:
|
||||
%i20 = extractelement %i1, i64 0
|
||||
%i21 = mul i32 %i20, i32 2654435761
|
||||
%i22 = extractelement %i1, i64 1
|
||||
%i23 = mul i32 %i22, i32 2246822519
|
||||
%i24 = xor i32 %i21, %i23
|
||||
%i25 = lshr i32 %i24, i32 15
|
||||
%i26 = xor i32 %i25, %i24
|
||||
%i27 = mul i32 %i26, i32 739982445
|
||||
%i28 = lshr i32 %i27, i32 12
|
||||
%i29 = xor i32 %i28, %i27
|
||||
%i30 = load i32, %a4, align 4
|
||||
%i31 = icmp eq %i30, i32 0
|
||||
%i32 = select ptr addrspace(1) %i31, %a1, %a2
|
||||
%i33 = and i32 %i29, i32 255
|
||||
%i34 = zext %i33 to i64
|
||||
%i35 = getelementptr inbounds i32, %a3, %i34
|
||||
%i36 = load i32, %i35, align 4
|
||||
%i37 = and i32 %i36, i32 255
|
||||
%i38 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i37)
|
||||
%i39 = lshr <2 x i32> %i1, <2 x i32> c70
|
||||
%i40 = extractelement %i39, i64 0
|
||||
%i41 = mul i32 %i40, i32 2654435761
|
||||
%i42 = extractelement %i39, i64 1
|
||||
%i43 = mul i32 %i42, i32 2246822519
|
||||
%i44 = xor i32 %i41, %i43
|
||||
%i45 = lshr i32 %i44, i32 15
|
||||
%i46 = xor i32 %i45, %i44
|
||||
%i47 = mul i32 %i46, i32 739982445
|
||||
%i48 = lshr i32 %i47, i32 12
|
||||
%i49 = xor i32 %i48, %i47
|
||||
%i50 = and i32 %i49, i32 7
|
||||
%i51 = shl nuw nsw i32 i32 1, %i50
|
||||
%i52 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i51)
|
||||
%i53 = fmul reassoc nnan ninf nsz arcp contract afn float %i52, float 0x3A800000
|
||||
%i54 = insertelement <2 x float> undef, %i53, i64 0
|
||||
%i55 = fmul reassoc nnan ninf nsz arcp contract afn float %i52, float 0x3F000000
|
||||
%i56 = insertelement %i54, %i55, i64 1
|
||||
%i57 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i56, %i0
|
||||
%i58 = tail call %t17 @f7 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%i32, ptr addrspace(2) @g0, %i57, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
|
||||
%i59 = extractvalue <4 x float> %i58, 0
|
||||
%i60 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i57, <2 x float> c76
|
||||
%i61 = tail call %t17 @f7 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%i32, ptr addrspace(2) @g1, %i60, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
|
||||
%i62 = extractvalue <4 x float> %i61, 0
|
||||
%i63 = tail call reassoc nnan ninf nsz arcp contract afn float @f8 [air Derivative(Derivative { op: Dfdx, fast: false, ty: NumTy { elem: F32, lanes: 1 } })](%i38) convergent
|
||||
%i64 = insertelement %i59, %i63, i64 1
|
||||
%i65 = tail call reassoc nnan ninf nsz arcp contract afn float @f9 [air Derivative(Derivative { op: Dfdy, fast: false, ty: NumTy { elem: F32, lanes: 1 } })](%i38) convergent
|
||||
%i66 = insertelement %i64, %i65, i64 2
|
||||
%i67 = shufflevector <4 x float> %i66, %i62, <0, 1, 2, 4>
|
||||
br bb2
|
||||
bb2:
|
||||
%i69 = phi <4 x float> [%i67, bb1], [<4 x float> c78, bb0]
|
||||
ret %i69
|
||||
}
|
||||
|
||||
declare %t19 @f7 "air.sample_texture_2d.v4f32" convergent memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture ) %a1( Ref nocapture )
|
||||
|
||||
declare %t20 @f8 "air.dfdx.f32" convergent
|
||||
|
||||
declare %t20 @f9 "air.dfdy.f32" convergent
|
||||
!md0 = !"SDK Version"
|
||||
!md1 = !"wchar_size"
|
||||
!md2 = !"frame-pointer"
|
||||
!md3 = !"air.max_device_buffers"
|
||||
!md4 = !"air.max_constant_buffers"
|
||||
!md5 = !"air.max_threadgroup_buffers"
|
||||
!md6 = !"air.max_textures"
|
||||
!md7 = !"air.max_read_write_textures"
|
||||
!md8 = !"air.max_samplers"
|
||||
!md9 = !"air.position"
|
||||
!md10 = !"air.arg_type_name"
|
||||
!md11 = !"float4"
|
||||
!md12 = !"air.arg_name"
|
||||
!md13 = !"position"
|
||||
!md14 = !"air.vertex_id"
|
||||
!md15 = !"uint"
|
||||
!md16 = !"id"
|
||||
!md17 = !"air.render_target"
|
||||
!md18 = !"air.center"
|
||||
!md19 = !"air.no_perspective"
|
||||
!md20 = !"air.texture"
|
||||
!md21 = !"air.location_index"
|
||||
!md22 = !"air.sample"
|
||||
!md23 = !"texture2d<float, sample>"
|
||||
!md24 = !"first"
|
||||
!md25 = !"second"
|
||||
!md26 = !"air.buffer"
|
||||
!md27 = !"air.read"
|
||||
!md28 = !"air.address_space"
|
||||
!md29 = !"air.arg_type_size"
|
||||
!md30 = !"air.arg_type_align_size"
|
||||
!md31 = !"data"
|
||||
!md32 = !"air.buffer_size"
|
||||
!md33 = !"pick"
|
||||
!md34 = !"air.compile.denorms_disable"
|
||||
!md35 = !"air.compile.fast_math_enable"
|
||||
!md36 = !"air.compile.framebuffer_fetch_enable"
|
||||
!md37 = !"air.sampler_state"
|
||||
!md38 = !"Apple metal version 32023.922 (metalfe-32023.922.4)"
|
||||
!md39 = !"Metal"
|
||||
!md40 = !"omnipotent char"
|
||||
!md41 = !"Simple C++ TBAA"
|
||||
!md42 = !"int"
|
||||
!md43 = !"air-alias-scope-arg(3)"
|
||||
!md44 = !"air-alias-scope-textures"
|
||||
!md45 = i32 2
|
||||
!md46 = %t23 c19
|
||||
!md47 = i32 1
|
||||
!md48 = i32 4
|
||||
!md49 = i32 7
|
||||
!md50 = i32 31
|
||||
!md51 = i32 128
|
||||
!md52 = i32 8
|
||||
!md53 = i32 16
|
||||
!md54 = ptr addrspace(0) @f0
|
||||
!md55 = i32 0
|
||||
!md56 = ptr addrspace(0) @f2
|
||||
!md57 = ptr addrspace(0) @f3
|
||||
!md58 = i32 3
|
||||
!md59 = ptr addrspace(0) @f5
|
||||
!md60 = ptr addrspace(0) @f6
|
||||
!md61 = ptr addrspace(2) @g0
|
||||
!md62 = ptr addrspace(2) @g1
|
||||
!md63 = i64 0
|
||||
!md64 = !{!md45, !md0, !md46}
|
||||
!md65 = !{!md47, !md1, !md48}
|
||||
!md66 = !{!md49, !md2, !md45}
|
||||
!md67 = !{!md49, !md3, !md50}
|
||||
!md68 = !{!md49, !md4, !md50}
|
||||
!md69 = !{!md49, !md5, !md50}
|
||||
!md70 = !{!md49, !md6, !md51}
|
||||
!md71 = !{!md49, !md7, !md52}
|
||||
!md72 = !{!md49, !md8, !md53}
|
||||
!md73 = !{!md9, !md10, !md11, !md12, !md13}
|
||||
!md74 = !{!md73}
|
||||
!md75 = !{!md55, !md14, !md10, !md15, !md12, !md16}
|
||||
!md76 = !{!md75}
|
||||
!md77 = !{!md54, !md74, !md76}
|
||||
!md78 = !{!md56, !md74, !md76}
|
||||
!md79 = !{!md17, !md55, !md55, !md10, !md11}
|
||||
!md80 = !{!md79}
|
||||
!md81 = !{!md55, !md9, !md18, !md19, !md10, !md11, !md12, !md13}
|
||||
!md82 = !{!md47, !md20, !md21, !md55, !md47, !md22, !md10, !md23, !md12, !md24}
|
||||
!md83 = !{!md45, !md20, !md21, !md47, !md47, !md22, !md10, !md23, !md12, !md25}
|
||||
!md84 = !{!md58, !md26, !md21, !md55, !md47, !md27, !md28, !md47, !md29, !md48, !md30, !md48, !md10, !md15, !md12, !md31}
|
||||
!md85 = !{!md81, !md82, !md83, !md84}
|
||||
!md86 = !{!md57, !md80, !md85}
|
||||
!md87 = !{!md59, !md80, !md85}
|
||||
!md88 = !{!md48, !md26, !md32, !md48, !md21, !md47, !md47, !md27, !md28, !md45, !md29, !md48, !md30, !md48, !md10, !md15, !md12, !md33}
|
||||
!md89 = !{!md81, !md82, !md83, !md84, !md88}
|
||||
!md90 = !{!md60, !md80, !md89}
|
||||
!md91 = !{!md34}
|
||||
!md92 = !{!md35}
|
||||
!md93 = !{!md36}
|
||||
!md94 = !{!md37, !md61}
|
||||
!md95 = !{!md37, !md62}
|
||||
!md96 = !{!md38}
|
||||
!md97 = !{!md45, !md52, !md55}
|
||||
!md98 = !{!md39, !md48, !md55, !md55}
|
||||
!md99 = !{!md41}
|
||||
!md100 = !{!md40, !md99, !md63}
|
||||
!md101 = !{!md42, !md100, !md63}
|
||||
!md102 = !{!md101, !md101, !md63}
|
||||
!"llvm.module.flags" = !{!md64, !md65, !md66, !md67, !md68, !md69, !md70, !md71, !md72}
|
||||
!"air.vertex" = !{!md77, !md78}
|
||||
!"air.fragment" = !{!md86, !md87, !md90}
|
||||
!"air.compile_options" = !{!md91, !md92, !md93}
|
||||
!"air.sampler_states" = !{!md94, !md95}
|
||||
!"llvm.ident" = !{!md96}
|
||||
!"air.version" = !{!md97}
|
||||
!"air.language_version" = !{!md98}
|
||||
Reference in new issue
Block a user