pub struct Attachment {
pub kind: u64,
pub node: MetadataId,
}Expand description
A metadata node attached to an instruction or a function: the kind (the id Module::kinds names) and the node.
In the games’ programs the kinds are dx.controlflow.hints, llvm.loop, tbaa, noalias, alias.scope, range
and dx.precise.
Fields§
§kind: u64The metadata kind id (dx.precise, tbaa, … by Module::kind_name).
node: MetadataIdThe attached node, an id into Module::metadata.
Trait Implementations§
Source§impl Clone for Attachment
impl Clone for Attachment
impl Copy for Attachment
Source§impl Debug for Attachment
impl Debug for Attachment
impl Eq for Attachment
Source§impl PartialEq for Attachment
impl PartialEq for Attachment
impl StructuralPartialEq for Attachment
Auto Trait Implementations§
impl Forget for Attachment
impl Freeze for Attachment
impl RefUnwindSafe for Attachment
impl Send for Attachment
impl Sync for Attachment
impl Unpin for Attachment
impl UnsafeUnpin for Attachment
impl UnwindSafe for Attachment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more