[all-commits] [llvm/llvm-project] f3c857: [OPENMP50]Add basic codegen support for ancestor d...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Wed Mar 18 15:03:53 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f3c857fae297a1420693a129a7bf39098b3f046a
      https://github.com/llvm/llvm-project/commit/f3c857fae297a1420693a129a7bf39098b3f046a
  Author: Alexey Bataev <a.bataev at hotmail.com>
  Date:   2020-03-18 (Wed, 18 Mar 2020)

  Changed paths:
    M clang/lib/CodeGen/CGOpenMPRuntime.cpp
    M clang/lib/CodeGen/CGOpenMPRuntime.h
    M clang/lib/CodeGen/CGStmtOpenMP.cpp
    A clang/test/OpenMP/target_device_codegen.cpp

  Log Message:
  -----------
  [OPENMP50]Add basic codegen support for ancestor device modifier.

If the ancestor device modifier is used and the value of the device
clause is evaluated to 1, the ancestor device shall be used for the
execution.
Since the reverse offloading is not supported yet, the target construct
execution is always initiated from the host, not from the device. So, if
the ancestor modifier is specified, just execute target region on the
host.




More information about the All-commits mailing list