[llvm] [VPlan] Introduce VPConstant VPIRValue (NFC) (PR #207387)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 4 13:47:45 PDT 2026


================
@@ -260,13 +260,27 @@ struct VPIRValue : public VPValue {
   }
 };
 
-/// An overlay on VPIRValue for VPValues that wrap a ConstantInt. Provides
-/// convenient accessors for the underlying constant.
-struct VPConstantInt : public VPIRValue {
-  VPConstantInt(ConstantInt *CI) : VPIRValue(CI) {}
+/// An overlay on VPIRValue for VPValues that wrap a Constant. May be an
+/// integer, floating-point, or even a vector constant.
----------------
fhahn wrote:

Ah right, this is interesting

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


More information about the llvm-commits mailing list