ptx_parser/pretty_print/instruction.rs
1// TreeDisplay implementations for instruction types
2
3use super::{TreeDisplay, TreeFormatter};
4use crate::r#type::instruction::Inst;
5
6impl TreeDisplay for Inst {
7 fn tree_display(&self, f: &mut TreeFormatter, _source: &str) -> std::fmt::Result {
8 // Display debug representation of the instruction
9 f.root(&format!("{:?}", self))
10 }
11}