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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits