diff options
author | Nikolas Klauser <nikolasklauser@berlin.de> | 2025-09-01 21:49:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-01 21:49:09 +0200 |
commit | b1a8089f1cf67a6038a6b6d958eff1bd2feb4f8d (patch) | |
tree | d38967a7e5744582234a450a6363cba5636d4fab /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp | |
parent | bf4486eb29c3009ddf68968b021c6fd98e3c2d52 (diff) | |
download | llvm-b1a8089f1cf67a6038a6b6d958eff1bd2feb4f8d.zip llvm-b1a8089f1cf67a6038a6b6d958eff1bd2feb4f8d.tar.gz llvm-b1a8089f1cf67a6038a6b6d958eff1bd2feb4f8d.tar.bz2 |
[Clang] Introduce __builtin_meow_synthesises_from_spaceship (#155612)
This set of builtins makes it possible to detect whether a comparison
operation is synthesised from a spaceship operator. This makes it
possible to avoid calling the comparison multiple times if you care
about the three-way relation. This is especially interesting for the
associative containers from the STL, since a lot of functions call the
comparator twice to establish the relation. With this builtin these
functions can call the comparator just once and use the result of the
three way comparison directly.
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions