Skip to content

Commit 25ba6ca

Browse files
authored
Merge pull request #4637 from jbj/temp-objects-perf-fixup
C++: pragma[noinline] parameter index predicates
2 parents 9f2eb84 + b8b1f0c commit 25ba6ca

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/Instruction.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,6 +1577,7 @@ class CallInstruction extends Instruction {
15771577
/**
15781578
* Gets the argument operand at the specified index.
15791579
*/
1580+
pragma[noinline]
15801581
final PositionalArgumentOperand getPositionalArgumentOperand(int index) {
15811582
result = getAnOperand() and
15821583
result.getIndex() = index
@@ -1585,6 +1586,7 @@ class CallInstruction extends Instruction {
15851586
/**
15861587
* Gets the argument at the specified index.
15871588
*/
1589+
pragma[noinline]
15881590
final Instruction getPositionalArgument(int index) {
15891591
result = getPositionalArgumentOperand(index).getDef()
15901592
}

cpp/ql/src/semmle/code/cpp/ir/implementation/raw/Instruction.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,6 +1577,7 @@ class CallInstruction extends Instruction {
15771577
/**
15781578
* Gets the argument operand at the specified index.
15791579
*/
1580+
pragma[noinline]
15801581
final PositionalArgumentOperand getPositionalArgumentOperand(int index) {
15811582
result = getAnOperand() and
15821583
result.getIndex() = index
@@ -1585,6 +1586,7 @@ class CallInstruction extends Instruction {
15851586
/**
15861587
* Gets the argument at the specified index.
15871588
*/
1589+
pragma[noinline]
15881590
final Instruction getPositionalArgument(int index) {
15891591
result = getPositionalArgumentOperand(index).getDef()
15901592
}

cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/Instruction.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,6 +1577,7 @@ class CallInstruction extends Instruction {
15771577
/**
15781578
* Gets the argument operand at the specified index.
15791579
*/
1580+
pragma[noinline]
15801581
final PositionalArgumentOperand getPositionalArgumentOperand(int index) {
15811582
result = getAnOperand() and
15821583
result.getIndex() = index
@@ -1585,6 +1586,7 @@ class CallInstruction extends Instruction {
15851586
/**
15861587
* Gets the argument at the specified index.
15871588
*/
1589+
pragma[noinline]
15881590
final Instruction getPositionalArgument(int index) {
15891591
result = getPositionalArgumentOperand(index).getDef()
15901592
}

csharp/ql/src/experimental/ir/implementation/raw/Instruction.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,6 +1577,7 @@ class CallInstruction extends Instruction {
15771577
/**
15781578
* Gets the argument operand at the specified index.
15791579
*/
1580+
pragma[noinline]
15801581
final PositionalArgumentOperand getPositionalArgumentOperand(int index) {
15811582
result = getAnOperand() and
15821583
result.getIndex() = index
@@ -1585,6 +1586,7 @@ class CallInstruction extends Instruction {
15851586
/**
15861587
* Gets the argument at the specified index.
15871588
*/
1589+
pragma[noinline]
15881590
final Instruction getPositionalArgument(int index) {
15891591
result = getPositionalArgumentOperand(index).getDef()
15901592
}

csharp/ql/src/experimental/ir/implementation/unaliased_ssa/Instruction.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,6 +1577,7 @@ class CallInstruction extends Instruction {
15771577
/**
15781578
* Gets the argument operand at the specified index.
15791579
*/
1580+
pragma[noinline]
15801581
final PositionalArgumentOperand getPositionalArgumentOperand(int index) {
15811582
result = getAnOperand() and
15821583
result.getIndex() = index
@@ -1585,6 +1586,7 @@ class CallInstruction extends Instruction {
15851586
/**
15861587
* Gets the argument at the specified index.
15871588
*/
1589+
pragma[noinline]
15881590
final Instruction getPositionalArgument(int index) {
15891591
result = getPositionalArgumentOperand(index).getDef()
15901592
}

0 commit comments

Comments
 (0)