[clang] [CIR] Implement builtin extractf (PR #170427)

Henrich Lauko via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 2 23:43:22 PST 2025


================
@@ -266,6 +266,16 @@ class CIR_VectorTypeOf<list<Type> types, string summary = "">
             "vector of " # CIR_TypeSummaries<types>.value,
             summary)>;
 
+class CIR_VectorOf<Type T> : CIR_ConfinedType<
+  CIR_AnyVectorType,
+  [CIR_ElementTypePred<T.predicate>],
+  "CIR vector of " # T.summary>;
+
+// Type constraint accepting a either a type T or a vector of type T
+// Mimicking LLVMIR's LLVM_ScalarOrVectorOf
----------------
xlauko wrote:

```suggestion
```

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


More information about the cfe-commits mailing list