Skip to content

Convert test functions to IR #422

@nanavati

Description

@nanavati

Currently we skip over test functions when building the IR for a module.

See:

// We don't convert the bodies of test constructs of IR.

This creates significant complications:

  1. Missing some parametrics in IR conversion
  2. Hiding inconsistencies in IR handling (see Consistently support compound equality in the IR #421)
  3. Dropping some assertions and fail! calls before the JIT.

Especially now that we have implicit assertion plumbing as part of IR conversion we should convert test functions to resolve these issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dslxDSLX (domain specific language) implementation / front-endlong-term-enhancementIssues that are sensible enhancements but XLS devs expect may not be addressed in the near-termtestingTest-infrastructure related

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions