pub struct Body {
pub blocks: Vec<Block>,
pub root: Option<NodeId>,
pub matched: Vec<(String, NodeId)>,
pub params: Vec<ParamAttrs>,
pub ret_noundef: bool,
pub ret_range: Option<(String, String)>,
pub ret_nofpclass: u16,
pub returns_value: bool,
}Expand description
A program: the source or the target.
Fields§
§blocks: Vec<Block>Its blocks; the first is the entry.
root: Option<NodeId>A transformation’s root: the instruction whose value the target must refine.
matched: Vec<(String, NodeId)>Registers besides the root, matched by position between the source and the target, with their names: the target’s must refine the source’s too (the transformation syntax: each register of the source that the target defines again, since the rewrite replaces it at its other uses).
params: Vec<ParamAttrs>The attributes this program declares on each input, in Transform::inputs order
(the function syntax; empty in the transformation syntax). Each program sees an input
through its own: a target that adds noundef or range to a parameter is checked
with them, the source’s never apply to the target.
ret_noundef: boolnoundef on the return value: returning poison is undefined behavior.
ret_range: Option<(String, String)>range(ty lo, hi) on the return value: outside it, the value is poison.
ret_nofpclass: u16nofpclass(…) on the return value: in those classes, the value is poison.
returns_value: boolWhether the program returns a value (a function returning void does not).