File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
go/ql/lib/semmle/go/dataflow Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -198,6 +198,11 @@ class SsaExplicitDefinition extends SsaDefinition, TExplicitDef {
198198
199199 override Location getLocation ( ) { result = this .getInstruction ( ) .getLocation ( ) }
200200
201+ /**
202+ * Gets the first instruction that the value of this `SsaDefinition` can
203+ * reach without passing through any other instructions, but possibly through
204+ * phi nodes.
205+ */
201206 IR:: Instruction getAFirstUse ( ) { firstUse ( this , result ) }
202207}
203208
@@ -413,4 +418,11 @@ DataFlow::Node getASimilarReadNode(DataFlow::Node node) {
413418 )
414419}
415420
421+ /**
422+ * Gets an instruction such that `pred` and `result` form an adjacent
423+ * use-use-pair of the same`SsaSourceVariable`, that is, the value read in
424+ * `pred` can reach `result` without passing through any other use or any SSA
425+ * definition of the variable except for phi nodes and uncertain implicit
426+ * updates.
427+ */
416428IR:: Instruction getAnAdjacentUse ( IR:: Instruction pred ) { adjacentUseUse ( pred , result ) }
You can’t perform that action at this time.
0 commit comments