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 | 8ad435fa4809b5a4ad1043435cbafd5c9ddf2d93 (patch) | |
tree | 5f709278a848a9e2e7efa140dfa6aa73f7d467e3 /lib/Object/MachOObjectFile.cpp | |
parent | 05fa24c5749da265ee9f82eeead8ccdf2804f721 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170091 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions