[llvm] [VPlan] First step towards VPlan cost modeling (LegacyCM in CostCtx) (PR #92555)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 2 07:47:38 PDT 2024


================
@@ -701,6 +716,27 @@ class VPLiveOut : public VPUser {
 #endif
 };
 
+/// Struct to hold various analysis needed for cost computations.
+struct VPCostContext {
+  const TargetTransformInfo &TTI;
+  VPTypeAnalysis Types;
+  LLVMContext &Ctx;
----------------
ayalz wrote:

```suggestion
  LLVMContext &LLVMCtx;
```
to avoid confusion?

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


More information about the llvm-commits mailing list