[llvm] [VFABI] Add support for vector functions that return struct types (PR #119000)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 13 02:25:25 PST 2024


================
@@ -0,0 +1,74 @@
+//===----------- VectorUtils.h - Vector type utility functions -*- 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
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_IR_VECTORUTILS_H
+#define LLVM_IR_VECTORUTILS_H
+
+#include "llvm/IR/DerivedTypes.h"
+#include "llvm/IR/StructWideningUtils.h"
----------------
david-arm wrote:

To be fair to @MacDue, it was my suggestion. I was thinking that the separation between widening struct types and scalar types was useful to have and perhaps a bit clearer, especially if at some point the logic for structs becomes more complex. If you think it's better to do everything within just VectorUtils.h and VectorUtils.cpp that's also fine. @MacDue what do you think?

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


More information about the llvm-commits mailing list