Skip to content

Compile and link flows lose compile options #822

@alan-baker

Description

@alan-baker

When performing compile and link flows clspv is instructed to compile to IR. This skips the optimizations passes; however currently clspv needs to know several of those options to compile properly. For example, whether generic address space is used (and the requirement to inline). Linking programs are not expected to resupply those options. So those options are sort just lost in the process. This can lead to internal compiler errors in clspv. It probably doesn't make sense to try and optimize before generating IR, but there needs to be a way to include those options later. A worrisome case would be when different programs are linked that have different compile options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions