[llvm] [SPIRV] Handle unknown intrinsics (PR #166284)

Alex Voicu via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 5 08:32:38 PST 2025


AlexVlx wrote:

> Right, thanks for the comment. So if I understand, if tomorrow I implement a proper lowering for `llvm.readcyclecounter()` in SPIR-V, this won't break you, just go through another path right?
>

Yes, this is correct.
 
> I think this should be OK, but could you add a comment in the test to explain that if someone implements proper lowering to `llvm.readcyclecounter`, then they should just replace the intrinsic with another unsupported one in the test as this isn't breaking somebody?

Will do, thank you.



https://github.com/llvm/llvm-project/pull/166284


More information about the llvm-commits mailing list