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

This relands below commit with asan fix:

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>

Differential Revision: https://reviews.llvm.org/D127730
2022-06-14 18:36:03 +08:00
..
bindings Generalize "check-all" umbrella targets, use for check-clang-tools 2022-05-06 12:30:49 +02:00
cmake Revert "[cmake] Don't export LLVM_TOOLS_INSTALL_DIR anymore" 2022-06-10 19:26:12 +00:00
docs Reland "[analyzer] Deprecate the unused 'analyzer-opt-analyze-nested-blocks' cc1 flag" 2022-06-14 10:22:37 +02:00
examples
include Reland "[analyzer] Deprecate the unused 'analyzer-opt-analyze-nested-blocks' cc1 flag" 2022-06-14 10:22:37 +02:00
lib Reland "[CodeGen] Keep track info of lazy-emitted symbols in ModuleBuilder" 2022-06-14 18:36:03 +08:00
runtime Generalize "check-all" umbrella targets, use for check-clang-tools 2022-05-06 12:30:49 +02:00
test Reland "[CodeGen] Keep track info of lazy-emitted symbols in ModuleBuilder" 2022-06-14 18:36:03 +08:00
tools [MC] Fix likely uninitialized memory bug 2022-06-13 07:41:17 -04:00
unittests [clang-format] Handle more cases for RemoveBracesLLVM 2022-06-13 12:10:35 -07:00
utils [clang][tablegen] adds human documentation to WarningOption 2022-06-10 17:23:00 +00:00
www [NFC] Suggest Release mode in clang GettingStarted.html 2022-06-10 11:00:05 +05:30
.clang-format
.clang-tidy
.gitignore
CMakeLists.txt Revert "[cmake] Don't export LLVM_TOOLS_INSTALL_DIR anymore" 2022-06-10 19:26:12 +00:00
CODE_OWNERS.TXT
INSTALL.txt
LICENSE.TXT
ModuleInfo.txt
NOTES.txt
README.txt

//===----------------------------------------------------------------------===//
// C Language Family Front-end
//===----------------------------------------------------------------------===//

Welcome to Clang.  This is a compiler front-end for the C family of languages
(C, C++, Objective-C, and Objective-C++) which is built as part of the LLVM
compiler infrastructure project.

Unlike many other compiler frontends, Clang is useful for a number of things
beyond just compiling code: we intend for Clang to be host to a number of
different source-level tools.  One example of this is the Clang Static Analyzer.

If you're interested in more (including how to build Clang) it is best to read
the relevant web sites.  Here are some pointers:

Information on Clang:             http://clang.llvm.org/
Building and using Clang:         http://clang.llvm.org/get_started.html
Clang Static Analyzer:            http://clang-analyzer.llvm.org/
Information on the LLVM project:  http://llvm.org/

If you have questions or comments about Clang, a great place to discuss them is
on the Clang forums:
  https://discourse.llvm.org/c/clang/

If you find a bug in Clang, please file it in the LLVM bug tracker:
  http://llvm.org/bugs/