[llvm] [SandboxIR] Add missing VectorType functions (PR #107650)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 6 15:54:18 PDT 2024
================
@@ -317,7 +317,32 @@ class StructType : public Type {
class VectorType : public Type {
public:
static VectorType *get(Type *ElementType, ElementCount EC);
- // TODO: add missing functions
+ static VectorType *get(Type *ElementType, unsigned NumElements,
+ bool Scalable) {
+ return VectorType::get(ElementType,
+ ElementCount::get(NumElements, Scalable));
+ }
+ // Needs tests
----------------
vporpo wrote:
Hmm which tests are missing?
https://github.com/llvm/llvm-project/pull/107650
More information about the llvm-commits
mailing list