11<!-- Autogenerated by mlir-tblgen; don't manually edit -->
2+
23### ` -chlo-legalize-to-stablehlo `
34
45_ Legalizes from CHLO ops flow to StableHLO and Shape ops_
56
6-
77### ` -shape-legalize-to-stablehlo `
88
99_ Legalize shape-related ops to StableHLO._
@@ -13,6 +13,7 @@ An experimental pass that legalizes shape-related ops to StableHLO ops.
1313Bringing shape and data computations together via an optional pass will
1414make it possible for the StableHLO ecosystem to potentially leverage the
1515compilation pipelines that use StableHLO operations to model dynamism.
16+
1617### ` -stablehlo-canonicalize-dynamism `
1718
1819_ Canonicalizes dynamic StableHLO ops into static ops._
@@ -30,6 +31,7 @@ these ops are actually constants.
3031
3132 %0 = stablehlo.broadcast_in_dim %cst, dims = [] : (tensor<f32>) -> tensor<16xf32>
3233```
34+
3335### ` -stablehlo-compatibility-expander `
3436
3537_ Compatibility expander for StableHLO operations._
@@ -68,9 +70,11 @@ func.func @tan_op_non_complex(%arg0: tensor<4xf64>) -> tensor<4xf64> {
6870```
6971
7072#### Options
73+
7174```
7275-target : The target version. Must be a version of the form #.#.#.
7376```
77+
7478### ` -stablehlo-complex-math-expander `
7579
7680_ Expander for StableHLO complex math operations._
@@ -98,11 +102,11 @@ func.func @sqrt_op_complex(%arg0: tensor<4xcomplex<f64>>) -> tensor<4xcomplex<f6
98102 return %2 : tensor<4xcomplex<f64>>
99103}
100104```
105+
101106### ` -stablehlo-convert-to-signless `
102107
103108_ Pass to transform the IR to be on signless integers._
104109
105-
106110### ` -stablehlo-legalize-composite-to-call `
107111
108112_ Replaces composite ops with a call to their decomposition._
@@ -133,9 +137,11 @@ stablehlo-opt --stablehlo-legalize-composite-to-call=except='foo.baz,foo.qux'
133137```
134138
135139#### Options
140+
136141```
137142-except : Names of composites that should not be replaced with calls.
138143```
144+
139145### ` -stablehlo-legalize-deprecated-ops `
140146
141147_ Legalize deprecated ops to well-supported ops._
@@ -146,9 +152,11 @@ removals in various compilation pipelines by legalizing them to their
146152long-term supported counterparts.
147153
148154#### Options
155+
149156```
150157-fail-on-unused : Fail on (mostly) unused ops that are deprecated without any fallback.
151158```
159+
152160### ` -stablehlo-legalize-qdq-to-quantized-op `
153161
154162_ Fuse (de-quantize, floating-point operation and quantize) pattern into StableHLO quantized operation_
@@ -177,6 +185,7 @@ func.func @add(%arg0: tensor<16x16x!quant.uniform<u8:f32, 3.400000e+01:16>>) ->
177185 return %2 : tensor<16x16x!quant.uniform<u8:f32, 3.400000e+01:16>>
178186}
179187```
188+
180189### ` -stablehlo-legalize-quant-to-math `
181190
182191_ Convert from StableHLO quantized ops to StableHLO primitive math ops._
@@ -219,6 +228,7 @@ func.func @add(%arg0: tensor<i8>, %arg1: tensor<i8>) -> tensor<i8> {
219228 return %13 : tensor<i8>
220229}
221230```
231+
222232### ` -stablehlo-legalize-quantized-op-to-qdq `
223233
224234_ Decompose quantized StableHLO operation to (de-quantize, floating-point operation and quantize) pattern._
@@ -244,11 +254,11 @@ func.func @add(%arg0: tensor<!quant.uniform<i8:f32, 1.000000e+00>>, %arg1: tenso
244254 return %3 : tensor<!quant.uniform<i8:f32, 3.000000e+00:2>>
245255}
246256```
257+
247258### ` -stablehlo-legalize-to-vhlo `
248259
249260_ Legalize StableHLO to VHLO._
250261
251-
252262### ` -stablehlo-refine-arguments `
253263
254264_ Refines the argument shapes of the main function._
@@ -277,9 +287,11 @@ passed to the pass create method. The refinement type list must specify the
277287type of every argument to the ` main ` method being refined.
278288
279289#### Options
290+
280291```
281292-types : The new types to be used for the main function's arguments, specified as an MLIR TypeRange 'tensor<1x2xf32>, ...'
282293```
294+
283295### ` -stablehlo-refine-shapes `
284296
285297_ Refines shapes across a StableHLO program._
@@ -325,18 +337,17 @@ Modules valid for shape refinement must have the following properties:
325337 returning constant values after refinement. These functions are inlined.
326338 * All calls to a single function resolve to the same argument shapes, and no
327339 recursive / co-recursive function calls are made.
340+
328341### ` -vhlo-legalize-to-stablehlo `
329342
330343_ Legalize VHLO to StableHLO._
331344
332-
333345### ` -vhlo-to-version `
334346
335347_ Convert between versions of VHLO._
336348
337-
338-
339349#### Options
350+
340351```
341352-target : The target version. Must be a version of the form #.#.# .
342353```
0 commit comments