llvm-project/clang/test
Erik Pilkington eee944e7f9 [C++2a] Add __builtin_bit_cast, used to implement std::bit_cast
This commit adds a new builtin, __builtin_bit_cast(T, v), which performs a
bit_cast from a value v to a type T. This expression can be evaluated at
compile time under specific circumstances.

The compile time evaluation currently doesn't support bit-fields, but I'm
planning on fixing this in a follow up (some of the logic for figuring this out
is in CodeGen). I'm also planning follow-ups for supporting some more esoteric
types that the constexpr evaluator supports, as well as extending
__builtin_memcpy constexpr evaluation to use the same infrastructure.

rdar://44987528

Differential revision: https://reviews.llvm.org/D62825

llvm-svn: 364954
2019-07-02 18:28:13 +00:00
..
ARCMT
AST [clang][test][NFC] Explicitly specify clang ABI in AST Dumper test 2019-06-28 22:37:31 +00:00
ASTMerge [ASTImporter] Store import errors for Decls 2019-06-25 08:00:51 +00:00
Analysis [analyzer] exploded-graph-rewriter: Implement a dark color scheme. 2019-07-02 02:17:56 +00:00
CXX [Sema] Improved diagnostic for qualifiers in reference binding 2019-06-21 10:50:02 +00:00
ClangScanDeps [clang-scan-deps] Introduce the DependencyScanning library with the 2019-06-26 21:11:51 +00:00
CodeCompletion Re-land "[CodeComplete] Improve overload handling for C++ qualified and ref-qualified methods." 2019-06-10 15:17:52 +00:00
CodeGen [clang] Add DISuprogram and DIE for a func decl 2019-06-27 06:44:44 +00:00
CodeGenCUDA [HIP] Support attribute hip_pinned_shadow 2019-06-26 03:47:37 +00:00
CodeGenCXX [C++2a] Add __builtin_bit_cast, used to implement std::bit_cast 2019-07-02 18:28:13 +00:00
CodeGenCoroutines
CodeGenObjC Pattern match struct types in test case. 2019-06-27 21:16:19 +00:00
CodeGenObjCXX [clang][NewPM] Add -fno-experimental-new-pass-manager to tests 2019-06-21 16:03:06 +00:00
CodeGenOpenCL AMDGPU: Fix missing declaration for mbcnt builtins 2019-06-24 23:34:06 +00:00
CodeGenOpenCLCXX [Sema] Diagnose addr space mismatch while constructing objects 2019-06-20 16:23:28 +00:00
Coverage Re-check in clang support gun asm goto after fixing tests. 2019-06-03 15:57:25 +00:00
CoverageMapping Fix clang tests broken by r353547 that depend on InstrProf 2019-02-10 20:17:07 +00:00
Driver clang-cl: Make /d1reportAllClassLayout actually work and improve test 2019-07-02 10:22:11 +00:00
FixIt [c++20] P0780R2: Support pack-expansion of init-captures. 2019-05-21 20:10:50 +00:00
Format
Frontend [clang][NewPM] Fixing remaining -O0 tests that are broken under new PM 2019-06-19 17:41:30 +00:00
Headers [OpenCL] Restore ATOMIC_VAR_INIT 2019-06-24 10:06:40 +00:00
Import [ASTImporter] Copy Argument Passing Restrictions setting when importing a CXXRecordDecl definition 2019-04-26 18:51:28 +00:00
Index BitStream reader: propagate errors 2019-06-26 19:50:12 +00:00
Integration
InterfaceStubs [NFC] Fix for InterfaceStubs tests (adding REQUIRES: x86-registered-target). 2019-06-20 18:28:21 +00:00
Layout P0840R2: support for [[no_unique_address]] attribute 2019-06-20 20:44:45 +00:00
Lexer Add clang source minimizer that reduces source to directives 2019-06-03 22:59:17 +00:00
Misc [HIP] Support attribute hip_pinned_shadow 2019-06-26 03:47:37 +00:00
Modules [ODRHash] Fix null pointer dereference for ObjC selectors with empty slots. 2019-06-28 17:42:17 +00:00
OpenMP [OPENMP]Fix handling of lambda captures in target regions. 2019-07-01 17:46:52 +00:00
PCH For DR712: store on a DeclRefExpr whether it constitutes an odr-use. 2019-06-11 17:50:32 +00:00
Parser [ObjC] Improve error message for a malformed objc-type-name 2019-06-26 23:39:23 +00:00
Preprocessor Fix has_attribute.cpp test on Windows after r364102 2019-06-21 22:28:52 +00:00
Profile Revert "[clang][NewPM] Fix broken profile test" 2019-06-29 00:10:22 +00:00
Refactor
Rewriter
Sema [AST] Fixed extraneous warnings for binary conditional operator 2019-06-19 18:37:01 +00:00
SemaCUDA [HIP] Support attribute hip_pinned_shadow 2019-06-26 03:47:37 +00:00
SemaCXX [C++2a] Add __builtin_bit_cast, used to implement std::bit_cast 2019-07-02 18:28:13 +00:00
SemaObjC [ObjC] Improve error message for a malformed objc-type-name 2019-06-26 23:39:23 +00:00
SemaObjCXX If capturing a variable fails, add a capture anyway (and mark it 2019-05-28 23:09:44 +00:00
SemaOpenCL AMDGPU: Add DS GWS sema builtins 2019-06-20 21:33:57 +00:00
SemaOpenCLCXX [OpenCL] Improve diagnostic for placement new 2019-06-26 13:31:24 +00:00
SemaTemplate Add regression test for PR41576 (which is already fixed in trunk, 2019-06-25 18:42:53 +00:00
TableGen Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Templight
Tooling Recommit r363298 "[lit] Disable test on darwin when building shared libs." 2019-06-15 20:09:54 +00:00
Unit [lit] Set shlibpath_var on AIX 2019-03-29 23:33:04 +00:00
VFS
clang-rename
.clang-format
CMakeLists.txt Fix breakage introduced by D60974 2019-07-01 21:57:31 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg.py [clang][NewPM] Fixing remaining -O0 tests that are broken under new PM 2019-06-19 17:41:30 +00:00
lit.site.cfg.py.in [clang][NewPM] Fixing remaining -O0 tests that are broken under new PM 2019-06-19 17:41:30 +00:00
make_test_dirs.pl