[clang] [clang][sema] forbid vector_size attr when specify `-mgeneral-regs-only` on x86 (PR #75350)

2023-12-14 Thread via cfe-commits
@@ -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(); +

[clang] [clang][sema] forbid vector_size attr when specify `-mgeneral-regs-only` on x86 (PR #75350)

2023-12-13 Thread Phoebe Wang via cfe-commits
@@ -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(); +

[clang] [clang][sema] forbid vector_size attr when specify `-mgeneral-regs-only` on x86 (PR #75350)

2023-12-13 Thread via cfe-commits
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

[clang] [clang][sema] forbid vector_size attr when specify `-mgeneral-regs-only` on x86 (PR #75350)

2023-12-13 Thread via 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

[clang] [clang][sema] forbid vector_size attr when specify `-mgeneral-regs-only` on x86 (PR #75350)

2023-12-13 Thread via cfe-commits
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)

[clang] [clang][sema] forbid vector_size attr when specify `-mgeneral-regs-only` on x86 (PR #75350)

2023-12-13 Thread via cfe-commits
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]