llvm-project/clang/lib
Erich Keane a94f68a2bd Implement some constexpr vector unary operators, fix boolean-ops
As requested in the review, this implements unary +,-,~, and ! for
vector types.

All of our boolean operations on vector types should be using something
like vcmpeqd, which results in a mask of '-1' for the 'truth' type. We are
currently instead using '1', which results in some incorrect
calculations when used later (note that it does NOT result in a boolean
vector, as that is not really a thing).

This patch corrects that 1 to be a -1, and updates the affected tests.

Differential Revision: https://reviews.llvm.org/D115670
2021-12-17 06:08:36 -08:00
..
APINotes [clang][APINotes] Fix -Wunused-function warning (NFC) 2021-04-01 09:52:43 +08:00
ARCMigrate Revert "Revert "Use VersionTuple for parsing versions in Triple, fixing issues that caused the original change to be reverted. This makes it possible to distinguish between "16" and "16.0" after parsing, which previously was not possible."" 2021-12-07 23:15:21 +00:00
AST Implement some constexpr vector unary operators, fix boolean-ops 2021-12-17 06:08:36 -08:00
ASTMatchers [NFC][clang] Return underlying strings directly instead of OS.str() 2021-12-09 16:05:46 -08:00
Analysis Revert "Revert "[clang][dataflow] Add framework for testing analyses."" 2021-12-11 23:16:59 +00:00
Basic Define __STDC_NO_THREADS__ when targeting windows-msvc (PR48704) 2021-12-16 16:30:06 +01:00
CodeGen [CodeGen] Avoid more pointer element type accesses 2021-12-17 12:11:50 +01:00
CrossTU Revert "[analyzer][ctu] Fix wrong 'multiple definitions' errors caused by space characters in lookup names when parsing the ctu index file" 2021-12-16 20:46:51 -05:00
DirectoryWatcher [clang] [DirectoryWatcher] Remove leading \\?\ from GetFinalPathNameByHandleW 2021-11-08 22:21:30 +02:00
Driver [Driver] Default to contemporary FreeBSD profiling behaviour 2021-12-15 09:05:35 -05:00
Edit [clang] Use llvm::is_contained (NFC) 2021-10-13 20:41:55 -07:00
Format [clang-format] add support for branch attribute macros 2021-12-16 20:36:25 +00:00
Frontend [NFC][clang] Return underlying strings directly instead of OS.str() 2021-12-09 16:05:46 -08:00
FrontendTool [clang] Add plugin ActionType to run command line plugin before main action 2021-10-20 08:58:20 -07:00
Headers [OpenCL] Add pure attribute to vload builtins 2021-12-16 18:30:58 +00:00
Index [clang] Visit enum base specifiers in libIndex 2021-10-25 13:16:14 +02:00
IndexSerialization [index-while-building] Fix build with -DBUILD_SHARED_LIBS=True 2020-08-20 15:12:56 +01:00
Interpreter [clang-repl] Allow Interpreter::getSymbolAddress to take a mangled name. 2021-11-10 12:52:05 +00:00
Lex [C++20] [Module] Support extern C/C++ semantics 2021-12-08 13:29:16 +08:00
Parse Fix crash on invalid code involving late parsed inline methods 2021-12-16 07:58:51 -05:00
Rewrite [NFC][clang] Return underlying strings directly instead of OS.str() 2021-12-09 16:05:46 -08:00
Sema Implement some constexpr vector unary operators, fix boolean-ops 2021-12-17 06:08:36 -08:00
Serialization [C++20] [Modules] [Concepts] Recognize same concepts more precisely in Serialization 2021-12-08 15:00:04 +08:00
StaticAnalyzer [analyzer][NFC] Change return value of StoreManager::attemptDownCast function from SVal to Optional<SVal> 2021-12-17 13:03:47 +02:00
Testing
Tooling [clang][deps] NFC: Unify ErrorOr patterns 2021-12-17 14:00:20 +01:00
CMakeLists.txt [clang-repl] Recommit "Land initial infrastructure for incremental parsing" 2021-05-13 06:30:29 +00:00