[PATCH] D39505: [OpenMP] Show error if VLAs are not supported

2017-11-18 Thread Jonas Hahnfeld via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Hahnfeld marked an inline comment as done. Closed by commit rL318601: [OpenMP] Show error if VLAs are not supported (authored by Hahnfeld). Changed prior to commit: https://reviews.llvm.org/D39505?vs=123364&id=123473#toc

[PATCH] D39505: [OpenMP] Show error if VLAs are not supported

2017-11-18 Thread John McCall via Phabricator via cfe-commits
rjmccall accepted this revision. rjmccall added a comment. This revision is now accepted and ready to land. Okay, seems fine. Thanks for putting up with my questions. https://reviews.llvm.org/D39505 ___ cfe-commits mailing list cfe-commits@lists.ll

[PATCH] D39505: [OpenMP] Show error if VLAs are not supported

2017-11-17 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld marked an inline comment as done. Hahnfeld added inline comments. Comment at: include/clang/Basic/TargetInfo.h:944 + /// \brief Whether target supports variable-length arrays. + bool isVLASupported() const { return VLASupported; } + rjmccall wrote: > H

[PATCH] D39505: [OpenMP] Show error if VLAs are not supported

2017-11-17 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld updated this revision to Diff 123364. Hahnfeld added a comment. Update changes to be generic. https://reviews.llvm.org/D39505 Files: include/clang/Basic/DiagnosticSemaKinds.td include/clang/Basic/TargetInfo.h include/clang/Sema/Sema.h lib/Basic/TargetInfo.cpp lib/Basic/Target

[PATCH] D39505: [OpenMP] Show error if VLAs are not supported

2017-11-15 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: include/clang/Basic/TargetInfo.h:944 + /// \brief Whether target supports variable-length arrays. + bool isVLASupported() const { return VLASupported; } + Hahnfeld wrote: > rjmccall wrote: > > ABataev wrote: > > > Hah

[PATCH] D39505: [OpenMP] Show error if VLAs are not supported

2017-11-15 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added inline comments. Comment at: include/clang/Basic/TargetInfo.h:944 + /// \brief Whether target supports variable-length arrays. + bool isVLASupported() const { return VLASupported; } + rjmccall wrote: > ABataev wrote: > > Hahnfeld wrote: > > > rjm

[PATCH] D39505: [OpenMP] Show error if VLAs are not supported

2017-11-15 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: include/clang/Basic/TargetInfo.h:944 + /// \brief Whether target supports variable-length arrays. + bool isVLASupported() const { return VLASupported; } + ABataev wrote: > Hahnfeld wrote: > > rjmccall wrote: > > > Hah

[PATCH] D39505: [OpenMP] Show error if VLAs are not supported

2017-11-14 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added inline comments. Comment at: include/clang/Basic/TargetInfo.h:944 + /// \brief Whether target supports variable-length arrays. + bool isVLASupported() const { return VLASupported; } + Hahnfeld wrote: > rjmccall wrote: > > Hahnfeld wrote: > > > rjm

[PATCH] D39505: [OpenMP] Show error if VLAs are not supported

2017-11-14 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added inline comments. Comment at: include/clang/Basic/TargetInfo.h:944 + /// \brief Whether target supports variable-length arrays. + bool isVLASupported() const { return VLASupported; } + rjmccall wrote: > Hahnfeld wrote: > > rjmccall wrote: > > > Ha

[PATCH] D39505: [OpenMP] Show error if VLAs are not supported

2017-11-14 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: include/clang/Basic/TargetInfo.h:944 + /// \brief Whether target supports variable-length arrays. + bool isVLASupported() const { return VLASupported; } + Hahnfeld wrote: > rjmccall wrote: > > Hahnfeld wrote: > > > rj

[PATCH] D39505: [OpenMP] Show error if VLAs are not supported

2017-11-14 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added inline comments. Comment at: include/clang/Basic/TargetInfo.h:944 + /// \brief Whether target supports variable-length arrays. + bool isVLASupported() const { return VLASupported; } + rjmccall wrote: > Hahnfeld wrote: > > rjmccall wrote: > > > AB

[PATCH] D39505: [OpenMP] Show error if VLAs are not supported

2017-11-13 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: include/clang/Basic/TargetInfo.h:944 + /// \brief Whether target supports variable-length arrays. + bool isVLASupported() const { return VLASupported; } + Hahnfeld wrote: > rjmccall wrote: > > ABataev wrote: > > > ABa

[PATCH] D39505: [OpenMP] Show error if VLAs are not supported

2017-11-09 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added inline comments. Comment at: include/clang/Basic/TargetInfo.h:944 + /// \brief Whether target supports variable-length arrays. + bool isVLASupported() const { return VLASupported; } + rjmccall wrote: > ABataev wrote: > > ABataev wrote: > > > Hahn

[PATCH] D39505: [OpenMP] Show error if VLAs are not supported

2017-11-09 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: include/clang/Basic/TargetInfo.h:944 + /// \brief Whether target supports variable-length arrays. + bool isVLASupported() const { return VLASupported; } + ABataev wrote: > ABataev wrote: > > Hahnfeld wrote: > > > rjmc

[PATCH] D39505: [OpenMP] Show error if VLAs are not supported

2017-11-06 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added inline comments. Comment at: include/clang/Basic/TargetInfo.h:944 + /// \brief Whether target supports variable-length arrays. + bool isVLASupported() const { return VLASupported; } + ABataev wrote: > Hahnfeld wrote: > > rjmccall wrote: > > > Hahn

[PATCH] D39505: [OpenMP] Show error if VLAs are not supported

2017-11-06 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added inline comments. Comment at: include/clang/Basic/TargetInfo.h:944 + /// \brief Whether target supports variable-length arrays. + bool isVLASupported() const { return VLASupported; } + Hahnfeld wrote: > rjmccall wrote: > > Hahnfeld wrote: > > > rjm

[PATCH] D39505: [OpenMP] Show error if VLAs are not supported

2017-11-06 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld marked an inline comment as done. Hahnfeld added a subscriber: gtbercea. Hahnfeld added inline comments. Comment at: include/clang/Basic/TargetInfo.h:944 + /// \brief Whether target supports variable-length arrays. + bool isVLASupported() const { return VLASupported; }

[PATCH] D39505: [OpenMP] Show error if VLAs are not supported

2017-11-05 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: include/clang/Basic/TargetInfo.h:944 + /// \brief Whether target supports variable-length arrays. + bool isVLASupported() const { return VLASupported; } + Hahnfeld wrote: > rjmccall wrote: > > Hahnfeld wrote: > > > rj

[PATCH] D39505: [OpenMP] Show error if VLAs are not supported

2017-11-04 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld marked 3 inline comments as done. Hahnfeld added inline comments. Comment at: include/clang/Basic/TargetInfo.h:944 + /// \brief Whether target supports variable-length arrays. + bool isVLASupported() const { return VLASupported; } + rjmccall wrote: > H

[PATCH] D39505: [OpenMP] Show error if VLAs are not supported

2017-11-03 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: include/clang/Basic/TargetInfo.h:944 + /// \brief Whether target supports variable-length arrays. + bool isVLASupported() const { return VLASupported; } + Hahnfeld wrote: > rjmccall wrote: > > The way you've written t

[PATCH] D39505: [OpenMP] Show error if VLAs are not supported

2017-11-02 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added inline comments. Comment at: include/clang/Basic/TargetInfo.h:944 + /// \brief Whether target supports variable-length arrays. + bool isVLASupported() const { return VLASupported; } + rjmccall wrote: > The way you've written this makes it sound l

[PATCH] D39505: [OpenMP] Show error if VLAs are not supported

2017-11-01 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: include/clang/Basic/TargetInfo.h:944 + /// \brief Whether target supports variable-length arrays. + bool isVLASupported() const { return VLASupported; } + The way you've written this makes it sound like "does the targ

[PATCH] D39505: [OpenMP] Show error if VLAs are not supported

2017-11-01 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld created this revision. Herald added a subscriber: jholewinski. Some target devices (e.g. Nvidia GPUs) don't support dynamic stack allocation and hence no VLAs. Print errors with description instead of failing in the backend or generating code that doesn't work. This patch handles explici