Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Conversation

@ScottCarda-MS
Copy link
Contributor

Prevent Intrinsic and certain Built In callables from being monomorphized or removed from the tree.

public readonly ImmutableHashSet<QsQualifiedName> ExemptCallableSet;

public TransformationState(ImmutableDictionary<NonNullable<string>, IEnumerable<QsCallable>> namespaceCallables)
public TransformationState(ILookup<NonNullable<string>, QsCallable> namespaceCallables, ImmutableHashSet<QsQualifiedName> exemptCallableSet)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the use of the lookup!

namespace Microsoft.Quantum.QsCompiler.Transformations.Monomorphization.Validation
{
public class ValidateMonomorphization : SyntaxTreeTransformation<ValidateMonomorphization.TransformationState>
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the validation is also complete! Great!

Copy link
Contributor

@bettinaheim bettinaheim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this!

@ScottCarda-MS ScottCarda-MS merged commit 402d3a3 into beheim/rewriteSteps Apr 29, 2020
@ScottCarda-MS ScottCarda-MS deleted the sccarda/IntrinsicFixMonomorphization branch August 13, 2020 22:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants