[flang-commits] [flang] [flang][OpenMP] Skip implicit typing for DeclareSimdConstruct (PR #142415)

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Mon Jun 2 08:59:14 PDT 2025


kiranchandramohan wrote:

This is potentially applicable to all declarative directives.

Would it make sense to add `SkipImplicitTyping` for all declarative directives?
```
  bool Pre(const parser::OpenMPDeclarativeConstruct &x) {
    SkipImplicitTyping(true)
    AddOmpSourceRange(x.source);
    return true;
  }
 ```
 
 For `threadprivate` and `declare target` I see that `SkipImplicitTyping` is reset in the `Post` function. Is the same required here?
 ```
   bool Pre(const parser::OpenMPThreadprivate &) {
    SkipImplicitTyping(true);
    return true;
  }
  void Post(const parser::OpenMPThreadprivate &) { SkipImplicitTyping(false); }
  ```
 

https://github.com/llvm/llvm-project/pull/142415


More information about the flang-commits mailing list