File tree Expand file tree Collapse file tree
cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/gvn Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ private import internal.ValueNumberingImports
2+ private import ValueNumbering
3+
4+ /**
5+ * Provides additional information about value numbering in IR dumps.
6+ */
7+ class ValueNumberPropertyProvider extends IRPropertyProvider {
8+ override string getInstructionProperty ( Instruction instr , string key ) {
9+ exists ( ValueNumber vn |
10+ vn = valueNumber ( instr ) and
11+ key = "valnum" and
12+ if strictcount ( vn .getAnInstruction ( ) ) > 1
13+ then result = vn .getDebugString ( )
14+ else result = "unique"
15+ )
16+ }
17+ }
Original file line number Diff line number Diff line change 11private import internal.ValueNumberingInternal
22private import internal.ValueNumberingImports
33
4- /**
5- * Provides additional information about value numbering in IR dumps.
6- */
7- class ValueNumberPropertyProvider extends IRPropertyProvider {
8- override string getInstructionProperty ( Instruction instr , string key ) {
9- exists ( ValueNumber vn |
10- vn = valueNumber ( instr ) and
11- key = "valnum" and
12- if strictcount ( vn .getAnInstruction ( ) ) > 1
13- then result = vn .getDebugString ( )
14- else result = "unique"
15- )
16- }
17- }
18-
194/**
205 * The value number assigned to a particular set of instructions that produce equivalent results.
216 */
You can’t perform that action at this time.
0 commit comments