Page MenuHomePhabricator

[Sema, CodeGen] Implement [[likely]] and [[unlikely]] in IfStmt
Needs ReviewPublic

Authored by Mordante on Sun, Aug 2, 4:42 AM.

Details

Summary

This contains the initial part of the implementation for the C++20 likelihood attributes.
For now it only handles them in an IfStmt, I want to add support for other statements after this one is done.

I was unsure whether it's preferred to have one patch for both the Sema and CodeGen part. If wanted I can split them easily.

Diff Detail

Event Timeline

Mordante created this revision.Sun, Aug 2, 4:42 AM
Herald added a project: Restricted Project. · View Herald Transcript
Mordante requested review of this revision.Sun, Aug 2, 4:42 AM