[llvm] [VFABI] Move the Vector ABI demangling utility to LLVMCore. (PR #77513)

Graham Hunter via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 15 01:20:35 PST 2024


================
@@ -2259,6 +2260,13 @@ void Verifier::verifyFunctionAttrs(FunctionType *FT, AttributeList Attrs,
       CheckFailed(
           "invalid value for 'branch-target-enforcement' attribute: " + S, V);
   }
+
+  if (auto A = Attrs.getFnAttr("vector-function-abi-variant"); A.isValid()) {
----------------
huntergr-arm wrote:

I would have preferred this check be added in a separate patch, but I guess the change is small enough.

Improvements can be made in a later patch (e.g. explaining parameter type mismatches instead of just a 'invalid name' error).

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


More information about the llvm-commits mailing list