[llvm] [VPlan] Add type in VPRecipeValue, migrate first set of recipes. (NFC) (PR #195485)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon May 18 06:13:43 PDT 2026


================
@@ -141,15 +146,35 @@ Value *VPValue::getLiveInIRValue() const {
 
 Type *VPIRValue::getType() const { return getUnderlyingValue()->getType(); }
 
-VPRecipeValue::VPRecipeValue(VPRecipeBase *Def, Value *UV)
-    : VPValue(VPVRecipeValueSC, UV), Def(Def) {
-  assert(Def && "VPRecipeValue requires a defining recipe");
+Type *VPValue::getScalarType() const {
----------------
fhahn wrote:

Yep, I think for consistency the other places (`VPIRValue::getType` etc) should also be renamed to `getScalarType`. This is also more consistent with `inferScalarType`)

https://github.com/llvm/llvm-project/pull/195485


More information about the llvm-commits mailing list