[PATCH] D98740: [OpenMP] Change OMPIRBuilder to append function attributes

Joseph Huber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 16 13:25:26 PDT 2021


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

Currently the OMPIRBuilder overwrites the function's existing attributes
when it assigns the ones defined in OMPKinds.def. This changes the
behavior to append the current function's attributes with them instead.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98740

Files:
  llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
  llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
  llvm/test/Transforms/OpenMP/add_attributes.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98740.331087.patch
Type: text/x-patch
Size: 12135 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210316/7ec0b894/attachment-0001.bin>


More information about the llvm-commits mailing list