@@ -8251,6 +8251,25 @@ static void HandleVectorSizeAttr(QualType ,
const ParsedAttr ,
return;
}
+ // check -mgeneral-regs-only is specified
+ const TargetInfo = S.getASTContext().getTargetInfo();
+ llvm::Triple::ArchType arch = targetInfo.getTriple().getArch();
+
@@ -8251,6 +8251,25 @@ static void HandleVectorSizeAttr(QualType ,
const ParsedAttr ,
return;
}
+ // check -mgeneral-regs-only is specified
+ const TargetInfo = S.getASTContext().getTargetInfo();
+ llvm::Triple::ArchType arch = targetInfo.getTriple().getArch();
+
knightXun wrote:
cc @phoebewang
https://github.com/llvm/llvm-project/pull/75350
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/knightXun updated
https://github.com/llvm/llvm-project/pull/75350
>From b4fcae6b7f80a9888d361ba24ce8fb5ecf1e2df3 Mon Sep 17 00:00:00 2001
From: knightXun
Date: Wed, 13 Dec 2023 23:45:47 +0800
Subject: [PATCH 1/2] [clang][sema] forbid vector_size attr when specify
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: flyingcat (knightXun)
Changes
fix issue: https://github.com/llvm/llvm-project/issues/75301
---
Full diff: https://github.com/llvm/llvm-project/pull/75350.diff
2 Files Affected:
- (modified)
https://github.com/knightXun created
https://github.com/llvm/llvm-project/pull/75350
fix issue: https://github.com/llvm/llvm-project/issues/75301
>From b4fcae6b7f80a9888d361ba24ce8fb5ecf1e2df3 Mon Sep 17 00:00:00 2001
From: knightXun
Date: Wed, 13 Dec 2023 23:45:47 +0800
Subject: [PATCH]