1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 20:43:44 +02:00
llvm-mirror/test
Zachary Turner 6861a55d08 [MS Demangler] Properly handle function parameter back-refs.
Properly demangle function parameter back-references.

Previously we treated lists of function parameters and template
parameters the same. There are some important differences with regards
to back-references, and some less important differences regarding which
characters can appear before or after the name.

The important differences are that with a given type T, all instances of
a function parameter list share the same global back-ref table.
Specifically, if X and Y are function pointers, then there are 3
entities in the declaration X func(Y) which all affect and are affected
by the master parameter back-ref table:
  1) The parameter list of X's function type
  2) the parameter list of func itself
  3) The parameter list of Y's function type.

The previous code would create a back-reference table that was local to
a single parameter list, so it would not be shared across parameter
lists.

This was discovered when porting ms-back-references.test from clang's
mangling tests. All of these tests should now pass with the new changes.

In doing so, I split the function for parsing template and function
parameters into two separate functions. This makes the template
parameter list parsing code in particular very small and easy to
understand now.

Differential Revision: https://reviews.llvm.org/D49875

llvm-svn: 338075
2018-07-26 22:13:39 +00:00
..
Analysis [SCEV] Don't expand Wrap predicate using inttoptr in ni addrspaces 2018-07-26 21:55:06 +00:00
Assembler
Bindings
Bitcode
BugPoint
CodeGen [AMDGPU] Fix VGPR spills where offset doesn't fit in 12 bits 2018-07-26 19:47:51 +00:00
DebugInfo [DebugInfo] LowerDbgDeclare: Add derefs when handling CallInst users 2018-07-26 20:56:53 +00:00
Demangle [MS Demangler] Properly handle function parameter back-refs. 2018-07-26 22:13:39 +00:00
Examples
ExecutionEngine Re-land r335297 "[X86] Implement more of x86-64 large and medium PIC code models" 2018-07-23 21:14:35 +00:00
Feature
FileCheck [FileCheck] Provide an option for FileCheck to dump original input to stderr on failure 2018-07-20 20:21:57 +00:00
Instrumentation Use SCEV to avoid inserting some bounds checks. 2018-07-24 15:21:54 +00:00
Integer
JitListener
Linker
LTO [LTO] Handle __imp_ (dllimport) symbols consistently with lld 2018-07-23 22:33:57 +00:00
MC [MC] Add support for the .rva assembler directive for COFF targets 2018-07-26 20:11:26 +00:00
Object
ObjectYAML
Other Revert r337904: [IPSCCP] Use PredicateInfo to propagate facts from cmp instructions. 2018-07-25 19:44:19 +00:00
SafepointIRVerifier
SymbolRewriter
TableGen
ThinLTO/X86
tools Handle the lack of a symbol table correctly. 2018-07-26 20:05:31 +00:00
Transforms [DebugInfo] LowerDbgDeclare: Add derefs when handling CallInst users 2018-07-26 20:56:53 +00:00
Unit
Verifier
YAMLParser
.clang-format
CMakeLists.txt Make check-llvm depend on llvm-undname 2018-07-20 18:42:19 +00:00
lit.cfg.py And add a lit substitution for llvm-undname, as the comment says to 2018-07-20 18:45:01 +00:00
lit.site.cfg.py.in
TestRunner.sh