| commit | 858649ad0e2bd4c24d4e577094707a53acfe6ade | [log] [tgz] |
|---|---|---|
| author | Younan Zhang <zyn7109@gmail.com> | Fri May 16 16:21:24 2025 +0800 |
| committer | GitHub <noreply@github.com> | Fri May 16 16:21:24 2025 +0800 |
| tree | a011c931c6da3a6d84a2cd65602ede250cc46cbb | |
| parent | fd85ffb4c43be80c179145a382d78a7c9ca3c1b7 [diff] |
[Clang] Profile singly-resolved UnresolvedLookupExpr with the declaration (#140029) For a dependent variable template specialization, we don't build a dependent Decl node or a DeclRefExpr to represent it. Instead, we preserve the UnresolvedLookupExpr until instantiation. However, this approach isn't ideal for constraint normalization. We consider the qualifier during profiling, but since that's based on the written code, it can introduce confusing differences, even when the expressions resolve to the same declaration. This change ensures that, if possible, we profile the resolved declaration instead of its qualifier. For expressions that resolve to more than one declarations, we still profile its qualifier, as otherwise it would make us depend on the order of lookup results. Fixes https://github.com/llvm/llvm-project/issues/139476
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.