C++: In dataflow use the AST representation of IR Instructions and Operands

This commit is contained in:
Jeroen Ketema
2023-01-20 09:20:34 +01:00
parent 39d44adbc5
commit f628152be1
22 changed files with 1548 additions and 1450 deletions

View File

@@ -357,6 +357,8 @@ class InstructionNode extends Node0 {
/** Gets the instruction corresponding to this node. */
Instruction getInstruction() { result = instr }
override string toStringImpl() { result = instr.getAst().toString() }
}
/**
@@ -370,6 +372,8 @@ class OperandNode extends Node, Node0 {
/** Gets the operand corresponding to this node. */
Operand getOperand() { result = node.getOperand() }
override string toStringImpl() { result = op.getDef().getAst().toString() }
}
/**