[llvm] [VPlan] Introduce VPInstructionWithType, use instead of VPScalarCast(NFC) (PR #129706)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 10 07:36:26 PDT 2025
================
@@ -1023,6 +1022,56 @@ class VPInstruction : public VPRecipeWithIRFlags,
/// Returns the symbolic name assigned to the VPInstruction.
StringRef getName() const { return Name; }
+
+ /// Return true if \p U is a cast.
+ static bool isCast(const VPUser *U) {
----------------
fhahn wrote:
Added `VPRecipeBase::isScalarCast`, thanks
https://github.com/llvm/llvm-project/pull/129706
More information about the llvm-commits
mailing list