llvm-project/clang/test
Jun Zhang cd64a427ef
Reland "[CodeGen] Keep track info of lazy-emitted symbols in ModuleBuilder"
This reverts commits:
d3ddc251ac
d90eecff5c

It turned out there're some options turned on that leaks the memory
intentionally, which fires the asan builds after the patch being
applied. The issue has been fixed in
7bc00ce5cd, so reland it.

Below is the original commit message:

The intent of this patch is to selectively carry some states over to
the Builder so we won't lose the information of the previous symbols.

This used to be several downstream patches of Cling, it aims to fix
errors in Clang Interpreter when trying to use inline functions.
Before this patch:

clang-repl> inline int foo() { return 42;}
clang-repl> int x = foo();

JIT session error: Symbols not found: [ _Z3foov ]
error: Failed to materialize symbols:
{ (main, { x, $.incr_module_1.__inits.0, __orc_init_func.incr_module_1 }) }

Co-authored-by: Axel Naumann <Axel.Naumann@cern.ch>
Signed-off-by: Jun Zhang <jun@junz.org>
2022-06-18 20:27:21 +08:00
..
APINotes
ARCMT [C11/C2x] Change the behavior of the implicit function declaration warning 2022-04-20 11:30:12 -04:00
AST [clang] Reject non-declaration C++11 attributes on declarations 2022-06-15 11:58:26 +02:00
ASTMerge
Analysis [Static Analyzer] Structured binding to data members 2022-06-17 19:50:10 +02:00
C/drs Rolling back tests for WG14 DR145 2022-06-15 15:37:14 -04:00
CXX [clang] Fix trivially copyable for copy constructor and copy assignment operator 2022-06-17 10:35:01 +03:00
ClangScanDeps [clang][deps] Sort submodules when calculating dependencies 2022-06-17 07:55:27 -07:00
CodeCompletion
CodeGen [Clang] Allow 'Complex float __attribute__((mode(HC)))' 2022-06-17 12:39:52 +01:00
CodeGenCUDA [HIP] fix long double size 2022-06-14 21:57:56 -04:00
CodeGenCUDASPIRV [Driver][test] Remove unused/obsoleted REQUIRES: clang-driver 2022-04-12 13:29:46 -07:00
CodeGenCXX Stop wrapping GCCAsmStmts inside StmtExprs to destruct temporaries 2022-06-17 17:28:00 -07:00
CodeGenCoroutines [Coroutines] Convert coroutine.presplit to enum attr 2022-06-14 14:23:46 +08:00
CodeGenHIP
CodeGenHLSL [HLSL] Enable vector types for hlsl. 2022-05-31 13:54:17 -07:00
CodeGenObjC Stop wrapping GCCAsmStmts inside StmtExprs to destruct temporaries 2022-06-17 17:28:00 -07:00
CodeGenObjCXX [DeadArgElim] Re-apply: Set unused arguments for internal functions 2022-05-12 08:46:16 -07:00
CodeGenOpenCL [AMDGPU] gfx11 new dot instruction codegen support 2022-06-16 14:19:34 -04:00
CodeGenOpenCLCXX
CodeGenSYCL
Coverage
CoverageMapping [clang][NFC] Cleanup some coroutine tests 2022-05-16 05:15:12 -07:00
Driver [clang][driver] Ensure we don't accumulate entries in -MJ files 2022-06-18 00:00:43 +02:00
ExtractAPI [clang][extract-api] Don't emit symbols prefixed with an underscore 2022-05-25 19:02:18 +01:00
FixIt Change the behavior of implicit int diagnostics 2022-05-04 08:35:47 -04:00
Format [clang-format] Allow empty .clang-format file 2022-04-12 21:20:54 -07:00
Frontend [clang] Reject non-declaration C++11 attributes on declarations 2022-06-15 11:58:26 +02:00
Headers [OpenCL] Reword unknown extension pragma diagnostic 2022-06-15 10:54:46 +01:00
Import [C11/C2x] Change the behavior of the implicit function declaration warning 2022-04-20 11:30:12 -04:00
Index Revert "[clang][test] mark tests added in ee8524087c as unsupported on AIX" 2022-05-30 09:35:26 -04:00
Integration
InterfaceStubs
Interpreter Reland "[CodeGen] Keep track info of lazy-emitted symbols in ModuleBuilder" 2022-06-18 20:27:21 +08:00
Layout
Lexer [Tooling/DependencyScanning & Preprocessor] Refactor dependency scanning to produce pre-lexed preprocessor directive tokens, instead of minimized sources 2022-05-26 12:50:06 -07:00
LibClang
Misc Revert "[analyzer] Deprecate `-analyzer-store region` flag" 2022-06-10 08:50:13 -04:00
Modules [Clang][Modules] Merge availability attributes on imported decls 2022-06-15 17:46:16 -07:00
OpenMP [OpenMP] Initial parsing and sema for 'parallel masked' construct 2022-06-16 18:01:15 -07:00
PCH Change the behavior of implicit int diagnostics 2022-05-04 08:35:47 -04:00
Parser PowerPC] Emit warning for incompatible vector types that are currently diagnosed with -fno-lax-vector-conversions 2022-06-16 20:28:34 -05:00
ParserHLSL [HLSL] Adjust access specifier behavior 2022-04-28 10:37:50 -05:00
ParserSYCL
Preprocessor [Lex] Fix `fixits` for typo-corrections of preprocessing directives within skipped blocks 2022-06-10 13:32:19 -07:00
Profile [NFC] Rename Instrinsic to Intrinsic 2022-04-25 18:13:23 +01:00
Refactor
Rewriter [C11/C2x] Change the behavior of the implicit function declaration warning 2022-04-20 11:30:12 -04:00
Sema [Clang] Allow 'Complex float __attribute__((mode(HC)))' 2022-06-17 12:39:52 +01:00
SemaCUDA Fix test; we now expect a pedantic warning 2022-05-11 06:52:21 -04:00
SemaCXX [clang][sema] Provide better diagnostic for missing template arguments 2022-06-15 16:06:06 +02:00
SemaHLSL Revert "wip" 2022-06-17 13:36:53 -05:00
SemaObjC [clang] Reject non-declaration C++11 attributes on declarations 2022-06-15 11:58:26 +02:00
SemaObjCXX Change the behavior of implicit int diagnostics 2022-05-04 08:35:47 -04:00
SemaOpenCL [clang] Reject non-declaration C++11 attributes on declarations 2022-06-15 11:58:26 +02:00
SemaOpenCLCXX
SemaSYCL
SemaTemplate Stop wrapping GCCAsmStmts inside StmtExprs to destruct temporaries 2022-06-17 17:28:00 -07:00
TableGen
Templight
Tooling Revert "[clang-diff] Fix assertion error when dealing with wide strings" 2022-06-07 14:58:10 -07:00
Unit [lit] Fix setup of sanitizer environment 2022-05-19 19:24:16 -07:00
VFS Reland "[dwarf] Emit a DIGlobalVariable for constant strings." 2022-05-18 13:56:45 -07:00
clang-rename
utils/update_cc_test_checks Revert "[utils] Avoid hardcoding metadata ids in update_cc_test_checks" 2022-05-10 14:04:19 -07:00
.clang-format
CMakeLists.txt [clang-fuzzer] Add a tiny tool to generate a fuzzing dictionary for clang 2022-05-09 18:25:29 +02:00
TestRunner.sh
lit.cfg.py cmake: configure clang lit to use hmaptool from source directly 2022-06-16 13:08:50 +02:00
lit.site.cfg.py.in [Driver] Change CLANG_ENABLE_OPAQUE_POINTERS_INTERNAL to affect driver default instead of cc1 default 2022-04-13 16:58:00 -07:00