diff options
author | Florian Hahn <flo@fhahn.com> | 2021-03-09 12:22:20 +0000 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2021-03-09 13:08:52 +0000 |
commit | fc8d3766d721ebc075e16814e48adf48034ea858 (patch) | |
tree | a43f1b944f14dcb9204bf179e01f5ed0445749aa /lldb/source/Plugins/ScriptInterpreter/Python | |
parent | 265bc5af7b3be612e170c66521a120b754128818 (diff) | |
download | llvm-fc8d3766d721ebc075e16814e48adf48034ea858.zip llvm-fc8d3766d721ebc075e16814e48adf48034ea858.tar.gz llvm-fc8d3766d721ebc075e16814e48adf48034ea858.tar.bz2 |
[ExtVectorType] Support conditional select operator for C++.
This patch implements the conditional select operator for
ext_vector_types in C++. It does so by using the same semantics as for
C.
D71463 added support for the conditional select operator for VectorType
in C++. Unfortunately the semantics between ext_vector_type in C are
different to VectorType in C++. Select for ext_vector_type is based on
the MSB of the condition vector, whereas for VectorType it is `!= 0`.
This unfortunately means that the behavior is inconsistent between
ExtVectorType and VectorType, but I think using the C semantics for
ExtVectorType in C++ as well should be less surprising for users.
Reviewed By: erichkeane, aaron.ballman
Differential Revision: https://reviews.llvm.org/D98055
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions