[clang] [AArch64][SME2] Add builtins to cast svbool from/to svcount. (PR #74720)

Kerry McLaughlin via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 7 08:41:42 PST 2023


================
@@ -2130,6 +2130,9 @@ let TargetGuard = "sme2" in {
   def SVURSHL_X2 : SInst<"svrshl[_{d}_x2]", "222", "UcUsUiUl", MergeNone, "aarch64_sve_urshl_x2", [IsStreaming], []>;
   def SVSRSHL_X4 : SInst<"svrshl[_{d}_x4]", "444", "csil",     MergeNone, "aarch64_sve_srshl_x4", [IsStreaming], []>;
   def SVURSHL_X4 : SInst<"svrshl[_{d}_x4]", "444", "UcUsUiUl", MergeNone, "aarch64_sve_urshl_x4", [IsStreaming], []>;
+
+  def REINTERPRET_SVBOOL_TO_SVCOUNT : Inst<"svreinterpret[_c]", "}P", "Pc", MergeNone, "", [IsStreamingCompatible], [], MemEltTyDefault>;
+  def REINTERPRET_SVCOUNT_TO_SVBOOL : Inst<"svreinterpret[_b]", "P}", "Pc", MergeNone, "", [IsStreamingCompatible], [], MemEltTyDefault>;
----------------
kmclaughlin-arm wrote:

I believe the Inst class uses a default MemEltType value of `MemEltTyDefault`, so you should be able to remove it from these definitions.

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


More information about the cfe-commits mailing list