[PATCH] D17963: [OPENMP] Codegen for teams directive for NVPTX

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 8 23:47:43 PST 2016


ABataev added inline comments.

================
Comment at: lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp:51-52
@@ +50,4 @@
+
+  // just emit the statements in the teams region, no need for outlining
+  CGF.EmitStmt(cast<CapturedStmt>(D.getAssociatedStmt())->getCapturedStmt());
+}
----------------
This will cause a crash for captured global variables. Emit as inlined directive


Repository:
  rL LLVM

http://reviews.llvm.org/D17963





More information about the cfe-commits mailing list