[PATCH] D147218: [OpenMP][Flang][MLIR] Lowering of OpenMP requires directive from parse tree to MLIR
    Kiran Chandramohan via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Tue Sep 12 07:51:14 PDT 2023
    
    
  
kiranchandramohan accepted this revision.
kiranchandramohan added a comment.
This revision is now accepted and ready to land.
LG.
================
Comment at: flang/lib/Lower/Bridge.cpp:2366-2367
     mlir::OpBuilder::InsertPoint insertPt = builder->saveInsertionPoint();
+    analyzeOpenMPDeclarativeConstruct(*this, getEval(), ompDecl,
+                                      ompDeviceCodeFound);
     genOpenMPDeclarativeConstruct(*this, getEval(), ompDecl);
----------------
Can this be rewritten this way.
And rename `analyzeOpenMPDeclarativeConstruct` to `isTargetDeclare` or something like that?
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147218/new/
https://reviews.llvm.org/D147218
    
    
More information about the cfe-commits
mailing list