-
Notifications
You must be signed in to change notification settings - Fork 15.1k
[OpenMP][Clang] Use ATTACH
map-type for list-items with base-pointers.
#153683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
abhinavgaba
wants to merge
109
commits into
llvm:main
Choose a base branch
from
abhinavgaba:map-ptr-array-section-using-attach-maptype
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+5,418
−3,889
Open
Changes from 107 commits
Commits
Show all changes
109 commits
Select commit
Hold shift + click to select a range
d867ab3
[Clang][OpenMP] Capture mapped pointers on `target` by reference.
abhinavgaba 97b2dff
Add another test, minor clang-format fix.
abhinavgaba a31ea2a
Update the comparator for sort, plus minor additions to offload tests.
abhinavgaba cc90643
[WIP] Use ATTACH maps for array-sections/subscripts on pointers.
abhinavgaba 6ba75e1
[WIP] Commit some more non-debug print changes.
abhinavgaba 001da09
[NFC][Clang] Refactor mapinfo generation for captured vars on target.
abhinavgaba 1ebb7a9
Handle mapping of captured pointers before any dereference of them.
abhinavgaba 7799d0a
No need to change the sorting since we now handle mapping of pointers…
abhinavgaba 9f61909
[NFC][Clang] Refactor mapinfo generation for captured vars on target.
abhinavgaba 5261578
Minor clang-format fix.
abhinavgaba 145160b
[NFC][OpenMP] Add tests for mapping pointers and their dereferences.
abhinavgaba 15e7d50
Minor clang-format fix.
abhinavgaba 9a2fabb
Merge branch 'capture-info-refactor' into tgt-capture-mapped-ptrs-by-ref
abhinavgaba 78fd5e5
Merge branch 'nfc-lit-test-updates-for-incoming-pr' into tgt-capture-…
abhinavgaba b1540b3
Minor NFC update to a test.
abhinavgaba f1746b6
Update tests with the current output.
abhinavgaba 9408873
Merge branch 'tgt-capture-mapped-ptrs-by-ref' into map-ptr-array-sect…
abhinavgaba 3ce181f
Fix findAttachComponent
abhinavgaba 50c8d0e
Fix build issues, keep debug prints
abhinavgaba c23e01f
Fix handling of array-sections in findAttachComponent
abhinavgaba 6c2df5c
Merge remote-tracking branch 'origin/main' into tgt-capture-mapped-pt…
abhinavgaba 9adf9a8
Fix one test.
abhinavgaba ca0c381
Merge branch 'tgt-capture-mapped-ptrs-by-ref' into map-ptr-array-sect…
abhinavgaba 36f6d9b
Fix star case. Update some tests.
abhinavgaba 8349a49
Refactor AddAttachEntry
abhinavgaba eaf332f
Delay addition of attach when we populate PartialStruct.
abhinavgaba da55bf8
Update some more tests.
abhinavgaba 5d72174
[WIP][Offload] Introduce ATTACH map-type support for pointer attachment.
abhinavgaba fcdc13a
More test updates
abhinavgaba c35d7a0
[WIP][Offload] Introduce ATTACH map-type support for pointer attachment.
abhinavgaba b645d58
Minor format/stylistic changes.
abhinavgaba 13faca1
Minor formatting changes.
abhinavgaba 54b2ae4
Remove debug prints.
abhinavgaba 00b0767
Limit attach map-type generation to only map-entering constructs.
abhinavgaba baa9dbb
Minor clean-up
abhinavgaba c0d20e9
Minor NFC changes.
abhinavgaba a9b94d4
Use lb instead of base when attaching to a partialstruct.
abhinavgaba f1acc37
[NFC] Move computation of ptr/ptee addrs outside the loop.
abhinavgaba 976470c
[NFC] Return Expr* from findAttachBasePtr.
abhinavgaba fd2d077
[NFC] Minor renaming/comment changes.
abhinavgaba fdced7d
Fix call to getAttachptrPteeAddrs.
abhinavgaba d791cb3
Remove unnecessary include.
abhinavgaba df62d2e
No need to compute the pointee address from scratch.
abhinavgaba 63d2ca4
Update tests after avoiding creating pointee addr, and a minor commen…
abhinavgaba c9f8c0a
Move initialization of FinalLowestElem earlier.
abhinavgaba f044a56
Improve readability, add some more comments.
abhinavgaba de8d968
Merge remote-tracking branch 'upstream/main' into libomptarget-introd…
abhinavgaba 168a2b8
add dataFence to plugin interface
adurang 2370215
Clang-format fixes.
abhinavgaba 2806389
Insert a data-fence before the first pointer-attachment.
abhinavgaba 09c9cf3
Merge branch 'libomptarget-introduce-attach-support' into map-ptr-arr…
abhinavgaba e411f29
Update new upstream test.
abhinavgaba 40320d2
Use unique_ptr, avoid c-style casts.
abhinavgaba fcdb2f5
Use unique_ptr, avoid c-style casts.
abhinavgaba 39e4ab1
Add newline at end of file.
abhinavgaba 9462953
Cache the attach-ptr-expr computation result, and reuse it if needed.
abhinavgaba 371918e
Clean-up some debug prints.
abhinavgaba eb35a3e
Clean-up some debug prints.
abhinavgaba f1a4e80
[NFC][Offload] Add missing maps to OpenMP offloading tests.
abhinavgaba c15b2b9
[NFC][Clang][OpenMP] Extract collection of component-lists out of gen…
abhinavgaba 4517cd2
Do pointee lookup and release its TPR before pointer lookup.
abhinavgaba d2e6a7c
Expand to remove the restriction to only support simple vars as attac…
abhinavgaba a78e9b0
Do pointee lookup and release its TPR before pointer lookup.
abhinavgaba 4e3956c
Add an attach-ptr-expr comparator and use it to group components-list…
abhinavgaba 3022b9a
Fix comparison of attach-ptrs, group component-lists by attach-ptr for
abhinavgaba 788eb06
Fix matching of use_device_ptr/addr with existing map clauses.
abhinavgaba 3dd11c1
Fix non-conforming tests.
abhinavgaba af72f97
Apply clang-format.
abhinavgaba 2b31572
Add a fixme.
abhinavgaba dcd65fc
Remove debug-prints
abhinavgaba cb21ea4
Use a lambda to avoid uninitialized TgtPteeBegin.
abhinavgaba ac04da3
Merge remote-tracking branch 'upstream/main' into libomptarget-introd…
abhinavgaba 63531f8
Remove debug prints. Update some tests.
abhinavgaba 6c3def5
Merge branch 'libomptarget-introduce-attach-support' into map-ptr-arr…
abhinavgaba fb6a48c
Merge remote-tracking branch 'upstream/main' into map-ptr-array-secti…
abhinavgaba 502dbb4
Update copy-gaps tests.
abhinavgaba 9b1336c
Fix member-of field update, update some more tests.
abhinavgaba b84885a
Merge remote-tracking branch 'upstream/main' into map-ptr-array-secti…
abhinavgaba e5d22be
Fix use_device_ptr codegen and test.
abhinavgaba a4be53c
Re-add missing non-contiguous hanlding code, update target update tests.
abhinavgaba 166e90e
Update use_device_ptr/addr handling, add an error for p[0] case, move…
abhinavgaba b86bd0a
[NFC][OpenMP] Add various combinations of use_device_ptr/addr tests.
abhinavgaba bf998da
Update use_device_ptr/addr tests.
abhinavgaba 398a3a6
Clang-format fixes
abhinavgaba 3e4d99b
Add two empty lines.
abhinavgaba a49143a
Clang-format renamed files as well.
abhinavgaba 609a53c
Merge remote-tracking branch 'upstream/main' into add-use-device-ptr-…
abhinavgaba f7ef799
Merge branch 'add-use-device-ptr-addr-tests' into map-ptr-array-secti…
abhinavgaba b0170f7
Remove XFAIL from new uda/udp tests.
abhinavgaba 63d7c8f
Add an implicit map of attach-ptr on a target construct.
abhinavgaba ba9b90c
Merge remote-tracking branch 'upstream/main' into map-ptr-array-secti…
abhinavgaba 60c0ac2
Update header comment showing various maps in CGOpenMPRuntime.cpp
abhinavgaba 38bf1a0
Minor NFC, comment changes.
abhinavgaba 8b18577
Fix another obsolete test.
abhinavgaba 84f1173
Remove some obsolete code, update some comments.
abhinavgaba 6c0f62e
Only add implicit maps for base-ptr for 's.p[0:1]', not for 'ps->p[0:…
abhinavgaba c5a4be6
Update comment showing maps in CGOpenMPRuntime.
abhinavgaba 087945a
Update test for addr error messages for array-section operands.
abhinavgaba 707dfce
[Offload] Update LIBOMPTARGET_INFO text for "attach" map-type.
abhinavgaba 2e9dde2
Fix pointer-type used to load from attach-ptr-addr.
abhinavgaba 1cc6abf
Emit a single attach entry per attach-ptr group.
abhinavgaba a361e99
Apply clang-format
abhinavgaba 3b11e7b
Minor comment change.
abhinavgaba 1c93b72
Merge remote-tracking branch 'upstream/main' into map-ptr-array-secti…
abhinavgaba 4ae1aa6
Update tests after merging upstream changes
abhinavgaba ff9ca6e
Add/update some test comments.
abhinavgaba f42f6a8
Remove some unnecessary braces
abhinavgaba 9d5c26c
Use order of computation, instead of exprLocs for comparing attach-pt…
abhinavgaba 936f0ec
Merge remote-tracking branch 'origin/main' into map-ptr-array-section…
abhinavgaba File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The helper/utility functions can be reviewed separately as part of this PR, if that is preferable: #155625.