llvm-capstone/clang/test
Erich Keane 6b104ea4b4 Implement Lambda Conversion Operators for All CCs for MSVC.
As described here:
https://devblogs.microsoft.com/oldnewthing/20150220-00/?p=44623

In order to allow Lambdas to be used with traditional Win32 APIs, they
emit a conversion function for (what Raymond Chen claims is all) a
number of the calling conventions.  Through experimentation, we
discovered that the list isn't quite 'all'.

This patch implements this by taking the list of conversions that MSVC
emits (across 'all' architectures, I don't see any CCs on ARM), then
emits them if they are supported by the current target.

However, we also add 3 other options (which may be duplicates):
free-function, member-function, and operator() calling conventions.  We
do this because we have an extension where we generate both free and
member for these cases so th at people specifying a calling convention
on the lambda will have the expected behavior when specifying one of
those two.

MSVC doesn't seem to permit specifying calling-convention on lambdas,
but we do, so we need to make sure those are emitted as well. We do this
so that clang-only conventions are supported if the user specifies them.

Differential Revision: https://reviews.llvm.org/D90634
2020-11-05 07:25:44 -08:00
..
Analysis [scan-build] Fix clang++ pathname again 2020-11-03 08:17:17 +01:00
APINotes/Inputs/Frameworks/SomeKit.framework/Headers
ARCMT
AST [test] Fix unused check prefixes in test/AST 2020-10-31 21:46:45 -07:00
ASTMerge
clang-rename
ClangScanDeps
CodeCompletion
CodeGen [test] Add 'REQUIRES: bpf-registered-target' to bpf-O0.c 2020-11-04 23:19:14 -08:00
CodeGenCoroutines
CodeGenCUDA [CUDA] Allow local static variables with target attributes. 2020-11-03 10:30:38 -08:00
CodeGenCXX Implement Lambda Conversion Operators for All CCs for MSVC. 2020-11-05 07:25:44 -08:00
CodeGenHIP
CodeGenObjC [darwin] add support for __isPlatformVersionAtLeast check for if (@available) 2020-11-02 16:28:09 -08:00
CodeGenObjCXX
CodeGenOpenCL [AMDGPU] Add gfx1033 target 2020-11-03 16:27:48 +00:00
CodeGenOpenCLCXX [OpenCL] Support vec_step in C++ for OpenCL mode 2020-11-05 12:02:59 +00:00
CodeGenSYCL
Coverage
CoverageMapping
CXX PR47861: Expand dangling reference warning to look through copy 2020-10-30 10:19:50 -07:00
Driver [AMDGPU] Add gfx1033 target 2020-11-03 16:27:48 +00:00
FixIt
Format
Frontend [test] Clean up test/Frontend/gnu-mcount.c and fix unused check prefixes 2020-10-31 21:33:46 -07:00
Headers
Import
Index
Integration
InterfaceStubs
Layout
Lexer
Misc [NFC][clang][AVR] Add more devices 2020-10-29 11:49:21 +08:00
Modules
OpenMP [clang] Add mustprogress and llvm.loop.mustprogress attribute deduction 2020-11-04 22:03:14 -05:00
Parser Add option 'exceptions' to pragma clang fp 2020-10-31 17:36:12 +07:00
PCH [clang] add fexperimental-strict-floating-point to test cases that fail on arm and aarch not sure this will work due to commit rG13bfd89c4962 2020-10-30 07:30:06 -07:00
Preprocessor [X86] Support Intel avxvnni 2020-10-31 12:39:51 +08:00
Profile [clang] Add mustprogress and llvm.loop.mustprogress attribute deduction 2020-11-04 22:03:14 -05:00
Refactor
Rewriter
Sema [PowerPC] Add Sema checks for MMA types 2020-11-04 17:01:47 -06:00
SemaCUDA [CUDA] Allow local static variables with target attributes. 2020-11-03 10:30:38 -08:00
SemaCXX [PowerPC] Add Sema checks for MMA types 2020-11-04 17:01:47 -06:00
SemaObjC
SemaObjCXX
SemaOpenCL
SemaOpenCLCXX
SemaSYCL
SemaTemplate When re-checking an already-substituted template argument, don't lose 2020-11-03 14:09:54 -08:00
TableGen
Templight
Tooling
Unit
utils/update_cc_test_checks [clang] Add mustprogress and llvm.loop.mustprogress attribute deduction 2020-11-04 22:03:14 -05:00
VFS
.clang-format
CMakeLists.txt
cxx-sections.data
lit.cfg.py
lit.site.cfg.py.in
make_test_dirs.pl
TestRunner.sh