[llvm] d091a19 - Temporary fix for `MVT::getSizeInBits()` to handle `aarch64svcount`
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Tue May 2 10:24:17 PDT 2023
Author: NAKAMURA Takumi
Date: 2023-05-03T02:23:24+09:00
New Revision: d091a19e58a29a79f8d1a03e385261d1852d4215
URL: https://github.com/llvm/llvm-project/commit/d091a19e58a29a79f8d1a03e385261d1852d4215
DIFF: https://github.com/llvm/llvm-project/commit/d091a19e58a29a79f8d1a03e385261d1852d4215.diff
LOG: Temporary fix for `MVT::getSizeInBits()` to handle `aarch64svcount`
Support/MVTTest.cpp was missing text matrix for it.
FIXME: `aarch64svcount` should be in the td.
Added:
Modified:
llvm/include/llvm/CodeGen/MachineValueType.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/MachineValueType.h b/llvm/include/llvm/CodeGen/MachineValueType.h
index 365c14bff796..d7dc38c7bd98 100644
--- a/llvm/include/llvm/CodeGen/MachineValueType.h
+++ b/llvm/include/llvm/CodeGen/MachineValueType.h
@@ -329,6 +329,8 @@ namespace llvm {
"in codegen and has no size");
case Metadata:
llvm_unreachable("Value type is metadata.");
+ case aarch64svcount: // FIXME: Not in the td.
+ return TypeSize::Scalable(16);
}
}
More information about the llvm-commits
mailing list