Skip to content

Commit 97cfbd9

Browse files
C++: "IR" means "Aliased SSA IR"
This change makes the public IR.qll module resolve to the flavor of the IR that we want queries to use. Today, this is the aliased SSA flavor of the IR. Should we add additional IR iterations in the future, we'll update IR.qll to resolve to whichever one we consider the default. I moved the PrintIR.ql and IRSanity.ql queries into the internal directories of the corresponding flavors. There's still a PrintIR.ql and an IRSanity.ql in the public IR directory, which use the same IR flavor as the public IR.qll.
1 parent 9fd5f26 commit 97cfbd9

26 files changed

+33
-20
lines changed

cpp/ql/src/semmle/code/cpp/ir/AliasedSSAIR.qll

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
import internal.raw_ir.IR
1+
// Most queries should operate on the aliased SSA IR, so that's what we expose
2+
// publically as the "IR".
3+
import internal.aliased_ssa_ir.IR

cpp/ql/src/semmle/code/cpp/ir/IRSanity.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
* @id cpp/ir-sanity-check
66
*/
77

8-
import internal.raw_ir.IRSanity
8+
import internal.aliased_ssa_ir.IRSanity

cpp/ql/src/semmle/code/cpp/ir/PrintAliasedSSAIR.qll

Lines changed: 0 additions & 1 deletion
This file was deleted.

cpp/ql/src/semmle/code/cpp/ir/PrintIR.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
* @kind graph
66
*/
77

8-
import PrintIR
8+
import internal.aliased_ssa_ir.PrintIR

cpp/ql/src/semmle/code/cpp/ir/PrintIR.qll

Lines changed: 0 additions & 1 deletion
This file was deleted.

cpp/ql/src/semmle/code/cpp/ir/PrintSSAIR.qll

Lines changed: 0 additions & 1 deletion
This file was deleted.

cpp/ql/src/semmle/code/cpp/ir/SSAIR.qll

Lines changed: 0 additions & 1 deletion
This file was deleted.

cpp/ql/src/semmle/code/cpp/ir/AliasedSSAIRSanity.ql renamed to cpp/ql/src/semmle/code/cpp/ir/internal/aliased_ssa_ir/IRSanity.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
* @id cpp/aliased-ssa-ir-sanity-check
66
*/
77

8-
import internal.aliased_ssa_ir.IRSanity
8+
import IRSanity

cpp/ql/src/semmle/code/cpp/ir/PrintAliasedSSAIR.ql renamed to cpp/ql/src/semmle/code/cpp/ir/internal/aliased_ssa_ir/PrintIR.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
* @kind graph
66
*/
77

8-
import PrintAliasedSSAIR
8+
import PrintIR

0 commit comments

Comments
 (0)