Displaying 2 results from an estimated 2 matches for "l1501".
Did you mean:
1501
2020 Aug 13
2
cmpxchg on floats
...rsion, 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
https://github.com/llvm/llvm-project/blob/9c2e708f0dc547d386ea528450a33ef4bd2a750b/llvm/lib/IR/Instructions.cpp#L1501),
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?
--
Alex
-------------- next part ---...
2020 Aug 14
3
cmpxchg on floats
...rsion, 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 https://github.com/llvm/llvm-project/blob/9c2e708f0dc547d386ea528450a33ef4bd2a750b/llvm/lib/IR/Instructions.cpp#L1501), 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?
>
> --
> Alex
> ___________...