Is it possible to match numbers, prepended by a
%, e.g. variable
%101 and surround every occurrence of that number in color-matched boxes? I am trying to make it easier for readers to follow the usages of a numbered variable.
%17 = tail call i8* @kvmalloc_node(i64 1808, i32 3520, i32 %16) #15 %18 = bitcast i8* %17 to %struct.mapped_device* ; ... %101 = getelementptr inbounds i8, i8* %17, i64 224 %102 = bitcast i8* %101 to void (%struct.work_struct*)** store void (%struct.work_struct*)* @dm_wq_work, void (%struct.work_struct*)** %102, align 8
Which results in:
For example: The store instruction uses variable
%102 which is defined one line above. Variable
%101 which is also defined one line above. My goal is to make it more obvious and highlight those variables in the same colors so one can better see where the definitions and the usages are.
The idea of boxed-in variables with the box frame in matching colors is an idea. I'm looking for any possible ways to at least highlight it from the code listing.