Skip to content

[SPIR-V] error: backend data layout does not match expected target description #88936

Closed
@Keenuts

Description

@Keenuts

A recent PR (#88455) fixed the address space for the SPIR-V targets.
As a result, we get an error when using clang (at least tried with the DXC driver).
Not sure why yet.

[numthreads(1, 1, 1)]
void main() {}
[user@lvm-project]$ ./build/bin/clang --driver-mode=dxc -T cs_6_0 -spirv -fspv-target-env=vulkan1.3 repro.hlsl
	OpCapability Shader
[...]
	OpFunctionEnd
                                        ; -- End function
error: backend data layout 'e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-G1' does not match expected target description 'e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions