Skip to content

Conversation

maksimsab
Copy link
Contributor

@maksimsab maksimsab commented Oct 2, 2025

LLVM uses if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) for decoration of dumping methods. Dumping is used for debugging but not for testing. Therefore, its usage is removed.

@maksimsab maksimsab requested a review from a team as a code owner October 2, 2025 13:58
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.

I see title is saying Decorate dump methods according to LLVM guideline, but in the code I see that in addition to that, it seems dumping of entry points was removed from ESIMD Post split processing. Is it by intention? Could you please provide more details in PR description maybe?

@maksimsab
Copy link
Contributor Author

Some context: this change fixes urgent issue with coverage build which is being built with -DNDEBUG=1 -DLLVM_ENABLE_DUMP=1 parameters.

Copy link
Contributor

@maarquitos14 maarquitos14 left a comment

Choose a reason for hiding this comment

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

LGTM, just a question.

Linked.rebuildEntryPoints(Names);
Result.clear();
Result.emplace_back(std::move(Linked));
DUMP_ENTRY_POINTS(Result.back().entries(), Result.back().Name.c_str(), 4);
Copy link
Contributor

Choose a reason for hiding this comment

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

Just double checking that we don't need this anymore, not even under the appropriate ifdefs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could use LLVM_DEBUG(...) for that. I just don't know whether anyone really needs that.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm good with removing it, just wanted to make sure it was intended.

Copy link
Contributor

github-actions bot commented Oct 6, 2025

@intel/llvm-gatekeepers please consider merging

@maksimsab
Copy link
Contributor Author

@intel/llvm-gatekeepers Could we please merge that?

@dm-vodopyanov dm-vodopyanov merged commit e3028dc into intel:sycl Oct 7, 2025
46 of 47 checks passed
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.

5 participants