[llvm] [SLP][Modularization][NFC] Extract type and constant helpers into SLPUtils (1/3) (PR #206881)

Madhur Amilkanthwar via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 8 22:17:48 PDT 2026


================
@@ -0,0 +1,182 @@
+//===- SLPUtils.cpp - SLP Vectorizer free utility helpers -----------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#include "SLPUtils.h"
+
+#include "llvm/ADT/STLExtras.h"
+#include "llvm/Analysis/VectorUtils.h"
+#include "llvm/IR/Constants.h"
+#include "llvm/IR/DerivedTypes.h"
+#include "llvm/IR/Instructions.h"
+#include "llvm/Support/Casting.h"
----------------
madhur13490 wrote:

Nope. 
```
Constants.h → ConstantExpr, GlobalValue, UndefValue, ConstantInt
DerivedTypes.h → FixedVectorType, ScalableVectorType
Instructions.h → InsertElementInst/ExtractElementInst/ExtractValueInst/InsertValueInst/CmpInst
Casting.h → isa/dyn_cast/cast
```

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


More information about the llvm-commits mailing list