llir-opt
0.0.1
Low-Level Post-Link Optimiser for OCaml and C
|
#include <core/annot.h>
Public Member Functions | |
Probability (uint32_t n, uint32_t d) | |
Constructs an annotation carrying a probability. | |
uint32_t | GetNumerator () const |
Returns the numerator. | |
uint32_t | GetDenumerator () const |
Returns the denominator. | |
bool | operator== (const Probability &that) const |
Checks if two annotations are equal. | |
![]() | |
Annot (Kind kind) | |
Creates a new annotation. | |
bool | Is (Kind kind) const |
Checks if the annotation is of a given kind. | |
Kind | GetKind () const |
Returns the annotation kind. | |
bool | operator== (const Annot &annot) const |
Checks if two annotations are equal. | |
Static Public Attributes | |
static constexpr Annot::Kind | kAnnotKind = Kind::PROBABILITY |
Additional Inherited Members | |
![]() | |
enum | Kind { PROBABILITY = 0, CAML_FRAME = 1, CXX_LSDA = 2 } |
Annotates a conditional jump with the probability of the taken branch.