Skip to content

Commit d38b2eb

Browse files
author
v01dxyz
committed
[DAG] Add m_Ctlz to SDPatternMatch.h
1 parent bcdeb90 commit d38b2eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/include/llvm/CodeGen/SDPatternMatch.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,10 @@ template <typename Opnd> inline UnaryOpc_match<Opnd> m_FPToSI(const Opnd &Op) {
751751
return UnaryOpc_match<Opnd>(ISD::FP_TO_SINT, Op);
752752
}
753753

754+
template <typename Opnd> inline UnaryOpc_match<Opnd> m_Ctlz(const Opnd &Op) {
755+
return UnaryOpc_match<Opnd>(ISD::CTLZ, Op);
756+
}
757+
754758
// === Constants ===
755759
struct ConstantInt_match {
756760
APInt *BindVal;

0 commit comments

Comments
 (0)