C++: Sync identical files.

This commit is contained in:
Mathias Vorreiter Pedersen
2024-07-04 10:42:43 +01:00
parent c54dc49891
commit 2c4bf13d05
2 changed files with 24 additions and 0 deletions

View File

@@ -2167,6 +2167,18 @@ class ChiInstruction extends Instruction {
*/
class InitializeGroupInstruction extends Instruction {
InitializeGroupInstruction() { this.getOpcode() instanceof Opcode::InitializeGroup }
/**
* Gets an `IRVariable` whose memory is initialized by this instruction, if any.
* Note: Allocations that are not represented as `IRVariable`s (such as
* dynamic allocations) are not returned by this predicate even if this
* instruction initializes such memory.
*/
final IRVariable getAnIRVariable() { result = Construction::getAnInitializeGroupVariable(this) }
final override string getImmediateString() {
result = strictconcat(this.getAnIRVariable().toString(), ",")
}
}
/**

View File

@@ -2167,6 +2167,18 @@ class ChiInstruction extends Instruction {
*/
class InitializeGroupInstruction extends Instruction {
InitializeGroupInstruction() { this.getOpcode() instanceof Opcode::InitializeGroup }
/**
* Gets an `IRVariable` whose memory is initialized by this instruction, if any.
* Note: Allocations that are not represented as `IRVariable`s (such as
* dynamic allocations) are not returned by this predicate even if this
* instruction initializes such memory.
*/
final IRVariable getAnIRVariable() { result = Construction::getAnInitializeGroupVariable(this) }
final override string getImmediateString() {
result = strictconcat(this.getAnIRVariable().toString(), ",")
}
}
/**