mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
PatternMatch; Add m_ZExtOrSExt matcher
llvm-svn: 297432
This commit is contained in:
parent
85c7b63250
commit
35ef8307dc
@ -827,6 +827,13 @@ inline CastClass_match<OpTy, Instruction::ZExt> m_ZExt(const OpTy &Op) {
|
||||
return CastClass_match<OpTy, Instruction::ZExt>(Op);
|
||||
}
|
||||
|
||||
template <typename OpTy>
|
||||
inline match_combine_or<CastClass_match<OpTy, Instruction::ZExt>,
|
||||
CastClass_match<OpTy, Instruction::SExt>>
|
||||
m_ZExtOrSExt(const OpTy &Op) {
|
||||
return m_CombineOr(m_ZExt(Op), m_SExt(Op));
|
||||
}
|
||||
|
||||
/// \brief Matches UIToFP.
|
||||
template <typename OpTy>
|
||||
inline CastClass_match<OpTy, Instruction::UIToFP> m_UIToFP(const OpTy &Op) {
|
||||
|
Loading…
Reference in New Issue
Block a user