diff options
author | Jim Grosbach <grosbach@apple.com> | 2012-08-02 18:46:42 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2012-08-02 18:46:42 +0000 |
commit | bc5b61c74d24a907cb1f425cc3c20e908d53c47a (patch) | |
tree | 42b599e655cf795d7ca23135ba2494a8914a221c /llvm/test/Object/nm-trivial-object.test | |
parent | 5d30630e226aa1525b529b40236f46e183ae6d0a (diff) | |
download | bcm5719-llvm-bc5b61c74d24a907cb1f425cc3c20e908d53c47a.tar.gz bcm5719-llvm-bc5b61c74d24a907cb1f425cc3c20e908d53c47a.zip |
TableGen: Allow use of #NAME# outside of 'def' names.
Previously, def NAME values were only populated, and references to NAME
resolved, when NAME was referenced in the 'def' entry of the multiclass
sub-entry. e.g.,
multiclass foo<...> {
def prefix_#NAME : ...
}
It's useful, however, to be able to reference NAME even when the default
def name is used. For example, when a multiclass has 'def : Pat<...>'
or 'def : InstAlias<...>' entries which refer to earlier instruction
definitions in the same multiclass. e.g.,
multiclass myMulti<RegisterClass rc> {
def _r : myI<(outs rc:$d), (ins rc:$r), "r $d, $r", []>;
def : InstAlias<\"wilma $r\", (!cast<Instruction>(NAME#\"_r\") rc:$r, rc:$r)>;
}
llvm-svn: 161198
Diffstat (limited to 'llvm/test/Object/nm-trivial-object.test')
0 files changed, 0 insertions, 0 deletions