Go to file
Hal Finkel a8c1f46767 [TableGen] Correctly generate implicit anonymous prototype defs in multiclasses
Even within a multiclass, we had been generating concrete implicit anonymous
defs when parsing values (generally in value lists). This behavior was
incorrect, and led to errors when multiclass parameters were used in the
parameter list of the implicit anonymous def.

If we had some multiclass:

multiclass mc<string n> {

 ... : SomeClass<SomeOtherClass<n> >

The capture of the multiclass parameter 'n' would not work correctly, and
depending on how the implicit SomeOtherClass was used, either TableGen would
ignore something it shouldn't, or would crash.

To fix this problem, when inside a multiclass, we generate prototype anonymous
defs for implicit anonymous defs (just as we do for explicit anonymous defs).
Within the multiclass, the current record prototype is populated with a node
that is essentially: !cast<SomeOtherClass>(!strconcat(NAME, anon_value_name)).
This is then resolved to the correct concrete anonymous def, in the usual way,
when NAME is resolved during multiclass instantiation.

llvm-svn: 198348
2014-01-02 20:47:09 +00:00
clang Objective-C ARC++: Prefer references to __strong/__weak over __unsafe_unretained. 2014-01-02 19:42:02 +00:00
clang-tools-extra Update the copyright credits -- Happy new year 2014! 2014-01-01 08:27:31 +00:00
compiler-rt Update the copyright credits -- Happy new year 2014! 2014-01-01 08:27:31 +00:00
debuginfo-tests don't use CHECK-NEXT because it may be on the same line. 2013-09-18 23:01:54 +00:00
libclc Update the copyright credits -- Happy new year 2014! 2014-01-01 08:27:31 +00:00
libcxx Update the copyright credits -- Happy new year 2014! 2014-01-01 08:27:31 +00:00
libcxxabi Update the copyright credits -- Happy new year 2014! 2014-01-01 08:27:31 +00:00
lld No else after return. 2014-01-02 19:30:56 +00:00
lldb Fix a couple of memory leaks. 2013-12-29 20:18:15 +00:00
llvm [TableGen] Correctly generate implicit anonymous prototype defs in multiclasses 2014-01-02 20:47:09 +00:00
openmp For your Christmas hacking pleasure. 2013-12-23 17:28:57 +00:00
polly Update the copyright credits -- Happy new year 2014! 2014-01-01 08:27:31 +00:00