From f17164f56f14b1b43c89a5971c830ef9f96b9ef9 Mon Sep 17 00:00:00 2001 From: Chris Fallin Date: Sun, 12 Feb 2023 13:50:58 -0800 Subject: [PATCH] Add descriptive-name field to blocks. --- src/ir/func.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ir/func.rs b/src/ir/func.rs index cf76637..a5d638f 100644 --- a/src/ir/func.rs +++ b/src/ir/func.rs @@ -379,6 +379,8 @@ pub struct BlockDef { pub pos_in_pred_succ: Vec, /// Type and Value for each blockparam. pub params: Vec<(Type, Value)>, + /// Descriptive name for the block, if any. + pub desc: String, } #[derive(Clone, Debug, PartialEq, Eq)]