[llvm] [VPlan] Separate out logic to manage IR flags to VPIRFlags (NFC). (PR #140621)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri May 23 02:20:51 PDT 2025
================
@@ -1373,15 +1337,12 @@ class VPWidenCastRecipe : public VPRecipeWithIRFlags, public VPIRMetadata {
}
VPWidenCastRecipe(Instruction::CastOps Opcode, VPValue *Op, Type *ResultTy,
- DebugLoc DL = {})
- : VPRecipeWithIRFlags(VPDef::VPWidenCastSC, Op, DL), VPIRMetadata(),
- Opcode(Opcode), ResultTy(ResultTy) {}
-
- VPWidenCastRecipe(Instruction::CastOps Opcode, VPValue *Op, Type *ResultTy,
- bool IsNonNeg, DebugLoc DL = {})
- : VPRecipeWithIRFlags(VPDef::VPWidenCastSC, Op, NonNegFlagsTy(IsNonNeg),
- DL),
- Opcode(Opcode), ResultTy(ResultTy) {}
+ const VPIRFlags &Flags = {}, DebugLoc DL = {})
----------------
fhahn wrote:
The immediate case is https://github.com/llvm/llvm-project/pull/140623 (using VPInstructionWithType for uniform recipes), but it will also be useful for https://github.com/llvm/llvm-project/pull/129712, once I can get around to updating it
https://github.com/llvm/llvm-project/pull/140621
More information about the llvm-commits
mailing list