diff options
author | Michael Ilseman <milseman@apple.com> | 2012-12-13 03:13:36 +0000 |
---|---|---|
committer | Michael Ilseman <milseman@apple.com> | 2012-12-13 03:13:36 +0000 |
commit | 536cc32ba051fbadeb0f6929b0270427330e4152 (patch) | |
tree | e3cfe19955fb92f1ca1f9084ec394c280eda678c /clang/lib/Driver/Tools.cpp | |
parent | cf6d6317cc59d8d6cac9b600a265d06d5a513885 (diff) | |
download | bcm5719-llvm-536cc32ba051fbadeb0f6929b0270427330e4152.tar.gz bcm5719-llvm-536cc32ba051fbadeb0f6929b0270427330e4152.zip |
Pattern matching code for intrinsics.
Provides m_Argument that allows matching against a CallSite's specified argument. Provides m_Intrinsic pattern that can be templatized over the intrinsic id and bind/match arguments similarly to other pattern matchers. Implementations provided for 0 to 4 arguments, though it's very simple to extend for more. Also provides example template specialization for bswap (m_BSwap) and example of code cleanup for its use.
llvm-svn: 170091
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
0 files changed, 0 insertions, 0 deletions