Skip to content

Commit 8225daf

Browse files
authored
Merge pull request #122 from dave-bartolomeo/dave/IRShuffle
Approved by jbj
2 parents fdc20e8 + 4a1d04b commit 8225daf

File tree

110 files changed

+187
-175
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+187
-175
lines changed

config/identical-files.json

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,58 @@
11
{
22
"C++ IR Instruction": [
3-
"cpp/ql/src/semmle/code/cpp/ir/internal/Instruction.qll",
4-
"cpp/ql/src/semmle/code/cpp/ssa/internal/ssa/Instruction.qll",
5-
"cpp/ql/src/semmle/code/cpp/ssa/internal/aliased_ssa/Instruction.qll"
3+
"cpp/ql/src/semmle/code/cpp/ir/implementation/raw/Instruction.qll",
4+
"cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/Instruction.qll",
5+
"cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/Instruction.qll"
66
],
77
"C++ IR IRBlock": [
8-
"cpp/ql/src/semmle/code/cpp/ir/internal/IRBlock.qll",
9-
"cpp/ql/src/semmle/code/cpp/ssa/internal/ssa/IRBlock.qll",
10-
"cpp/ql/src/semmle/code/cpp/ssa/internal/aliased_ssa/IRBlock.qll"
8+
"cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IRBlock.qll",
9+
"cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/IRBlock.qll",
10+
"cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/IRBlock.qll"
1111
],
1212
"C++ IR IRVariable": [
13-
"cpp/ql/src/semmle/code/cpp/ir/internal/IRVariable.qll",
14-
"cpp/ql/src/semmle/code/cpp/ssa/internal/ssa/IRVariable.qll",
15-
"cpp/ql/src/semmle/code/cpp/ssa/internal/aliased_ssa/IRVariable.qll"
13+
"cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IRVariable.qll",
14+
"cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/IRVariable.qll",
15+
"cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/IRVariable.qll"
1616
],
1717
"C++ IR FunctionIR": [
18-
"cpp/ql/src/semmle/code/cpp/ir/internal/FunctionIR.qll",
19-
"cpp/ql/src/semmle/code/cpp/ssa/internal/ssa/FunctionIR.qll",
20-
"cpp/ql/src/semmle/code/cpp/ssa/internal/aliased_ssa/FunctionIR.qll"
18+
"cpp/ql/src/semmle/code/cpp/ir/implementation/raw/FunctionIR.qll",
19+
"cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/FunctionIR.qll",
20+
"cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/FunctionIR.qll"
2121
],
2222
"C++ IR OperandTag": [
23-
"cpp/ql/src/semmle/code/cpp/ir/internal/OperandTag.qll",
24-
"cpp/ql/src/semmle/code/cpp/ssa/internal/ssa/OperandTag.qll",
25-
"cpp/ql/src/semmle/code/cpp/ssa/internal/aliased_ssa/OperandTag.qll"
23+
"cpp/ql/src/semmle/code/cpp/ir/implementation/raw/OperandTag.qll",
24+
"cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/OperandTag.qll",
25+
"cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/OperandTag.qll"
2626
],
2727
"C++ IR IRImpl": [
28-
"cpp/ql/src/semmle/code/cpp/ir/internal/IRImpl.qll",
29-
"cpp/ql/src/semmle/code/cpp/ssa/internal/ssa/IRImpl.qll",
30-
"cpp/ql/src/semmle/code/cpp/ssa/internal/aliased_ssa/IRImpl.qll"
28+
"cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IR.qll",
29+
"cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/IR.qll",
30+
"cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/IR.qll"
3131
],
3232
"C++ IR IRSanityImpl": [
33-
"cpp/ql/src/semmle/code/cpp/ir/internal/IRSanityImpl.qll",
34-
"cpp/ql/src/semmle/code/cpp/ssa/internal/ssa/IRSanityImpl.qll",
35-
"cpp/ql/src/semmle/code/cpp/ssa/internal/aliased_ssa/IRSanityImpl.qll"
33+
"cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IRSanity.qll",
34+
"cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/IRSanity.qll",
35+
"cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/IRSanity.qll"
3636
],
3737
"C++ IR PrintIRImpl": [
38-
"cpp/ql/src/semmle/code/cpp/ir/internal/PrintIRImpl.qll",
39-
"cpp/ql/src/semmle/code/cpp/ssa/internal/ssa/PrintIRImpl.qll",
40-
"cpp/ql/src/semmle/code/cpp/ssa/internal/aliased_ssa/PrintIRImpl.qll"
38+
"cpp/ql/src/semmle/code/cpp/ir/implementation/raw/PrintIR.qll",
39+
"cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/PrintIR.qll",
40+
"cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/PrintIR.qll"
4141
],
4242
"C++ SSA AliasAnalysis": [
43-
"cpp/ql/src/semmle/code/cpp/ssa/internal/ssa/AliasAnalysis.qll",
44-
"cpp/ql/src/semmle/code/cpp/ssa/internal/aliased_ssa/AliasAnalysis.qll"
43+
"cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/internal/AliasAnalysis.qll",
44+
"cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/internal/AliasAnalysis.qll"
4545
],
4646
"C++ SSA SimpleSSA": [
47-
"cpp/ql/src/semmle/code/cpp/ssa/internal/ssa/SimpleSSA.qll",
48-
"cpp/ql/src/semmle/code/cpp/ssa/internal/aliased_ssa/SimpleSSA.qll"
47+
"cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/internal/SimpleSSA.qll",
48+
"cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/internal/SimpleSSA.qll"
4949
],
5050
"C++ SSA IRBlockConstruction": [
51-
"cpp/ql/src/semmle/code/cpp/ssa/internal/ssa/IRBlockConstruction.qll",
52-
"cpp/ql/src/semmle/code/cpp/ssa/internal/aliased_ssa/IRBlockConstruction.qll"
51+
"cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/internal/IRBlockConstruction.qll",
52+
"cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/internal/IRBlockConstruction.qll"
5353
],
5454
"C++ SSA SSAConstruction": [
55-
"cpp/ql/src/semmle/code/cpp/ssa/internal/ssa/SSAConstruction.qll",
56-
"cpp/ql/src/semmle/code/cpp/ssa/internal/aliased_ssa/SSAConstruction.qll"
55+
"cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/internal/SSAConstruction.qll",
56+
"cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/internal/SSAConstruction.qll"
5757
]
5858
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
import internal.IRImpl
1+
// Most queries should operate on the aliased SSA IR, so that's what we expose
2+
// publically as the "IR".
3+
import implementation.aliased_ssa.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.IRSanityImpl
8+
import implementation.aliased_ssa.IRSanity

cpp/ql/src/semmle/code/cpp/ir/Opcode.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 implementation.aliased_ssa.PrintIR

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

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.

cpp/ql/src/semmle/code/cpp/ir/MemoryAccessKind.qll renamed to cpp/ql/src/semmle/code/cpp/ir/implementation/MemoryAccessKind.qll

File renamed without changes.
File renamed without changes.

cpp/ql/src/semmle/code/cpp/ir/TempVariableTag.qll renamed to cpp/ql/src/semmle/code/cpp/ir/implementation/TempVariableTag.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import cpp
2-
private import internal.TempVariableTag
2+
private import semmle.code.cpp.ir.internal.TempVariableTag
33

44
class TempVariableTag extends TTempVariableTag {
55
string toString() {

0 commit comments

Comments
 (0)