bloqade.stim.passes.hint_const_in_loops.HintConstInLoops
← Module overview
class
method
source
classHintConstInLoops¶source
bloqade.stim.passes.hint_const_in_loops.HintConstInLoops
Bases: Pass
Pass that sets const hints inside preserved scf.For loop bodies.
class HintConstInLoopsComposes PropagateInitializerHints (for For-level hint/type propagation) with per-statement hinting rules (HintConstant, HintTupleNew, etc.). Also installs the early-terminating constprop override for scf.For.
methodunsafe_run¶source
bloqade.stim.passes.hint_const_in_loops.HintConstInLoops.unsafe_run
def unsafe_run(mt: ir.Method) -> RewriteResultParameters
| Name | Type | Description |
|---|---|---|
mt | ir.Method |
Returns
RewriteResult