diff options
author | Chris Lattner <sabre@nondot.org> | 2004-11-13 19:32:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-11-13 19:32:45 +0000 |
commit | f17ffcce18ad8e3da3b1e7a3a8b1ac19ac301c80 (patch) | |
tree | 044366b86358e08b4417117e4ffed3104d875456 /include/llvm/Support | |
parent | 65aedc1a4edc146c1368a0f4e8d67ff6026a38e5 (diff) | |
download | external_llvm-f17ffcce18ad8e3da3b1e7a3a8b1ac19ac301c80.zip external_llvm-f17ffcce18ad8e3da3b1e7a3a8b1ac19ac301c80.tar.gz external_llvm-f17ffcce18ad8e3da3b1e7a3a8b1ac19ac301c80.tar.bz2 |
Add support for shifts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17702 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support')
-rw-r--r-- | include/llvm/Support/PatternMatch.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/llvm/Support/PatternMatch.h b/include/llvm/Support/PatternMatch.h index 5a1df2a..ae1d30c 100644 --- a/include/llvm/Support/PatternMatch.h +++ b/include/llvm/Support/PatternMatch.h @@ -138,6 +138,18 @@ inline BinaryOp_match<LHS, RHS, Instruction::Xor> m_Xor(const LHS &L, return BinaryOp_match<LHS, RHS, Instruction::Xor>(L, R); } +template<typename LHS, typename RHS> +inline BinaryOp_match<LHS, RHS, Instruction::Shl> m_Shl(const LHS &L, + const RHS &R) { + return BinaryOp_match<LHS, RHS, Instruction::Shl>(L, R); +} + +template<typename LHS, typename RHS> +inline BinaryOp_match<LHS, RHS, Instruction::Shr> m_Shr(const LHS &L, + const RHS &R) { + return BinaryOp_match<LHS, RHS, Instruction::Shr>(L, R); +} + //===----------------------------------------------------------------------===// // Matchers for binary classes // |