[llvm] [VPlan] Add simple driver option to run some individual transforms. (PR #178522)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 13 05:56:28 PST 2026


================
@@ -0,0 +1,36 @@
+//===- VPlanTestPass.h - Test VPlan transforms ----------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// This pass is a lightweight testing harness for VPlan transforms. It builds
+// VPlan0 for loops and runs specified transforms.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_TRANSFORMS_VECTORIZE_VPLANTESTPASS_H
+#define LLVM_TRANSFORMS_VECTORIZE_VPLANTESTPASS_H
+
+#include "llvm/IR/PassManager.h"
+
+namespace llvm {
+
+class VPlanTestPass : public PassInfoMixin<VPlanTestPass> {
+  std::string TransformPipeline;
----------------
fhahn wrote:

Done thanks

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


More information about the llvm-commits mailing list