r351642 - [NFC] Generalize expected output for callback test

2019-01-19 Thread Johannes Doerfert via cfe-commits
Author: jdoerfert Date: Sat Jan 19 01:40:08 2019 New Revision: 351642 URL: http://llvm.org/viewvc/llvm-project?rev=351642&view=rev Log: [NFC] Generalize expected output for callback test Modified: cfe/trunk/test/CodeGen/callback_pthread_create.c Modified: cfe/trunk/test/CodeGen/callback_pthr

r351643 - [FIX] Restrict callback pthreads_create test to linux only

2019-01-19 Thread Johannes Doerfert via cfe-commits
Author: jdoerfert Date: Sat Jan 19 01:40:10 2019 New Revision: 351643 URL: http://llvm.org/viewvc/llvm-project?rev=351643&view=rev Log: [FIX] Restrict callback pthreads_create test to linux only Modified: cfe/trunk/test/CodeGen/callback_pthread_create.c Modified: cfe/trunk/test/CodeGen/callb

r351629 - Emit !callback metadata and introduce the callback attribute

2019-01-19 Thread Johannes Doerfert via cfe-commits
Author: jdoerfert Date: Fri Jan 18 21:36:54 2019 New Revision: 351629 URL: http://llvm.org/viewvc/llvm-project?rev=351629&view=rev Log: Emit !callback metadata and introduce the callback attribute With commit r351627, LLVM gained the ability to apply (existing) IPO optimizations on indirectio

r351665 - [FIX] Generalize the expected results for callback clang tests

2019-01-19 Thread Johannes Doerfert via cfe-commits
Author: jdoerfert Date: Sat Jan 19 12:46:10 2019 New Revision: 351665 URL: http://llvm.org/viewvc/llvm-project?rev=351665&view=rev Log: [FIX] Generalize the expected results for callback clang tests Modified: cfe/trunk/test/CodeGen/callback_annotated.c cfe/trunk/test/CodeGen/callback_pthr

r351744 - [NFC] Fix comparison warning issues by MSVC

2019-01-21 Thread Johannes Doerfert via cfe-commits
Author: jdoerfert Date: Mon Jan 21 06:23:46 2019 New Revision: 351744 URL: http://llvm.org/viewvc/llvm-project?rev=351744&view=rev Log: [NFC] Fix comparison warning issues by MSVC Modified: cfe/trunk/lib/Sema/SemaDeclAttr.cpp Modified: cfe/trunk/lib/Sema/SemaDeclAttr.cpp URL: http://llvm.or

r352299 - [FIX] Adjust CXX microsoft abi dynamic cast test to r352293

2019-01-26 Thread Johannes Doerfert via cfe-commits
Author: jdoerfert Date: Sat Jan 26 16:22:10 2019 New Revision: 352299 URL: http://llvm.org/viewvc/llvm-project?rev=352299&view=rev Log: [FIX] Adjust CXX microsoft abi dynamic cast test to r352293 Modified: cfe/trunk/test/CodeGenCXX/microsoft-abi-dynamic-cast.cpp cfe/trunk/test/CodeGenCXX/

r353088 - Generalize pthread callback test case

2019-02-04 Thread Johannes Doerfert via cfe-commits
Author: jdoerfert Date: Mon Feb 4 12:42:38 2019 New Revision: 353088 URL: http://llvm.org/viewvc/llvm-project?rev=353088&view=rev Log: Generalize pthread callback test case Changes suggested by Eli Friedman Modified: cfe/trunk/test/CodeGen/callback_pthread_create.c Modified: cfe/trunk/tes

r362545 - Introduce Value::stripPointerCastsSameRepresentation

2019-06-04 Thread Johannes Doerfert via cfe-commits
Author: jdoerfert Date: Tue Jun 4 13:21:46 2019 New Revision: 362545 URL: http://llvm.org/viewvc/llvm-project?rev=362545&view=rev Log: Introduce Value::stripPointerCastsSameRepresentation This patch allows current users of Value::stripPointerCasts() to force the result of the function to have th

r367387 - [Fix] Customize warnings for missing built-in types

2019-07-30 Thread Johannes Doerfert via cfe-commits
Author: jdoerfert Date: Tue Jul 30 22:16:38 2019 New Revision: 367387 URL: http://llvm.org/viewvc/llvm-project?rev=367387&view=rev Log: [Fix] Customize warnings for missing built-in types If we detect a built-in declaration for which we cannot derive a type matching the pattern in the Builtins.de

[clang] 7db017b - [OpenMP][Docs] Update Clang Support docs after D75591

2020-07-29 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-07-29T10:21:05-05:00 New Revision: 7db017bf3405c7fa43786fe27380d88702e19584 URL: https://github.com/llvm/llvm-project/commit/7db017bf3405c7fa43786fe27380d88702e19584 DIFF: https://github.com/llvm/llvm-project/commit/7db017bf3405c7fa43786fe27380d88702e19584.d

[clang] ee05167 - [OpenMP] Allow traits for the OpenMP context selector `isa`

2020-07-29 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-07-29T10:22:27-05:00 New Revision: ee05167cc42b95f70bc2ff1bd4402969f356f53b URL: https://github.com/llvm/llvm-project/commit/ee05167cc42b95f70bc2ff1bd4402969f356f53b DIFF: https://github.com/llvm/llvm-project/commit/ee05167cc42b95f70bc2ff1bd4402969f356f53b.d

[clang] 8723280 - [OpenMP] Fix D83281 issue on windows by allowing `dso_local` in CHECK

2020-07-29 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-07-29T15:18:20-05:00 New Revision: 8723280b68b1e5ed97a699466720b36a32a9e406 URL: https://github.com/llvm/llvm-project/commit/8723280b68b1e5ed97a699466720b36a32a9e406 DIFF: https://github.com/llvm/llvm-project/commit/8723280b68b1e5ed97a699466720b36a32a9e406.d

[clang] b08abf4 - [OpenMP] Fix D83281 issue on windows by allowing `dso_local` in CHECK [2/1]

2020-07-29 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-07-29T15:47:45-05:00 New Revision: b08abf4c808e98718b8806dafcae1626328676d4 URL: https://github.com/llvm/llvm-project/commit/b08abf4c808e98718b8806dafcae1626328676d4 DIFF: https://github.com/llvm/llvm-project/commit/b08abf4c808e98718b8806dafcae1626328676d4.d

[clang] 19756ef - [OpenMP][IRBuilder] Support allocas in nested parallel regions

2020-07-30 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-07-30T10:19:39-05:00 New Revision: 19756ef53a498b7aa1fbac9e3a7cd3aa8e110fad URL: https://github.com/llvm/llvm-project/commit/19756ef53a498b7aa1fbac9e3a7cd3aa8e110fad DIFF: https://github.com/llvm/llvm-project/commit/19756ef53a498b7aa1fbac9e3a7cd3aa8e110fad.d

[clang] ebad64d - [OpenMP][FIX] Consistently use OpenMPIRBuilder if requested

2020-07-30 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-07-30T10:19:40-05:00 New Revision: ebad64dfe133e64d1df6b82e6ef2fb031d635b08 URL: https://github.com/llvm/llvm-project/commit/ebad64dfe133e64d1df6b82e6ef2fb031d635b08 DIFF: https://github.com/llvm/llvm-project/commit/ebad64dfe133e64d1df6b82e6ef2fb031d635b08.d

[clang] ceed44a - [OpenMP][NFC] Remove unnecessary argument

2020-04-04 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-04-04T11:34:58-05:00 New Revision: ceed44adfd1ae9d714eaa4f0e7fa5a1a149b4dc5 URL: https://github.com/llvm/llvm-project/commit/ceed44adfd1ae9d714eaa4f0e7fa5a1a149b4dc5 DIFF: https://github.com/llvm/llvm-project/commit/ceed44adfd1ae9d714eaa4f0e7fa5a1a149b4dc5.d

[clang-tools-extra] 8ea07f6 - [OpenMP] Add extra qualification to OpenMP clause id

2020-04-05 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-04-05T23:10:58-05:00 New Revision: 8ea07f62a6f06bdb7da981425227995423867a4d URL: https://github.com/llvm/llvm-project/commit/8ea07f62a6f06bdb7da981425227995423867a4d DIFF: https://github.com/llvm/llvm-project/commit/8ea07f62a6f06bdb7da981425227995423867a4d.d

[clang] 931c0cd - [OpenMP][NFC] Move and simplify directive -> allowed clause mapping

2020-04-05 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-04-06T00:04:08-05:00 New Revision: 931c0cd713ee9b082389727bed1b518c6a44344f URL: https://github.com/llvm/llvm-project/commit/931c0cd713ee9b082389727bed1b518c6a44344f DIFF: https://github.com/llvm/llvm-project/commit/931c0cd713ee9b082389727bed1b518c6a44344f.d

[clang-tools-extra] 9e1af17 - [OpenMP][FIX] Add missing cmake dependence needed after 931c0cd713ee

2020-04-06 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-04-06T09:01:43-05:00 New Revision: 9e1af172eec9a06bffac337057a2452b88466288 URL: https://github.com/llvm/llvm-project/commit/9e1af172eec9a06bffac337057a2452b88466288 DIFF: https://github.com/llvm/llvm-project/commit/9e1af172eec9a06bffac337057a2452b88466288.d

Re: [clang-tools-extra] 9e1af17 - [OpenMP][FIX] Add missing cmake dependence needed after 931c0cd713ee

2020-04-06 Thread Johannes Doerfert via cfe-commits
is missing elsewhere, or there's wrong layering. The root cause is the use of `isAllowedClauseForDirective` in ASTMatchers.h. On Mon, Apr 6, 2020 at 5:03 PM Johannes Doerfert via cfe-commits wrote: Author: Johannes Doerfert Date: 2020-04-06T09:01:43-05:00 New Rev

[clang-tools-extra] 97aa593 - [OpenMP] Fix layering problem with FrontendOpenMP

2020-04-06 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-04-06T13:04:26-05:00 New Revision: 97aa593a8387586095b7eac12974ba2fdd08f4c3 URL: https://github.com/llvm/llvm-project/commit/97aa593a8387586095b7eac12974ba2fdd08f4c3 DIFF: https://github.com/llvm/llvm-project/commit/97aa593a8387586095b7eac12974ba2fdd08f4c3.d

[clang-tools-extra] f9d558c - [OpenMP] "UnFix" layering problem with FrontendOpenMP

2020-04-07 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-04-07T14:41:18-05:00 New Revision: f9d558c871337699d2815dbf116bae94025f5d90 URL: https://github.com/llvm/llvm-project/commit/f9d558c871337699d2815dbf116bae94025f5d90 DIFF: https://github.com/llvm/llvm-project/commit/f9d558c871337699d2815dbf116bae94025f5d90.d

[clang-tools-extra] 5303770 - [OpenMP] "UnFix" last layering problem with FrontendOpenMP

2020-04-07 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-04-07T22:47:41-05:00 New Revision: 530377018f624eadb8c07650511bbb9ca63608de URL: https://github.com/llvm/llvm-project/commit/530377018f624eadb8c07650511bbb9ca63608de DIFF: https://github.com/llvm/llvm-project/commit/530377018f624eadb8c07650511bbb9ca63608de.d

[clang] a19eb1d - [OpenMP] Add match_{all,any,none} declare variant selector extensions.

2020-04-07 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-04-07T23:33:24-05:00 New Revision: a19eb1de726c1ccbf60dca6a1fbcd49b3157282f URL: https://github.com/llvm/llvm-project/commit/a19eb1de726c1ccbf60dca6a1fbcd49b3157282f DIFF: https://github.com/llvm/llvm-project/commit/a19eb1de726c1ccbf60dca6a1fbcd49b3157282f.d

[clang] eb5a16e - [OpenMP] Specialize OpenMP calls after template instantiation

2020-04-07 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-04-07T23:33:24-05:00 New Revision: eb5a16efbf59150af31bd4e3d37b8ea5976d780b URL: https://github.com/llvm/llvm-project/commit/eb5a16efbf59150af31bd4e3d37b8ea5976d780b DIFF: https://github.com/llvm/llvm-project/commit/eb5a16efbf59150af31bd4e3d37b8ea5976d780b.d

[clang] f85ae05 - [OpenMP] Provide math functions in OpenMP device code via OpenMP variants

2020-04-07 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-04-07T23:33:24-05:00 New Revision: f85ae058f580e9d74c4a8f2f0de168c18da6150f URL: https://github.com/llvm/llvm-project/commit/f85ae058f580e9d74c4a8f2f0de168c18da6150f DIFF: https://github.com/llvm/llvm-project/commit/f85ae058f580e9d74c4a8f2f0de168c18da6150f.d

[clang] 17d8334 - [OpenMP] Allow to go first in C++-mode in target regions

2020-04-09 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-04-09T22:10:31-05:00 New Revision: 17d83342235f01d4b110dc5d4664fe96f6597f11 URL: https://github.com/llvm/llvm-project/commit/17d83342235f01d4b110dc5d4664fe96f6597f11 DIFF: https://github.com/llvm/llvm-project/commit/17d83342235f01d4b110dc5d4664fe96f6597f11.d

[clang] d999cbc - [OpenMP] Initial support for std::complex in target regions

2020-07-08 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-07-08T17:33:59-05:00 New Revision: d999cbc98832154e15e786b98281211d5c1b9f5d URL: https://github.com/llvm/llvm-project/commit/d999cbc98832154e15e786b98281211d5c1b9f5d DIFF: https://github.com/llvm/llvm-project/commit/d999cbc98832154e15e786b98281211d5c1b9f5d.d

[clang] e3e47e8 - [OpenMP] Make complex soft-float functions on the GPU weak definitions

2020-07-08 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-07-09T01:06:55-05:00 New Revision: e3e47e80355422df2e730cf97a0c80bb6de3915e URL: https://github.com/llvm/llvm-project/commit/e3e47e80355422df2e730cf97a0c80bb6de3915e DIFF: https://github.com/llvm/llvm-project/commit/e3e47e80355422df2e730cf97a0c80bb6de3915e.d

[clang] 7f1e6fc - [OpenMP] Use __OPENMP_NVPTX__ instead of _OPENMP in wrapper headers

2020-07-10 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-07-10T18:53:34-05:00 New Revision: 7f1e6fcff9427adfa8efa3bfeeeac801da788b87 URL: https://github.com/llvm/llvm-project/commit/7f1e6fcff9427adfa8efa3bfeeeac801da788b87 DIFF: https://github.com/llvm/llvm-project/commit/7f1e6fcff9427adfa8efa3bfeeeac801da788b87.d

[clang] cd0ea03 - [OpenMP][NFC] Remove unused and untested code from the device runtime

2020-07-10 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-07-10T19:09:41-05:00 New Revision: cd0ea03e6f157e8fb477cd8368b29e1448eeb265 URL: https://github.com/llvm/llvm-project/commit/cd0ea03e6f157e8fb477cd8368b29e1448eeb265 DIFF: https://github.com/llvm/llvm-project/commit/cd0ea03e6f157e8fb477cd8368b29e1448eeb265.d

[clang] b5667d0 - [OpenMP][CUDA] Fix std::complex in GPU regions

2020-07-10 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-07-11T00:40:05-05:00 New Revision: b5667d00e0447747419a783697b84a37f59ce055 URL: https://github.com/llvm/llvm-project/commit/b5667d00e0447747419a783697b84a37f59ce055 DIFF: https://github.com/llvm/llvm-project/commit/b5667d00e0447747419a783697b84a37f59ce055.d

[clang] c986995 - [OpenMP][NFC] Remove unused (always fixed) arguments

2020-07-10 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-07-11T00:51:51-05:00 New Revision: c98699582a6333bbe76ff7853b4cd6beb45754cf URL: https://github.com/llvm/llvm-project/commit/c98699582a6333bbe76ff7853b4cd6beb45754cf DIFF: https://github.com/llvm/llvm-project/commit/c98699582a6333bbe76ff7853b4cd6beb45754cf.d

[clang] fec1f21 - [OpenMP] Emit remarks during GPU state machine optimization

2020-07-14 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-07-14T22:33:57-05:00 New Revision: fec1f2109f33c9a1a7650272b3bfb8f0f81f6a2b URL: https://github.com/llvm/llvm-project/commit/fec1f2109f33c9a1a7650272b3bfb8f0f81f6a2b DIFF: https://github.com/llvm/llvm-project/commit/fec1f2109f33c9a1a7650272b3bfb8f0f81f6a2b.d

[clang] 7af287d - [OpenMP][IRBuilder] Support nested parallel regions

2020-07-14 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-07-14T22:39:06-05:00 New Revision: 7af287d0d921471f18b5c3054ce42381c0f973ed URL: https://github.com/llvm/llvm-project/commit/7af287d0d921471f18b5c3054ce42381c0f973ed DIFF: https://github.com/llvm/llvm-project/commit/7af287d0d921471f18b5c3054ce42381c0f973ed.d

[clang] d87c92e - [OpenMP][FIX] Check only for deterministic part of a generated function name

2020-07-14 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-07-14T22:48:22-05:00 New Revision: d87c92e5a2eca620903ce53592ccbe4f8807abe1 URL: https://github.com/llvm/llvm-project/commit/d87c92e5a2eca620903ce53592ccbe4f8807abe1 DIFF: https://github.com/llvm/llvm-project/commit/d87c92e5a2eca620903ce53592ccbe4f8807abe1.d

[clang] 97ce7fd - [UpdateTestChecks] Match unnamed values like "@[0-9]+" and "![0-9]+"

2020-08-11 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-08-12T01:04:16-05:00 New Revision: 97ce7fd89fcc92d84c1938108388f735d55d372c URL: https://github.com/llvm/llvm-project/commit/97ce7fd89fcc92d84c1938108388f735d55d372c DIFF: https://github.com/llvm/llvm-project/commit/97ce7fd89fcc92d84c1938108388f735d55d372c.d

[clang] 07c3348 - [OpenMP][NFC] Update test check lines with new script version

2020-08-14 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-08-14T08:59:25-05:00 New Revision: 07c33487faff3067953d61e5e968b6c3d1b845d6 URL: https://github.com/llvm/llvm-project/commit/07c33487faff3067953d61e5e968b6c3d1b845d6 DIFF: https://github.com/llvm/llvm-project/commit/07c33487faff3067953d61e5e968b6c3d1b845d6.d

[clang] 95a25e4 - [OpenMP][FIX] Do not use TBAA in type punning reduction GPU code PR46156

2020-08-16 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-08-16T14:38:31-05:00 New Revision: 95a25e4c3203f35e9f57f9fac620b4a21bffd6e1 URL: https://github.com/llvm/llvm-project/commit/95a25e4c3203f35e9f57f9fac620b4a21bffd6e1 DIFF: https://github.com/llvm/llvm-project/commit/95a25e4c3203f35e9f57f9fac620b4a21bffd6e1.d

[clang] abe71b7 - [OpenMP][NFC] Delete dead code

2023-11-06 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2023-11-06T11:50:41-08:00 New Revision: abe71b77f9ac2fc689e899fa6aa2486120c53912 URL: https://github.com/llvm/llvm-project/commit/abe71b77f9ac2fc689e899fa6aa2486120c53912 DIFF: https://github.com/llvm/llvm-project/commit/abe71b77f9ac2fc689e899fa6aa2486120c53912.d

[clang] 921bd29 - [OpenMP] Remove alignment for global <-> local reduction functions

2023-11-06 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2023-11-06T11:50:41-08:00 New Revision: 921bd299134fbe17c676b2486af269e18281def4 URL: https://github.com/llvm/llvm-project/commit/921bd299134fbe17c676b2486af269e18281def4 DIFF: https://github.com/llvm/llvm-project/commit/921bd299134fbe17c676b2486af269e18281def4.d

[clang] [llvm] [openmp] [OpenMP] Rework handling of global ctor/dtors in OpenMP (PR #71739)

2023-11-10 Thread Johannes Doerfert via cfe-commits
@@ -2627,6 +2637,48 @@ struct AMDGPUDeviceTy : public GenericDeviceTy, AMDGenericDeviceTy { using AMDGPUEventRef = AMDGPUResourceRef; using AMDGPUEventManagerTy = GenericDeviceResourceManagerTy; + /// Common method to invoke a single threaded constructor or destructor +

[llvm] [openmp] [clang] [OpenMP] Rework handling of global ctor/dtors in OpenMP (PR #71739)

2023-11-10 Thread Johannes Doerfert via cfe-commits
@@ -1038,6 +1048,109 @@ struct CUDADeviceTy : public GenericDeviceTy { using CUDAStreamManagerTy = GenericDeviceResourceManagerTy; using CUDAEventManagerTy = GenericDeviceResourceManagerTy; + Error callGlobalCtorDtorCommon(GenericPluginTy &Plugin, DeviceImageTy &Image, +

[openmp] [llvm] [clang] [OpenMP] Rework handling of global ctor/dtors in OpenMP (PR #71739)

2023-11-10 Thread Johannes Doerfert via cfe-commits
@@ -1038,6 +1048,109 @@ struct CUDADeviceTy : public GenericDeviceTy { using CUDAStreamManagerTy = GenericDeviceResourceManagerTy; using CUDAEventManagerTy = GenericDeviceResourceManagerTy; + Error callGlobalCtorDtorCommon(GenericPluginTy &Plugin, DeviceImageTy &Image, +

[llvm] [clang] [openmp] [OpenMP] Rework handling of global ctor/dtors in OpenMP (PR #71739)

2023-11-10 Thread Johannes Doerfert via cfe-commits
@@ -1038,6 +1048,109 @@ struct CUDADeviceTy : public GenericDeviceTy { using CUDAStreamManagerTy = GenericDeviceResourceManagerTy; using CUDAEventManagerTy = GenericDeviceResourceManagerTy; + Error callGlobalCtorDtorCommon(GenericPluginTy &Plugin, DeviceImageTy &Image, +

[openmp] [clang] [llvm] [OpenMP] Rework handling of global ctor/dtors in OpenMP (PR #71739)

2023-11-10 Thread Johannes Doerfert via cfe-commits
@@ -313,12 +313,18 @@ static void registerGlobalCtorsDtorsForImage(__tgt_bin_desc *Desc, DP("Adding ctor " DPxMOD " to the pending list.\n", DPxPTR(Entry->addr)); Device.PendingCtorsDtors[Desc].PendingCtors.push_back(Entry->addr); +MESSAGE("C

[llvm] [clang] [openmp] [OpenMP] Rework handling of global ctor/dtors in OpenMP (PR #71739)

2023-11-10 Thread Johannes Doerfert via cfe-commits
@@ -1038,6 +1048,109 @@ struct CUDADeviceTy : public GenericDeviceTy { using CUDAStreamManagerTy = GenericDeviceResourceManagerTy; using CUDAEventManagerTy = GenericDeviceResourceManagerTy; + Error callGlobalCtorDtorCommon(GenericPluginTy &Plugin, DeviceImageTy &Image, +

[clang] [llvm] [openmp] [OpenMP] Rework handling of global ctor/dtors in OpenMP (PR #71739)

2023-11-10 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert approved this pull request. LG, check my comments. https://github.com/llvm/llvm-project/pull/71739 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [openmp] [OpenMP] Rework handling of global ctor/dtors in OpenMP (PR #71739)

2023-11-10 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert edited https://github.com/llvm/llvm-project/pull/71739 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [openmp] [llvm] [OpenMP] Rework handling of global ctor/dtors in OpenMP (PR #71739)

2023-11-10 Thread Johannes Doerfert via cfe-commits
@@ -2627,6 +2637,38 @@ struct AMDGPUDeviceTy : public GenericDeviceTy, AMDGenericDeviceTy { using AMDGPUEventRef = AMDGPUResourceRef; using AMDGPUEventManagerTy = GenericDeviceResourceManagerTy; + /// Common method to invoke a single threaded constructor or destructor +

[openmp] [llvm] [clang] [OpenMP] Rework handling of global ctor/dtors in OpenMP (PR #71739)

2023-11-10 Thread Johannes Doerfert via cfe-commits
@@ -0,0 +1,37 @@ +// RUN: %libomptarget-compilexx-run-and-check-generic + +// REQUIRES: libc + +#include + +#pragma omp begin declare target device_type(nohost) + +// CHECK: void ctor1() +// CHECK: void ctor2() +// CHECK: void ctor3() +[[gnu::constructor(101)]] void ctor1() { put

[llvm] [openmp] [clang] [OpenMP] Rework handling of global ctor/dtors in OpenMP (PR #71739)

2023-11-10 Thread Johannes Doerfert via cfe-commits
@@ -1038,6 +1048,100 @@ struct CUDADeviceTy : public GenericDeviceTy { using CUDAStreamManagerTy = GenericDeviceResourceManagerTy; using CUDAEventManagerTy = GenericDeviceResourceManagerTy; + Error callGlobalCtorDtorCommon(GenericPluginTy &Plugin, DeviceImageTy &Image, +

[llvm] [clang] [openmp] [OpenMP] Rework handling of global ctor/dtors in OpenMP (PR #71739)

2023-11-10 Thread Johannes Doerfert via cfe-commits
@@ -1038,6 +1048,109 @@ struct CUDADeviceTy : public GenericDeviceTy { using CUDAStreamManagerTy = GenericDeviceResourceManagerTy; using CUDAEventManagerTy = GenericDeviceResourceManagerTy; + Error callGlobalCtorDtorCommon(GenericPluginTy &Plugin, DeviceImageTy &Image, +

[clang] 7318fe6 - [OpenMP][FIX] Ensure device reduction geps work for multi-var reductions

2023-11-10 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2023-11-10T14:34:46-08:00 New Revision: 7318fe633487f9b9187e18c7ebd4c6516ded9a22 URL: https://github.com/llvm/llvm-project/commit/7318fe633487f9b9187e18c7ebd4c6516ded9a22 DIFF: https://github.com/llvm/llvm-project/commit/7318fe633487f9b9187e18c7ebd4c6516ded9a22.d

[clang-tools-extra] [llvm] [openmp] [clang] [OpenMP] Add extra flags to libomptarget and plugin builds (PR #74520)

2023-12-11 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert updated https://github.com/llvm/llvm-project/pull/74520 >From f505868953d07125f67bcbb79be426a6deee1a13 Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Tue, 5 Dec 2023 12:35:04 -0800 Subject: [PATCH 1/2] [OpenMP] Add extra flags to libomptarget and plugin bui

[clang-tools-extra] [llvm] [openmp] [clang] [OpenMP] Add extra flags to libomptarget and plugin builds (PR #74520)

2023-12-11 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert closed https://github.com/llvm/llvm-project/pull/74520 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [Offload] Initial support for registering offloading entries on COFF targets (PR #72697)

2023-11-20 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert edited https://github.com/llvm/llvm-project/pull/72697 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [Offload] Initial support for registering offloading entries on COFF targets (PR #72697)

2023-11-20 Thread Johannes Doerfert via cfe-commits
@@ -62,35 +63,51 @@ void offloading::emitOffloadingEntry(Module &M, Constant *Addr, StringRef Name, M.getDataLayout().getDefaultGlobalsAddressSpace()); // The entry has to be created in the section the linker expects it to be. - Entry->setSection(SectionName); + if

[llvm] [clang] [Offload] Initial support for registering offloading entries on COFF targets (PR #72697)

2023-11-20 Thread Johannes Doerfert via cfe-commits
@@ -62,35 +63,51 @@ void offloading::emitOffloadingEntry(Module &M, Constant *Addr, StringRef Name, M.getDataLayout().getDefaultGlobalsAddressSpace()); // The entry has to be created in the section the linker expects it to be. - Entry->setSection(SectionName); + if

[clang] [llvm] [Offload] Initial support for registering offloading entries on COFF targets (PR #72697)

2023-11-20 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert approved this pull request. LG, two nits. https://github.com/llvm/llvm-project/pull/72697 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [openmp] [Clang][OpenMP] Fix ordering of processing of map clauses when mapping a struct. (PR #72410)

2023-11-20 Thread Johannes Doerfert via cfe-commits
@@ -7742,15 +7744,42 @@ class MappableExprsHandler { else if (C->getMapType() == OMPC_MAP_alloc) Kind = Allocs; const auto *EI = C->getVarRefs().begin(); - for (const auto L : C->component_lists()) { -const Expr *E = (C->getMapLoc().isValid()) ?

[clang] [clang] Robustify openmp test (PR #69739)

2023-10-28 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert approved this pull request. LG, thx https://github.com/llvm/llvm-project/pull/69739 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenMP] Unify the min/max thread/teams pathways (PR #70273)

2023-10-28 Thread Johannes Doerfert via cfe-commits
@@ -1,68 +1,20 @@ -// RUN: %clang_cc1 -verify -fopenmp -fopenmp-targets=powerpc64le-ibm-linux-gnu -x c++ -triple powerpc64le-unknown-unknown -emit-llvm %s -o - | FileCheck -allow-deprecated-dag-overlap %s -check-prefix=CHECK1 -// RUN: %clang_cc1 -fopenmp -fopenmp-targets=powerp

[clang] [OpenMP] Associate the KernelEnvironment with the GenericKernelTy (PR #70383)

2023-10-29 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert updated https://github.com/llvm/llvm-project/pull/70383 >From fa6d6d9cf6398915f911e06eecc78c7ba83d3623 Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Wed, 25 Oct 2023 16:46:01 -0700 Subject: [PATCH] [OpenMP] Associate the KernelEnvironment with the GenericK

[clang] [OpenMP] Associate the KernelEnvironment with the GenericKernelTy (PR #70383)

2023-10-29 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert closed https://github.com/llvm/llvm-project/pull/70383 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[openmp] [llvm] [mlir] [clang] [OpenMP] Introduce the KernelLaunchEnvironment as implicit argument (PR #70401)

2023-10-31 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert edited https://github.com/llvm/llvm-project/pull/70401 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[openmp] [llvm] [mlir] [clang] [OpenMP] Introduce the KernelLaunchEnvironment as implicit argument (PR #70401)

2023-10-31 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert closed https://github.com/llvm/llvm-project/pull/70401 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [openmp] [OpenMP] Non racy team reductions (PR #70752)

2023-10-31 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert updated https://github.com/llvm/llvm-project/pull/70752 >From 04aafdce6f259e31304ed47118a56042b155bd77 Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Mon, 30 Oct 2023 16:39:00 -0700 Subject: [PATCH] [OpenMP][FIX] Allocate per launch memory for GPU team redu

[clang] [openmp] [OpenMP][FIX] Allocate per launch memory for GPU team reductions (PR #70752)

2023-10-31 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert edited https://github.com/llvm/llvm-project/pull/70752 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[openmp] [clang] [OpenMP][FIX] Allocate per launch memory for GPU team reductions (PR #70752)

2023-10-31 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert edited https://github.com/llvm/llvm-project/pull/70752 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [openmp] [OpenMP][FIX] Allocate per launch memory for GPU team reductions (PR #70752)

2023-10-31 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert edited https://github.com/llvm/llvm-project/pull/70752 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[openmp] [clang] [OpenMP] Team reduction work specialization (PR #70766)

2023-10-31 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert updated https://github.com/llvm/llvm-project/pull/70766 >From 04aafdce6f259e31304ed47118a56042b155bd77 Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Mon, 30 Oct 2023 16:39:00 -0700 Subject: [PATCH 1/2] [OpenMP][FIX] Allocate per launch memory for GPU team

[openmp] [clang] [OpenMP][FIX] Allocate per launch memory for GPU team reductions (PR #70752)

2023-11-01 Thread Johannes Doerfert via cfe-commits
@@ -194,6 +191,9 @@ int32_t __kmpc_nvptx_teams_reduce_nowait_v2( ThreadId = 0; } + uint32_t &IterCnt = state::getKernelLaunchEnvironment().ReductionIterCnt; + uint32_t &Cnt = state::getKernelLaunchEnvironment().ReductionCnt; jdoerfert wrote: They are,

[openmp] [clang] [OpenMP][FIX] Allocate per launch memory for GPU team reductions (PR #70752)

2023-11-01 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert updated https://github.com/llvm/llvm-project/pull/70752 >From 1859bd43bc2c0bb32fc028f0daf73525f039c5d2 Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Mon, 30 Oct 2023 16:39:00 -0700 Subject: [PATCH] [OpenMP][FIX] Allocate per launch memory for GPU team redu

[openmp] [clang] [OpenMP][FIX] Allocate per launch memory for GPU team reductions (PR #70752)

2023-11-01 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert closed https://github.com/llvm/llvm-project/pull/70752 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0e06ddf - Revert "[APINotes] Upstream APINotesOptions"

2023-11-01 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2023-11-01T11:33:25-07:00 New Revision: 0e06ddf0f6896cfd817a1b97a43b78331e0b1d66 URL: https://github.com/llvm/llvm-project/commit/0e06ddf0f6896cfd817a1b97a43b78331e0b1d66 DIFF: https://github.com/llvm/llvm-project/commit/0e06ddf0f6896cfd817a1b97a43b78331e0b1d66.d

[clang] [OpenMP] Make team reductions less bad (PR #70981)

2023-11-02 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert closed https://github.com/llvm/llvm-project/pull/70981 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [OpenMP][OMPIRBuilder] Add support to omp target parallel (PR #67000)

2023-11-02 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert edited https://github.com/llvm/llvm-project/pull/67000 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [OpenMP][OMPIRBuilder] Add support to omp target parallel (PR #67000)

2023-11-02 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert approved this pull request. LG, commit the two commits separately though https://github.com/llvm/llvm-project/pull/67000 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

[clang] [llvm] [OpenMP][OMPIRBuilder] Add support to omp target parallel (PR #67000)

2023-11-02 Thread Johannes Doerfert via cfe-commits
@@ -1026,25 +1026,25 @@ for (int i = 0; i < argc; ++i) { // CHECK3-NEXT:call void @llvm.experimental.noalias.scope.decl(metadata [[META8:![0-9]+]]) // CHECK3-NEXT:call void @llvm.experimental.noalias.scope.decl(metadata [[META10:![0-9]+]]) // CHECK3-NEXT:call void

[llvm] [clang] Recommit changes to global checks (PR #71171)

2023-11-03 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert commented: I think if the issues with the original commit are resolved, this is good to go. Did you verify we can properly auto-generate files, e.g., in llvm/test/Transforms/Attributor and clang/test/OpenMP? https://github.com/llvm/llvm-project/pull/71171 _

[clang] d3e7a48 - [OpenMP][NFC] Remove a no-op function

2023-11-03 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2023-11-03T10:28:36-07:00 New Revision: d3e7a48cbde060a6dbc1edcb00f375fb2f9405dc URL: https://github.com/llvm/llvm-project/commit/d3e7a48cbde060a6dbc1edcb00f375fb2f9405dc DIFF: https://github.com/llvm/llvm-project/commit/d3e7a48cbde060a6dbc1edcb00f375fb2f9405dc.d

[clang] [llvm] Recommit changes to global checks (PR #71171)

2023-11-03 Thread Johannes Doerfert via cfe-commits
jdoerfert wrote: > > I think if the issues with the original commit are resolved, this is good > > to go. > > Did you verify we can properly auto-generate files, e.g., in > > llvm/test/Transforms/Attributor and clang/test/OpenMP? > > Ah no I did not, I'll do that on Monday. I'd run `./llvm/ut

[clang] [llvm] [clang] report inlining decisions with -Wattribute-{warning|error} (PR #73552)

2023-11-27 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert updated https://github.com/llvm/llvm-project/pull/73552 >From cea177222b421c67dabbe9e267f8b9a4ead4d51e Mon Sep 17 00:00:00 2001 From: Nick Desaulniers Date: Tue, 10 Jan 2023 17:42:18 -0800 Subject: [PATCH 01/15] [clang] report inlining decisions with -Wattribute-{w

[clang] [Clang] CWG2789 Overload resolution with implicit and explicit object… (PR #73493)

2023-11-27 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert updated https://github.com/llvm/llvm-project/pull/73493 >From 3758290904571237c13ba23f2e3f65e58b6598aa Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Mon, 27 Nov 2023 10:48:13 +0100 Subject: [PATCH 1/2] [Clang] CWG2789 Overload resolution with implicit and exp

[openmp] [clang] [OpenMP] Directly use user's grid and block size in kernel language mode (PR #70612)

2023-11-28 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert approved this pull request. LG, see the nit. Also, add a runtime test with bare and verify we stick with values we otherwise would not, e.g., 1 teams and 1024 threads. https://github.com/llvm/llvm-project/pull/70612 _

[clang] [openmp] [OpenMP] Directly use user's grid and block size in kernel language mode (PR #70612)

2023-11-28 Thread Johannes Doerfert via cfe-commits
@@ -14633,6 +14633,26 @@ StmtResult Sema::ActOnOpenMPTargetTeamsDirective(ArrayRef Clauses, } setFunctionHasBranchProtectedScope(); + bool HasBareClause = false; + bool HasThreadLimitClause = false; + bool HasNumTeamsClause = false; + OMPClause *BareClause = nullptr;

[clang] [openmp] [OpenMP] Directly use user's grid and block size in kernel language mode (PR #70612)

2023-11-28 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert edited https://github.com/llvm/llvm-project/pull/70612 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [libcxx] [clang] [openmp] [flang] [OpenMP][NFC] Separate OpenMP/OpenACC specific mapping code (PR #73817)

2023-11-29 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert updated https://github.com/llvm/llvm-project/pull/73817 >From ed1513641d575c4a2881613864c892aff7855a78 Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Tue, 28 Nov 2023 18:51:23 -0800 Subject: [PATCH] [OpenMP][NFC] Separate OpenMP/OpenACC specific mapping code

[llvm] [libcxx] [clang] [openmp] [flang] [OpenMP][NFC] Separate OpenMP/OpenACC specific mapping code (PR #73817)

2023-11-29 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert closed https://github.com/llvm/llvm-project/pull/73817 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[openmp] [clang] [OpenMP] Avoid initializing the KernelLaunchEnvironment if possible (PR #73864)

2023-11-29 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert closed https://github.com/llvm/llvm-project/pull/73864 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [llvm] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2023-12-01 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert updated https://github.com/llvm/llvm-project/pull/67467 >From 6d5d35e1273f595e8a0382053d5183cbce7a9d8a Mon Sep 17 00:00:00 2001 From: David Pizzuto Date: Tue, 26 Sep 2023 10:45:42 -0700 Subject: [PATCH] [clang-tidy] Add bugprone-move-shared-pointer-contents check.

[lldb] [libc] [llvm] [compiler-rt] [clang] [flang] [libcxx] [clang-tools-extra] [openmp] [lld] [mlir] [libunwind] [OpenMP] Improve omp offload profiler (PR #68016)

2023-12-21 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert approved this pull request. LG. Please rebase and merge. https://github.com/llvm/llvm-project/pull/68016 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [openmp] [Clang][OpenMP] Fix mapping of structs to device (PR #75642)

2023-12-21 Thread Johannes Doerfert via cfe-commits
jdoerfert wrote: This fails for me on the host and the AMD GPU: GPU: # | :217:1: note: possible intended match here # | dat.datum[dat.arr[0][0]] = 5 X86: # | :134:1: note: possible intended match here # | dat.datum[dat.arr[0][0]] = 5461 The location that is printed (datum[1]) is uninitialized.

[clang] [OpenMP][USM] Introduces -fopenmp-force-usm flag (PR #76571)

2024-01-03 Thread Johannes Doerfert via cfe-commits
jdoerfert wrote: Documentation missing as well. https://github.com/llvm/llvm-project/pull/76571 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [libc] [lldb] [mlir] [clang] [NFC][ObjectSizeOffset] Use classes instead of std::pair (PR #76882)

2024-01-03 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert commented: Generally, getting rid of the pair is great. I am unsure I understand why we do the base template rather than inheritance. Where is the base template used? If we do inheritance we could avoid duplicating of members and provide default impls that work with

[mlir] [libc] [clang] [lldb] [llvm] [NFC][ObjectSizeOffset] Use classes instead of std::pair (PR #76882)

2024-01-03 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert edited https://github.com/llvm/llvm-project/pull/76882 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libc] [clang] [lldb] [llvm] [mlir] [NFC][ObjectSizeOffset] Use classes instead of std::pair (PR #76882)

2024-01-03 Thread Johannes Doerfert via cfe-commits
@@ -187,80 +187,147 @@ Value *lowerObjectSizeCall( const TargetLibraryInfo *TLI, AAResults *AA, bool MustSucceed, SmallVectorImpl *InsertedInstructions = nullptr); -using SizeOffsetType = std::pair; +/// SizeOffsetType - A base template class for the object size visito

[openmp] [clang-tools-extra] [flang] [libcxx] [libc] [compiler-rt] [clang] [lldb] [lld] [llvm] [PGO][OpenMP] Instrumentation for GPU devices (PR #76587)

2024-01-03 Thread Johannes Doerfert via cfe-commits
@@ -428,13 +428,22 @@ std::string getPGOFuncNameVarName(StringRef FuncName, return VarName; } +bool isGPUProfTarget(const Module &M) { + const auto &triple = M.getTargetTriple(); + return triple.rfind("nvptx", 0) == 0 || triple.rfind("amdgcn", 0) == 0 || + triple.r

[libcxx] [llvm] [lld] [libc] [compiler-rt] [openmp] [lldb] [flang] [clang-tools-extra] [clang] [PGO][OpenMP] Instrumentation for GPU devices (PR #76587)

2024-01-03 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert commented: Can we have tests for this? You can just check for the dump. https://github.com/llvm/llvm-project/pull/76587 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

  1   2   3   4   5   >