ptx-90-parser 0.4.4

Parse NVIDIA PTX 9.0 assembly into a structured AST and explore modules via a CLI.
Documentation
1
2
3
4
5
6
7
8
9
10
11
// TreeDisplay implementations for instruction types

use super::{TreeDisplay, TreeFormatter};
use crate::r#type::instruction::Inst;

impl TreeDisplay for Inst {
    fn tree_display(&self, f: &mut TreeFormatter, _source: &str) -> std::fmt::Result {
        // Display debug representation of the instruction
        f.root(&format!("{:?}", self))
    }
}