@@ -13602,6 +13602,78 @@ function enzymexlaGuaranteedAnalysisResultAttrGet(ctx, mode)
1360213602 ):: MlirAttribute
1360313603end
1360413604
13605+ """
13606+ EnzymeXLAPropagateDirection
13607+
13608+ Enum for propagation direction (reshape/transpose).
13609+ """
13610+ @cenum EnzymeXLAPropagateDirection:: UInt32 begin
13611+ ENZYMEXLA_PROPAGATE_NONE = 0x0000000000000000
13612+ ENZYMEXLA_PROPAGATE_UP = 0x0000000000000001
13613+ ENZYMEXLA_PROPAGATE_DOWN = 0x0000000000000002
13614+ end
13615+
13616+ """
13617+ EnzymeXLATransformPassesOptions
13618+
13619+ Options that control which transform passes are generated.
13620+ """
13621+ struct EnzymeXLATransformPassesOptions
13622+ max_constant_threshold:: Int64
13623+ while_unroll_threshold:: Int64
13624+ reshape_propagate:: EnzymeXLAPropagateDirection
13625+ transpose_propagate:: EnzymeXLAPropagateDirection
13626+ no_nan:: Bool
13627+ all_finite:: Bool
13628+ dus_to_concat:: Bool
13629+ dus_slice_simplify:: Bool
13630+ sum_to_reducewindow:: Bool
13631+ sum_to_conv:: Bool
13632+ aggressive_sum_to_conv:: Bool
13633+ while_concat:: Bool
13634+ aggressive_propagation:: Bool
13635+ is_sharded:: Bool
13636+ raise_shlo_to_blas_lapack:: Bool
13637+ recognize_comms:: Bool
13638+ lower_comms:: Bool
13639+ enable_self_to_convolution_like_passes:: Bool
13640+ enable_structured_tensors_detection_passes:: Bool
13641+ enable_structured_tensors_passes:: Bool
13642+ enable_scatter_gather_optimization_passes:: Bool
13643+ enable_slice_to_batch_passes:: Bool
13644+ enable_reduce_slice_fusion_passes:: Bool
13645+ enable_concat_to_batch_passes:: Bool
13646+ enable_loop_raising_passes:: Bool
13647+ enable_licm_optimization_passes:: Bool
13648+ enable_pad_optimization_passes:: Bool
13649+ end
13650+
13651+ """
13652+ enzymexlaGetTransformPassesList(options, mainPasses, lowerPasses)
13653+
13654+ Returns the transform passes list as a semicolon-separated string. The caller must free the returned string using [`enzymexlaFreeTransformPassesList`](@ref).
13655+
13656+ Two separate lists are produced: - `mainPasses`: the primary transform pass list - `lowerPasses`: the lowering transform pass list (for lower\\ _comms)
13657+
13658+ Each is returned as a semicolon-separated string of pass patterns.
13659+ """
13660+ function enzymexlaGetTransformPassesList (options, mainPasses, lowerPasses)
13661+ @ccall mlir_c. enzymexlaGetTransformPassesList (
13662+ options:: Ptr{EnzymeXLATransformPassesOptions} ,
13663+ mainPasses:: Ptr{Cstring} ,
13664+ lowerPasses:: Ptr{Cstring} ,
13665+ ):: Cvoid
13666+ end
13667+
13668+ """
13669+ enzymexlaFreeTransformPassesList(passes)
13670+
13671+ Free a string returned by [`enzymexlaGetTransformPassesList`](@ref).
13672+ """
13673+ function enzymexlaFreeTransformPassesList (passes)
13674+ @ccall mlir_c. enzymexlaFreeTransformPassesList (passes:: Cstring ):: Cvoid
13675+ end
13676+
1360513677@cenum EnzymeRngDistribution:: UInt32 begin
1360613678 EnzymeRngDistribution_Uniform = 0x0000000000000000
1360713679 EnzymeRngDistribution_Normal = 0x0000000000000001
0 commit comments