llvm-project/clang/test
Jun Zhang a4f84f1b2e
[CodeGen] Track DeferredDecls that have been emitted
If we run into a first usage or definition of a mangled name, and
there's a DeferredDecl that associated with it, we should remember it we
need to emit it later on.

Without this patch, clang-repl hits a JIT symbol not found error:
clang-repl> extern "C" int printf(const char *, ...);
clang-repl> auto l1 = []() { printf("ONE\n"); return 42; };
clang-repl> auto l2 = []() { printf("TWO\n"); return 17; };
clang-repl> auto r1 = l1();
ONE
clang-repl> auto r2 = l2();
TWO
clang-repl> auto r3 = l2();
JIT session error: Symbols not found: [ l2 ]
error: Failed to materialize symbols: { (main,
{ r3, orc_init_func.incr_module_5, $.incr_module_5.inits.0 }) }

Signed-off-by: Jun Zhang <jun@junz.org>

Differential Revision: https://reviews.llvm.org/D130831
2022-08-27 22:32:47 +08:00
..
APINotes
ARCMT
AST Revert "Clang: fix AST representation of expanded template arguments." 2022-08-26 13:09:55 +02:00
ASTMerge
Analysis [analyzer] Fixing a bug raising false positives of stack block object 2022-08-26 12:19:32 -07:00
C
CXX [Clang] follow-up D128745, use ClangABICompat15 instead of ClangABICompat14 2022-08-23 10:45:35 -07:00
ClangScanDeps [clang][modules] Consider M affecting after mapping M.Private to M_Private 2022-08-24 14:36:06 -07:00
CodeCompletion
CodeGen Revert "[Pipelines] Introduce DAE after ArgumentPromotion" 2022-08-26 13:43:09 +03:00
CodeGenCUDA
CodeGenCUDASPIRV
CodeGenCXX [clang] Do not instrument the rtti_proxies under hwasan 2022-08-26 18:22:17 +00:00
CodeGenCoroutines [Coroutines] Store the index for final suspend point if there is unwind coro end 2022-08-26 14:05:46 +08:00
CodeGenHIP
CodeGenHLSL [HLSL] Move DXIL validation version out of ModuleFlags 2022-08-26 09:20:45 -07:00
CodeGenObjC
CodeGenObjCXX
CodeGenOpenCL
CodeGenOpenCLCXX
CodeGenSYCL
Coverage
CoverageMapping [Clang] Fix crash in coverage of if consteval. 2022-08-26 17:46:53 +02:00
Driver [Clang][Driver] Temporarily disable failing DriverKit test 2022-08-26 18:32:51 -07:00
ExtractAPI
FixIt
Format
Frontend [clang] Enable output of SARIF diagnostics 2022-08-26 18:49:29 +00:00
Headers
Import
Index
Integration
InterfaceStubs
Interpreter [CodeGen] Track DeferredDecls that have been emitted 2022-08-27 22:32:47 +08:00
Layout
Lexer Diagnosing the Future Keywords 2022-08-26 09:20:05 -04:00
LibClang
Misc [clang] Add support for __attribute__((guard(nocf))) 2022-08-23 23:39:38 +03:00
Modules [clang][modules] Consider M affecting after mapping M.Private to M_Private 2022-08-24 14:36:06 -07:00
OpenMP [OpenMP] Add option to assert no nested OpenMP parallelism on the GPU 2022-08-23 14:09:51 -05:00
PCH
Parser Diagnosing the Future Keywords 2022-08-26 09:20:05 -04:00
ParserHLSL
ParserSYCL
Preprocessor [clang] Add __is_target_variant_{os,environment} builtins 2022-08-26 18:20:06 -04:00
Profile
Refactor
Rewriter
Sema [clang] Add support for __attribute__((guard(nocf))) 2022-08-23 23:39:38 +03:00
SemaCUDA
SemaCXX [Clang] Fix assert in Sema::LookupTemplateName so that it does not attempt an unconditional cast to TagType 2022-08-26 09:40:43 -07:00
SemaHLSL [HLSL] Entry functions require param annotation 2022-08-24 14:35:11 -05:00
SemaObjC
SemaObjCXX
SemaOpenCL
SemaOpenCLCXX
SemaSYCL
SemaTemplate
TableGen
Templight
Tooling
Unit
VFS
clang-rename
utils/update_cc_test_checks
.clang-format
CMakeLists.txt
TestRunner.sh
lit.cfg.py
lit.site.cfg.py.in