Skip to content

SYCLLowerIR: Migrate GlobalOffset tests to new PM#21463

Open
jsji wants to merge 3 commits intointel:syclfrom
jsji:globaloffsetnewpm
Open

SYCLLowerIR: Migrate GlobalOffset tests to new PM#21463
jsji wants to merge 3 commits intointel:syclfrom
jsji:globaloffsetnewpm

Conversation

@jsji
Copy link
Contributor

@jsji jsji commented Mar 7, 2026

Wrap GlobalVMap member in unique_ptr to make GlobalOffsetPass movable.
ValueMap has deleted copy and move constructors, preventing the pass
from being used with the new PassManager which requires movability.

Migrate GlobalOffset tests from legacy PM to new PM for NVPTX and AMDGPU targets. This change aligns with the upstream removal of -bugpoint-enable-legacy-pm (llvm/llvm-project#182320)

Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com

Wrap GlobalVMap member in unique_ptr to make GlobalOffsetPass movable.
ValueMap has deleted copy and move constructors, preventing the pass
from being used with the new PassManager which requires movability.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@jsji jsji requested a review from a team as a code owner March 7, 2026 02:28
@jsji jsji self-assigned this Mar 7, 2026
Copy link
Contributor

@YuriPlyakhin YuriPlyakhin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, couple nits.

Co-authored-by: Yury Plyakhin <yury.plyakhin@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants