Overhaul the validation workflow around sharded authored cases, dependency-exact observations, incremental indexed corpus audits, bounded parallel translation, and native Metal/Vulkan comparison.\n\nExpand native AIR lowering, reflection, linked-function specialization, resource and stage-interface support, and structural CFG/pointer repair across the harvested macOS 26 corpus. Add exact intrinsic inventory, distributed 16x16x16 matrix lowering, explicit opaque tensor linkage, and regression coverage for the newly supported feature classes.\n\nThe final corpus verification accounts for all 88,819 indexed AIR modules under the current product fingerprint: 65,355 translate and validate directly, 23,464 require exact authored linkage, and zero fail or remain unresolved.
24 lines
945 B
LLVM
24 lines
945 B
LLVM
target datalayout = "e-p:64:64:64"
|
|
target triple = "air64-apple-macosx14.0.0"
|
|
|
|
@vector_value.MTL_FC_INIT_0_Dv4_j = internal addrspace(2) externally_initialized constant <4 x i32> undef, section "air.fc_initializer", align 16
|
|
|
|
define void @kernel_vector_function_constant(ptr addrspace(1) %output) {
|
|
%value = load <4 x i32>, ptr addrspace(2) @vector_value.MTL_FC_INIT_0_Dv4_j, align 16
|
|
%x = extractelement <4 x i32> %value, i64 0
|
|
%y = extractelement <4 x i32> %value, i64 1
|
|
%z = extractelement <4 x i32> %value, i64 2
|
|
%w = extractelement <4 x i32> %value, i64 3
|
|
%xy = add i32 %x, %y
|
|
%xyz = add i32 %xy, %z
|
|
%sum = add i32 %xyz, %w
|
|
store i32 %sum, ptr addrspace(1) %output, align 4
|
|
ret void
|
|
}
|
|
|
|
!air.kernel = !{!0}
|
|
!0 = !{ptr @kernel_vector_function_constant, !1, !2}
|
|
!1 = !{}
|
|
!2 = !{!3}
|
|
!3 = !{i32 0, !"air.buffer", !"air.location_index", i32 0, i32 1, !"air.write", !"air.address_space", i32 1, !"air.arg_type_name", !"uint*"}
|