8000 C++: Expose 'isBusyDef'. · github/codeql@f1b4e05 · GitHub
[go: up one dir, main page]

Skip to content

Commit f1b4e05

Browse files
committed
C++: Expose 'isBusyDef'.
1 parent e51cb47 commit f1b4e05

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

cpp/ql/lib/semmle/code/cpp/ir/implementation/aliased_ssa/internal/AliasedSSA.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ private int numberOfOverlappingUses(MemoryLocation0 def) {
874874
* Holds if `def` is a busy definition. That is, it has a large number of
875875
* overlapping uses.
876876
*/
877-
private predicate isBusyDef(MemoryLocation0 def) { numberOfOverlappingUses(def) > 1024 }
877+
predicate isBusyDef(MemoryLocation0 def) { numberOfOverlappingUses(def) > 1024 }
878878

879879
/** Holds if `use` is a use that overlaps with a busy definition. */
880880
private predicate useOverlapWithBusyDef(MemoryLocation0 use) {

cpp/ql/lib/semmle/code/cpp/ir/implementation/unaliased_ssa/internal/SimpleSSA.qll

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,9 @@ int getStartBitOffset(MemoryLocation location) { none() }
143143

144144
/** Gets the end bit offset of a `MemoryLocation`, if any. */
145145
int getEndBitOffset(MemoryLocation location) { none() }
146+
147+
/**
148+
* Holds if `def` is a busy definition. That is, it has a large number of
149+
* overlapping uses.
150+
*/
151+
predicate isBusyDef(MemoryLocation def) { none() }

0 commit comments

Comments
 (0)
0