[PATCH] D89038: [PatternMatch] Add new FP matchers. NFC.

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 22 08:33:17 PDT 2020


lebedev.ri added inline comments.


================
Comment at: llvm/include/llvm/IR/PatternMatch.h:616-620
+/// For vectors, this includes constants with undefined elements.
+inline cstfp_pred_ty<is_finite> m_Finite() {
+  return cstfp_pred_ty<is_finite>();
+}
+inline apf_pred_ty<is_finite> m_Finite(const APFloat *&V) { return V; }
----------------
So if this is using `apf_pred_ty`, then this doesn't support `undef` constants then?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89038/new/

https://reviews.llvm.org/D89038



More information about the llvm-commits mailing list