[llvm-dev] cmpxchg on floats
Alex Zinenko via llvm-dev
llvm-dev at lists.llvm.org
Thu Aug 13 06:35:03 PDT 2020
when working on MLIR-to-LLVM-IR conversion, I noticed that it is possible
to programmatically construct a cmpxchg instruction operating on floats (or
actually any type since there is no assertion on pointer element type here
but LangRef specifies that only integers and pointers are accepted (
https://llvm.org/docs/LangRef.html#cmpxchg-instruction). Does somebody rely
on other types being accepted in cmpxchg or should we add an assertion for
the element type to match the LangRef?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev