Skip to content

spirv-val reports undefined function ID when using OpTaskSequenceCreateINTEL #3121

Open
@aadeshps-mcw

Description

@aadeshps-mcw

In the test file of SPV_INTEL_task_sequence, the following test files

task_sequence_zero_capacity_literals.ll
task_sequence.ll 

we observe the following validation error when running spirv-val:

error: line 83: ID '24[%_Z4multii]' has not been defined
  %call_i1 = OpTaskSequenceCreateINTEL %17 %_Z4multii 10 4294967295 17 1

The SPIR-V emitted by the backend places the instruction:
%call_i1 = OpTaskSequenceCreateINTEL %17 %_Z4multii 10 4294967295 17 1
before the definition of the %_Z4multii function. Since SPIR-V validation requires that all IDs used must be declared before use (especially function IDs), this leads to a validation error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions