struct BrCond [src]

Fields

cond: Value
then: Block.Index
@"else": Block.Index
weights: Weights

Members

Source

pub const BrCond = struct { cond: Value, then: Block.Index, @"else": Block.Index, weights: Weights, pub const Weights = enum(u32) { // We can do this as metadata indices 0 and 1 are reserved. none = 0, unpredictable = 1, /// These values should be converted to `Metadata` to be used /// in a `prof` annotation providing branch weights. _, }; }