This PR changes the return value of the Pulse utility method getPhaseValue() to return an mlir::Value instead of a double.
This is necessary when using parameters, as the phase offset can be specified as a parameter value in addition to a compile time constant. By returning the mlir::Value, the caller of phaseOffset has the ability to differentiate between the two scenarios and act accordingly.
This PR changes the return value of the Pulse utility method
getPhaseValue()
to return anmlir::Value
instead of adouble
. This is necessary when using parameters, as the phase offset can be specified as a parameter value in addition to a compile time constant. By returning themlir::Value
, the caller ofphaseOffset
has the ability to differentiate between the two scenarios and act accordingly.