[PATCH] D122908: [clang][dataflow] Add support for clang's `__builtin_expect`.

Gábor Horváth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 1 09:08:10 PDT 2022


xazax.hun accepted this revision.
xazax.hun added a comment.

Nice!

Speaking of builtins, it might be great to add tests for `__builtin_unreachable`, `__builtin_trap`, `__builtin_debugtrap`. The CFG might already have the right shape so we might not need to add any code to support them. But it would be nice to know :) Maybe we could even add a comment to `VisitCallExpr` why those wouldn't need explicit support.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122908/new/

https://reviews.llvm.org/D122908



More information about the cfe-commits mailing list