Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[spirv-val] OpConstantNull refused for OpExtInst DebugTypeBasic #5897

Open
Keenuts opened this issue Nov 28, 2024 · 0 comments
Open

[spirv-val] OpConstantNull refused for OpExtInst DebugTypeBasic #5897

Keenuts opened this issue Nov 28, 2024 · 0 comments

Comments

@Keenuts
Copy link
Contributor

Keenuts commented Nov 28, 2024

Hello!

Not sure if this is a validation issue, or a spec issue, or a desirable behavior, but if I do:

%flag = OpConstantNull %uint
        OpExtInst %void %-- DebugTypeBasic %-- %-- %-- %flag

I get a validation error because %flag is not an OpConstant.
This matches the spec which only mentions OpConstant.

Question is shall OpConstantNull %uint be considered to be the same as OpConstant %uint 0?
Or is that difference there by design?

(related to #5846 and llvm/llvm-project#118011)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant