[PATCH] D110655: [OpenMP] Apply OpenMP assumptions to applicable call sites

Joseph Huber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 28 14:09:21 PDT 2021


jhuber6 created this revision.
jhuber6 added a reviewer: jdoerfert.
Herald added subscribers: guansong, yaxunl.
jhuber6 requested review of this revision.
Herald added subscribers: cfe-commits, sstefan1.
Herald added a project: clang.

This patch adds OpenMP assumption attributes to call sites in applicable
regions. Currently this applies the caller's assumption attributes to
any calls contained within it. So, if a call occurs inside an OpenMP
assumes region to a function outside that region, we will assume that
call respects the assumptions. This is primarily useful for inline
assembly calls used heavily in the OpenMP GPU device runtime, which
allows us to then make judgements about what the ASM will do.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D110655

Files:
  clang/lib/CodeGen/CGCall.cpp
  clang/lib/CodeGen/CGStmt.cpp
  clang/lib/CodeGen/CGVTables.cpp
  clang/lib/CodeGen/CodeGenModule.h
  clang/test/OpenMP/assumes_codegen.cpp
  clang/test/OpenMP/assumes_include_nvptx.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110655.375697.patch
Type: text/x-patch
Size: 15516 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210928/2de0cb02/attachment-0001.bin>


More information about the cfe-commits mailing list