[PATCH] D124702: [MSVC] Add support for pragma function
Stephen Long via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 2 07:07:30 PDT 2022
steplong added a comment.
In D124702#3485475 <https://reviews.llvm.org/D124702#3485475>, @hans wrote:
> From the MS docs:
>
>> Once a function pragma is seen, it takes effect at the first function definition that contains a specified intrinsic function. The effect continues to the end of the source file, or to the appearance of an intrinsic pragma specifying the same intrinsic function. You can only use the function pragma outside of a function, at the global level.
>
> Should we try to handle the interaction between pragma intrinsic and pragma function, i.e. that the former "undoes" the latter? And should we error/warn if the pragma occurs not in namespace scope?
Oh I wasn't sure how to check if the function pragma was outside of a function. Yup, we can try to handle pragma intrinsic
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124702/new/
https://reviews.llvm.org/D124702
More information about the cfe-commits
mailing list