[clang] [clang] Instantiate attributes on LabelDecls (PR #115924)

2024-11-15 Thread Eric Astor via cfe-commits
https://github.com/ericastor updated https://github.com/llvm/llvm-project/pull/115924 >From da2e66a6a2636bf1a1ab2e25afdbd29095b6db3f Mon Sep 17 00:00:00 2001 From: Eric Astor Date: Tue, 12 Nov 2024 17:37:42 + Subject: [PATCH 1/8] [clang] Instantiate attributes on other decl types Start pro

[clang] [clang] Instantiate attributes on LabelDecls (PR #115924)

2024-11-15 Thread Eric Astor via cfe-commits
https://github.com/ericastor closed https://github.com/llvm/llvm-project/pull/115924 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Instantiate attributes on LabelDecls (PR #115924)

2024-11-15 Thread Eric Astor via cfe-commits
ericastor wrote: > Test seems to have disappeared entirely! Whoops. Apologies, missed that I'd forgotten to track the new file. https://github.com/llvm/llvm-project/pull/115924 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm

[clang] [clang] Instantiate attributes on LabelDecls (PR #115924)

2024-11-15 Thread Eric Astor via cfe-commits
https://github.com/ericastor updated https://github.com/llvm/llvm-project/pull/115924 >From da2e66a6a2636bf1a1ab2e25afdbd29095b6db3f Mon Sep 17 00:00:00 2001 From: Eric Astor Date: Tue, 12 Nov 2024 17:37:42 + Subject: [PATCH 1/8] [clang] Instantiate attributes on other decl types Start pro

[clang] [clang] Instantiate attributes on LabelDecls (PR #115924)

2024-11-15 Thread Eric Astor via cfe-commits
https://github.com/ericastor updated https://github.com/llvm/llvm-project/pull/115924 >From da2e66a6a2636bf1a1ab2e25afdbd29095b6db3f Mon Sep 17 00:00:00 2001 From: Eric Astor Date: Tue, 12 Nov 2024 17:37:42 + Subject: [PATCH 1/7] [clang] Instantiate attributes on other decl types Start pro

[clang] [clang] Instantiate attributes on LabelDecls (PR #115924)

2024-11-15 Thread Eric Astor via cfe-commits
ericastor wrote: > test needs some simplification/help, else this is fine. Thanks, I was mimicking another file that apparently isn't following best practices. Done! https://github.com/llvm/llvm-project/pull/115924 ___ cfe-commits mailing list cfe-co

[clang] [clang] Instantiate attributes on LabelDecls (PR #115924)

2024-11-15 Thread Eric Astor via cfe-commits
https://github.com/ericastor updated https://github.com/llvm/llvm-project/pull/115924 >From da2e66a6a2636bf1a1ab2e25afdbd29095b6db3f Mon Sep 17 00:00:00 2001 From: Eric Astor Date: Tue, 12 Nov 2024 17:37:42 + Subject: [PATCH 1/7] [clang] Instantiate attributes on other decl types Start pro

[clang] [clang] Instantiate attributes on LabelDecls (PR #115924)

2024-11-14 Thread Eric Astor via cfe-commits
https://github.com/ericastor updated https://github.com/llvm/llvm-project/pull/115924 >From da2e66a6a2636bf1a1ab2e25afdbd29095b6db3f Mon Sep 17 00:00:00 2001 From: Eric Astor Date: Tue, 12 Nov 2024 17:37:42 + Subject: [PATCH 1/6] [clang] Instantiate attributes on other decl types Start pro

[clang] [clang] Instantiate attributes on LabelDecls (PR #115924)

2024-11-14 Thread Eric Astor via cfe-commits
ericastor wrote: Alright, I've scoped this change back down to just LabelDecls, and added tests that avoid the use of plugins. I appreciate your review! https://github.com/llvm/llvm-project/pull/115924 ___ cfe-commits mailing list cfe-commits@lists.ll

[clang] [clang] Instantiate attributes on LabelDecls (PR #115924)

2024-11-14 Thread Eric Astor via cfe-commits
https://github.com/ericastor edited https://github.com/llvm/llvm-project/pull/115924 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Instantiate attributes on other decl types (PR #115924)

2024-11-14 Thread Eric Astor via cfe-commits
@@ -52,7 +52,7 @@ struct ExampleAttrInfo : public ParsedAttrInfo { AttrHandling handleDeclAttribute(Sema &S, Decl *D, const ParsedAttr &Attr) const override { // Check if the decl is at file scope. -if (!D->getDeclContext()->isFileCo

[clang] [clang] Instantiate attributes on other decl types (PR #115924)

2024-11-14 Thread Eric Astor via cfe-commits
https://github.com/ericastor updated https://github.com/llvm/llvm-project/pull/115924 >From da2e66a6a2636bf1a1ab2e25afdbd29095b6db3f Mon Sep 17 00:00:00 2001 From: Eric Astor Date: Tue, 12 Nov 2024 17:37:42 + Subject: [PATCH 1/5] [clang] Instantiate attributes on other decl types Start pro

[clang] [clang] Instantiate attributes on other decl types (PR #115924)

2024-11-14 Thread Eric Astor via cfe-commits
https://github.com/ericastor updated https://github.com/llvm/llvm-project/pull/115924 >From da2e66a6a2636bf1a1ab2e25afdbd29095b6db3f Mon Sep 17 00:00:00 2001 From: Eric Astor Date: Tue, 12 Nov 2024 17:37:42 + Subject: [PATCH 1/3] [clang] Instantiate attributes on other decl types Start pro

[clang] [clang] Instantiate attributes on other decl types (PR #115924)

2024-11-14 Thread Eric Astor via cfe-commits
ericastor wrote: > Still need tests for namespacealiasdecl, typedefnamedecl, and > typealiastemplatedecl actually being instantiated. > > Also, is there a reason why the only way to currently test these are with the > plugins? I would expect there to be SOME builtin attribute that could be >

[clang] [clang] Instantiate attributes on other decl types (PR #115924)

2024-11-14 Thread Eric Astor via cfe-commits
https://github.com/ericastor updated https://github.com/llvm/llvm-project/pull/115924 >From da2e66a6a2636bf1a1ab2e25afdbd29095b6db3f Mon Sep 17 00:00:00 2001 From: Eric Astor Date: Tue, 12 Nov 2024 17:37:42 + Subject: [PATCH 1/3] [clang] Instantiate attributes on other decl types Start pro

[clang] [clang] Instantiate attributes on other decl types (PR #115924)

2024-11-14 Thread Eric Astor via cfe-commits
https://github.com/ericastor updated https://github.com/llvm/llvm-project/pull/115924 >From da2e66a6a2636bf1a1ab2e25afdbd29095b6db3f Mon Sep 17 00:00:00 2001 From: Eric Astor Date: Tue, 12 Nov 2024 17:37:42 + Subject: [PATCH 1/2] [clang] Instantiate attributes on other decl types Start pro

[clang] [clang] Instantiate attributes on other decl types (PR #115924)

2024-11-12 Thread Eric Astor via cfe-commits
ericastor wrote: > The change is reasonable, but I need to see tests for each of the types. > > In general, we've had the attitude of "we can enable this instantiation once > we see examples of it being useful", so we need tests to make sure it is > instantiated, AND that it is useful. This m

[clang] [clang] Instantiate attributes on other decl types (PR #115924)

2024-11-12 Thread Eric Astor via cfe-commits
@@ -9,7 +9,7 @@ void CheckEnumerations() { // Check that non-vector 'mode' attribute is OK with enumeration types. typedef T __attribute__((mode(QI))) T1; typedef T T2 __attribute__((mode(HI))); - typedef T __attribute__((mode(V8SI))) T3; // expected-error{{mode 'V8SI' i

[clang] [clang] Instantiate attributes on other decl types (PR #115924)

2024-11-12 Thread Eric Astor via cfe-commits
https://github.com/ericastor created https://github.com/llvm/llvm-project/pull/115924 Start propagating attributes on (e.g.) labels inside of templated functions to their instances. >From da2e66a6a2636bf1a1ab2e25afdbd29095b6db3f Mon Sep 17 00:00:00 2001 From: Eric Astor Date: Tue, 12 Nov 2024

[clang] [flang] [libc] [libcxx] [libcxxabi] [libunwind] [lldb] [llvm] [mlir] [clang][frontend] Add support for attribute plugins for statement attributes (PR #110334)

2024-10-11 Thread Eric Astor via cfe-commits
Valentin Clement =?utf-8?b?KOODkOODrOODsw=?=,Renato Golin ,Eric Astor Message-ID: In-Reply-To: https://github.com/ericastor closed https://github.com/llvm/llvm-project/pull/110334 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists

[clang] [clang][frontend] Support applying the annotate attribute to statements (PR #111841)

2024-10-10 Thread Eric Astor via cfe-commits
https://github.com/ericastor closed https://github.com/llvm/llvm-project/pull/111841 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][frontend] Support applying the annotate attribute to statements (PR #111841)

2024-10-10 Thread Eric Astor via cfe-commits
https://github.com/ericastor updated https://github.com/llvm/llvm-project/pull/111841 >From 6ca0de7e07a02a91ed9ea1493e48c2d29806c537 Mon Sep 17 00:00:00 2001 From: Eric Astor Date: Wed, 9 Oct 2024 22:12:50 + Subject: [PATCH 1/6] [clang][frontend] Support applying annotate to statements The

[clang] [clang][frontend] Support applying the annotate attribute to statements (PR #111841)

2024-10-10 Thread Eric Astor via cfe-commits
https://github.com/ericastor updated https://github.com/llvm/llvm-project/pull/111841 >From 6ca0de7e07a02a91ed9ea1493e48c2d29806c537 Mon Sep 17 00:00:00 2001 From: Eric Astor Date: Wed, 9 Oct 2024 22:12:50 + Subject: [PATCH 1/5] [clang][frontend] Support applying annotate to statements The

[clang] [clang][frontend] Add support for attribute plugins for statement attributes (PR #110334)

2024-10-10 Thread Eric Astor via cfe-commits
https://github.com/ericastor updated https://github.com/llvm/llvm-project/pull/110334 >From 0411b2939e10ca335e84731502126145509bef2d Mon Sep 17 00:00:00 2001 From: Eric Astor Date: Fri, 27 Sep 2024 22:35:28 + Subject: [PATCH 1/3] [clang][frontend] Add support for attribute plugins for stat

[clang] [clang][frontend] Support applying the annotate attribute to statements (PR #111841)

2024-10-10 Thread Eric Astor via cfe-commits
https://github.com/ericastor updated https://github.com/llvm/llvm-project/pull/111841 >From 6ca0de7e07a02a91ed9ea1493e48c2d29806c537 Mon Sep 17 00:00:00 2001 From: Eric Astor Date: Wed, 9 Oct 2024 22:12:50 + Subject: [PATCH 1/4] [clang][frontend] Support applying annotate to statements The

[clang] [clang][frontend] Support applying the annotate attribute to statements (PR #111841)

2024-10-10 Thread Eric Astor via cfe-commits
https://github.com/ericastor updated https://github.com/llvm/llvm-project/pull/111841 >From 6ca0de7e07a02a91ed9ea1493e48c2d29806c537 Mon Sep 17 00:00:00 2001 From: Eric Astor Date: Wed, 9 Oct 2024 22:12:50 + Subject: [PATCH 1/4] [clang][frontend] Support applying annotate to statements The

[clang] [clang][frontend] Support applying the annotate attribute to statements (PR #111841)

2024-10-10 Thread Eric Astor via cfe-commits
https://github.com/ericastor updated https://github.com/llvm/llvm-project/pull/111841 >From 6ca0de7e07a02a91ed9ea1493e48c2d29806c537 Mon Sep 17 00:00:00 2001 From: Eric Astor Date: Wed, 9 Oct 2024 22:12:50 + Subject: [PATCH 1/3] [clang][frontend] Support applying annotate to statements The

[clang] [clang][frontend] Add support for attribute plugins for statement attributes (PR #110334)

2024-10-10 Thread Eric Astor via cfe-commits
https://github.com/ericastor updated https://github.com/llvm/llvm-project/pull/110334 >From 0411b2939e10ca335e84731502126145509bef2d Mon Sep 17 00:00:00 2001 From: Eric Astor Date: Fri, 27 Sep 2024 22:35:28 + Subject: [PATCH 1/3] [clang][frontend] Add support for attribute plugins for stat

[clang] [clang][frontend] Support applying the annotate attribute to statements (PR #111841)

2024-10-10 Thread Eric Astor via cfe-commits
https://github.com/ericastor created https://github.com/llvm/llvm-project/pull/111841 By allowing AnnotateAttr to be applied to statements, users can place arbitrary information in the AST for later use. For example, this can be used for HW-targeted language extensions that involve specialize

[clang] [clang][frontend] Add support for attribute plugins for statement attributes (PR #110334)

2024-10-09 Thread Eric Astor via cfe-commits
@@ -2125,6 +2126,19 @@ TemplateInstantiator::TransformTemplateParmRefExpr(DeclRefExpr *E, Arg, PackIndex); } +const AnnotateAttr * +TemplateInstantiator::TransformAnnotateAttr(const AnnotateAttr *AA) { + SmallVector Args; + for (Expr

[clang] [clang][frontend] Add support for attribute plugins for statement attributes (PR #110334)

2024-10-09 Thread Eric Astor via cfe-commits
ericastor wrote: So... I think this turned out to be surprisingly easy. After all, we don't actually allow custom attributes to create entirely new attributes in the AST, since they can't create new legal AST entries... instead, the example creates AnnotateAttrs that can then be observed & act

[clang] [clang][frontend] Add support for attribute plugins for statement attributes (PR #110334)

2024-10-09 Thread Eric Astor via cfe-commits
https://github.com/ericastor updated https://github.com/llvm/llvm-project/pull/110334 >From 0411b2939e10ca335e84731502126145509bef2d Mon Sep 17 00:00:00 2001 From: Eric Astor Date: Fri, 27 Sep 2024 22:35:28 + Subject: [PATCH 1/3] [clang][frontend] Add support for attribute plugins for stat

[clang] [clang][frontend] Add support for attribute plugins for statement attributes (PR #110334)

2024-10-02 Thread Eric Astor via cfe-commits
ericastor wrote: > So the problem with statement attributes is that we don't really have a good > way to do instantiation of them on a template, which is why we held off on > this in the first place. The infrastructure for instantiation DOES happen on > decl attributes automatically anyway, so

[clang] [clang][frontend] Add support for attribute plugins for statement attributes (PR #110334)

2024-09-30 Thread Eric Astor via cfe-commits
https://github.com/ericastor updated https://github.com/llvm/llvm-project/pull/110334 >From 0411b2939e10ca335e84731502126145509bef2d Mon Sep 17 00:00:00 2001 From: Eric Astor Date: Fri, 27 Sep 2024 22:35:28 + Subject: [PATCH 1/2] [clang][frontend] Add support for attribute plugins for stat

[clang] [clang][frontend] Add support for attribute plugins for statement attributes (PR #110334)

2024-09-30 Thread Eric Astor via cfe-commits
https://github.com/ericastor updated https://github.com/llvm/llvm-project/pull/110334 >From 0411b2939e10ca335e84731502126145509bef2d Mon Sep 17 00:00:00 2001 From: Eric Astor Date: Fri, 27 Sep 2024 22:35:28 + Subject: [PATCH] [clang][frontend] Add support for attribute plugins for statemen

[clang] [clang][frontend] Add support for attribute plugins for statement attributes (PR #110334)

2024-09-27 Thread Eric Astor via cfe-commits
https://github.com/ericastor created https://github.com/llvm/llvm-project/pull/110334 We already have support for declaration attributes; this is just a matter of extending the plugin infrastructure to cover one more case. >From 0411b2939e10ca335e84731502126145509bef2d Mon Sep 17 00:00:00 2001

[clang] 85b641c - [ms] Rename ParsingInlineAsm functions/variables to reflect MS-specificity.

2020-02-26 Thread Eric Astor via cfe-commits
Author: Eric Astor Date: 2020-02-26T15:19:40-05:00 New Revision: 85b641c27aecee637d3f7ab25915f47438f55848 URL: https://github.com/llvm/llvm-project/commit/85b641c27aecee637d3f7ab25915f47438f55848 DIFF: https://github.com/llvm/llvm-project/commit/85b641c27aecee637d3f7ab25915f47438f55848.diff LO

[clang] 1c545f6 - [ms] [X86] Use "P" modifier on all branch-target operands in inline X86 assembly.

2020-01-09 Thread Eric Astor via cfe-commits
Author: Eric Astor Date: 2020-01-09T14:55:03-05:00 New Revision: 1c545f6dbcbb3ada2dfef2c6afbc1ca8939135cb URL: https://github.com/llvm/llvm-project/commit/1c545f6dbcbb3ada2dfef2c6afbc1ca8939135cb DIFF: https://github.com/llvm/llvm-project/commit/1c545f6dbcbb3ada2dfef2c6afbc1ca8939135cb.diff LO

[clang] 4a7aa25 - [X86][AsmParser] re-introduce 'offset' operator

2019-12-30 Thread Eric Astor via cfe-commits
Author: Eric Astor Date: 2019-12-30T14:35:26-05:00 New Revision: 4a7aa252a32a94b1bb61b3dc7f027b4a27ae334f URL: https://github.com/llvm/llvm-project/commit/4a7aa252a32a94b1bb61b3dc7f027b4a27ae334f DIFF: https://github.com/llvm/llvm-project/commit/4a7aa252a32a94b1bb61b3dc7f027b4a27ae334f.diff LO

[clang] dc5b614 - [ms] [X86] Use "P" modifier on operands to call instructions in inline X86 assembly.

2019-12-22 Thread Eric Astor via cfe-commits
Author: Eric Astor Date: 2019-12-22T09:16:34-05:00 New Revision: dc5b614fa9a1c83e8275fcb9c3f78444d0a30514 URL: https://github.com/llvm/llvm-project/commit/dc5b614fa9a1c83e8275fcb9c3f78444d0a30514 DIFF: https://github.com/llvm/llvm-project/commit/dc5b614fa9a1c83e8275fcb9c3f78444d0a30514.diff LO

[clang] be6ac47 - [ms] Fix Microsoft compatibility handling of commas in nested macro expansions.

2019-11-04 Thread Eric Astor via cfe-commits
Author: Eric Astor Date: 2019-11-04T12:49:19-05:00 New Revision: be6ac471f613427f3b5b3a306fe033e526d59f76 URL: https://github.com/llvm/llvm-project/commit/be6ac471f613427f3b5b3a306fe033e526d59f76 DIFF: https://github.com/llvm/llvm-project/commit/be6ac471f613427f3b5b3a306fe033e526d59f76.diff LO