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

Momchil Velikov via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 2 03:36:52 PDT 2024


================
@@ -37,15 +37,20 @@ class SemaARM : public SemaBase {
                             /// flags. Do Sema checks for the runtime mode.
   };
 
+  bool CheckImmediateArg(CallExpr *TheCall, unsigned CheckTy, unsigned ArgIdx,
+                         unsigned EltBitWidth, unsigned VecBitWidth);
   bool CheckARMBuiltinExclusiveCall(unsigned BuiltinID, CallExpr *TheCall,
                                     unsigned MaxWidth);
   bool CheckNeonBuiltinFunctionCall(const TargetInfo &TI, unsigned BuiltinID,
                                     CallExpr *TheCall);
+  bool
+  ParseNeonImmChecks(CallExpr *TheCall,
+                     SmallVector<std::tuple<int, int, int, int>, 2> &ImmChecks,
----------------
momchil-velikov wrote:

Should be `SmallVectorImpl`.

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


More information about the llvm-commits mailing list