Add ability to parse likely flags for ifs in Cmm.
ClosedPublic

Authored by AndreasK on Jan 16 2018, 4:38 AM.

Details

Summary

Adding the ability to parse likely flags in Cmm allows better codegen
for cmm files.

Test Plan

ci

AndreasK created this revision.Jan 16 2018, 4:38 AM
bgamari accepted this revision.Jan 21 2018, 10:59 AM

The syntax is a bit funky but whatever works. In general I do wish that Cmm syntax were better documented, but that is a rather orthogonal concern.

This revision is now accepted and ready to land.Jan 21 2018, 10:59 AM

The syntax is a bit funky but whatever works. In general I do wish that Cmm syntax were better documented, but that is a rather orthogonal concern.

I simply went with with the pretty printer already used. I'm only aware of gcc's syntax otherwise __builtin_expect(!!(x), 1) which seemed even worse.

This revision was automatically updated to reflect the committed changes.