C++: autoformat

This commit is contained in:
Robert Marsh
2021-04-27 14:32:22 -07:00
parent 230f4bcae8
commit 5406783e9c
6 changed files with 36 additions and 21 deletions

View File

@@ -329,7 +329,8 @@ predicate allocationEscapes(Configuration::Allocation allocation) {
config.useSoundEscapeAnalysis() and resultEscapesNonReturn(allocation.getABaseInstruction())
)
or
Configuration::phaseNeedsSoundEscapeAnalysis() and resultEscapesNonReturn(allocation.getABaseInstruction())
Configuration::phaseNeedsSoundEscapeAnalysis() and
resultEscapesNonReturn(allocation.getABaseInstruction())
}
/**

View File

@@ -65,7 +65,10 @@ private module Cached {
instr = reusedPhiInstruction(_) and
// Check that the phi instruction is *not* degenerate, but we can't use
// getDegeneratePhiOperand in the first stage with phi instyructions
exists(OldIR::PhiInputOperand operand1, OldIR::PhiInputOperand operand2, OldInstruction oldInstruction |
exists(
OldIR::PhiInputOperand operand1, OldIR::PhiInputOperand operand2,
OldInstruction oldInstruction
|
oldInstruction = instr and
operand1 = oldInstruction.(OldIR::PhiInstruction).getAnInputOperand() and
operand1.getPredecessorBlock() instanceof OldBlock and
@@ -79,13 +82,14 @@ private module Cached {
instr instanceof TUnreachedInstruction
}
cached IRBlock getNewBlock(OldBlock oldBlock) {
cached
IRBlock getNewBlock(OldBlock oldBlock) {
exists(Instruction newEnd, OldIR::Instruction oldEnd |
(
result.getLastInstruction() = newEnd and
not newEnd instanceof ChiInstruction
or
newEnd = result.getLastInstruction().(ChiInstruction).getAPredecessor() // does this work?
result.getLastInstruction() = newEnd and
not newEnd instanceof ChiInstruction
or
newEnd = result.getLastInstruction().(ChiInstruction).getAPredecessor() // does this work?
) and
(
oldBlock.getLastInstruction() = oldEnd and

View File

@@ -329,7 +329,8 @@ predicate allocationEscapes(Configuration::Allocation allocation) {
config.useSoundEscapeAnalysis() and resultEscapesNonReturn(allocation.getABaseInstruction())
)
or
Configuration::phaseNeedsSoundEscapeAnalysis() and resultEscapesNonReturn(allocation.getABaseInstruction())
Configuration::phaseNeedsSoundEscapeAnalysis() and
resultEscapesNonReturn(allocation.getABaseInstruction())
}
/**

View File

@@ -65,7 +65,10 @@ private module Cached {
instr = reusedPhiInstruction(_) and
// Check that the phi instruction is *not* degenerate, but we can't use
// getDegeneratePhiOperand in the first stage with phi instyructions
exists(OldIR::PhiInputOperand operand1, OldIR::PhiInputOperand operand2, OldInstruction oldInstruction |
exists(
OldIR::PhiInputOperand operand1, OldIR::PhiInputOperand operand2,
OldInstruction oldInstruction
|
oldInstruction = instr and
operand1 = oldInstruction.(OldIR::PhiInstruction).getAnInputOperand() and
operand1.getPredecessorBlock() instanceof OldBlock and
@@ -79,13 +82,14 @@ private module Cached {
instr instanceof TUnreachedInstruction
}
cached IRBlock getNewBlock(OldBlock oldBlock) {
cached
IRBlock getNewBlock(OldBlock oldBlock) {
exists(Instruction newEnd, OldIR::Instruction oldEnd |
(
result.getLastInstruction() = newEnd and
not newEnd instanceof ChiInstruction
or
newEnd = result.getLastInstruction().(ChiInstruction).getAPredecessor() // does this work?
result.getLastInstruction() = newEnd and
not newEnd instanceof ChiInstruction
or
newEnd = result.getLastInstruction().(ChiInstruction).getAPredecessor() // does this work?
) and
(
oldBlock.getLastInstruction() = oldEnd and