summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2012-07-17 00:47:06 +0000
committerJim Grosbach <grosbach@apple.com>2012-07-17 00:47:06 +0000
commit514410ba073ef994d05004f7c298bd1df192d766 (patch)
tree6d2c929c698a5251383d34bc7f46901751a39ec6 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parentb7fa0d58fa31e21cb5cc38628dfc8e4178c69d87 (diff)
downloadbcm5719-llvm-514410ba073ef994d05004f7c298bd1df192d766.tar.gz
bcm5719-llvm-514410ba073ef994d05004f7c298bd1df192d766.zip
TableGen: Allow conditional instruction pattern in multiclass.
Define a 'null_frag' SDPatternOperator node, which if referenced in an instruction Pattern, results in the pattern being collapsed to be as-if '[]' had been specified instead. This allows supporting a multiclass definition where some instaniations have ISel patterns associated and others do not. For example, multiclass myMulti<RegisterClass rc, SDPatternOperator OpNode = null_frag> { def _x : myI<(outs rc:), (ins rc:), []>; def _r : myI<(outs rc:), (ins rc:), [(set rc:, (OpNode rc:))]>; } defm foo : myMulti<GRa, not>; defm bar : myMulti<GRb>; llvm-svn: 160333
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud