llvm-project/clang
Yitzhak Mandelbaum 692e03039d [clang][dataflow] Add cache of `ControlFlowContext`s for function decls.
This patch modifies context-sensitive analysis of functions to use a cache,
rather than recreate the `ControlFlowContext` from a function decl on each
encounter. However, this is just step 1 (of N) in adding support for a
configurable map of "modeled" function decls (see issue #56879). The map will go
from the actual function decl to the `ControlFlowContext` used to model it. Only
functions pre-configured in the map will be modeled in a context-sensitive way.

We start with a cache because it introduces the desired map, while retaining the
current behavior. Here, functions are mapped to their actual implementations
(when available).

Differential Revision: https://reviews.llvm.org/D131039
2022-08-03 15:17:49 +00:00
..
bindings Fixed a number of typos 2022-08-01 13:13:18 -04:00
cmake Fixed a number of typos 2022-08-01 13:13:18 -04:00
docs [clang][NFC] Try to fix the docs build 2022-08-03 10:52:02 +02:00
examples
include [clang][dataflow] Add cache of `ControlFlowContext`s for function decls. 2022-08-03 15:17:49 +00:00
lib [clang][dataflow] Add cache of `ControlFlowContext`s for function decls. 2022-08-03 15:17:49 +00:00
runtime Fix running orc-rt tests with LLVM_BUILD_EXTERNAL_COMPILER_RT (again). 2022-07-05 15:20:08 -07:00
test [NFCI] Refactor how KeywordStatus is calculated 2022-08-03 06:41:43 -07:00
tools CommandLine: add and use cl::SubCommand::get{All,TopLevel} 2022-08-02 23:49:16 +02:00
unittests [clang][dataflow] Make the type of the post visit callback consistent 2022-08-03 05:58:38 +00:00
utils [RISCV][Clang] Support policy functions for Vector Reduction 2022-08-02 17:27:56 +00:00
www Fixed a number of typos 2022-08-01 13:13:18 -04:00
.clang-format
.clang-tidy
.gitignore
CMakeLists.txt [clang-repl] Disable building when LLVM_STATIC_LINK_CXX_STDLIB is ON. 2022-07-31 05:42:57 +09:00
CODE_OWNERS.TXT
INSTALL.txt
LICENSE.TXT
ModuleInfo.txt
NOTES.txt
README.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/