[clang] [llvm] [Clang][AArch64] Add customisable immediate range checking to NEON (PR #100278)

Jon Roelofs via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 6 16:49:08 PDT 2024


================
@@ -216,6 +216,36 @@ namespace clang {
     }
     bool isUnsigned() const { return (Flags & UnsignedFlag) != 0; }
     bool isQuad() const { return (Flags & QuadFlag) != 0; }
+    unsigned getEltSizeInBits() const {
+      switch (getEltType()) {
+      case Int8:
+      case Poly8:
+        return 8;
+      case Int16:
+      case Float16:
+      case Poly16:
+      case BFloat16:
+        return 16;
+      case Int32:
+      case Float32:
+        return 32;
+      case Int64:
+      case Float64:
+      case Poly64:
+        return 64;
+      case Poly128:
+        return 128;
+      default:
----------------
jroelofs wrote:

oh, never mind, nico fixed this already.

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


More information about the cfe-commits mailing list