Monomorphize Class

Definition

This transformation replaces callables with type parameters with concrete instances of the same callables. The concrete values for the type parameters are found from uses of the callables. This transformation also removes all callables that are not used directly or indirectly from any of the marked entry point. Monomorphizing intrinsic callables is optional and intrinsics can be prevented from being monomorphized if the monomorphizeIntrinsics parameter is set to false. There are also some built-in callables that are also exempt from being removed from non-use, as they are needed for later rewrite steps.

public static class Monomorphize
type Monomorphize = class
Public Class Monomorphize
Inheritance
Monomorphize

Methods

Apply(QsCompilation, Boolean)

Performs Monomorphization on the given compilation. If the monomorphizeIntrinsics parameter is set to false, then intrinsics will not be monomorphized.

Applies to