aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/shedlang/compiler/patio/instructions/PatioCallPointer.java
blob: f8823b38b348961ed7323c344316d38be692bb84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package org.shedlang.compiler.patio.instructions;

import org.shedlang.compiler.patio.operands.PatioLocalRef;
import org.shedlang.compiler.patio.operands.PatioOperand;
import org.shedlang.compiler.sources.Source;

import java.util.List;

/// Call the function pointed to by the function pointer with the given
/// arguments, and store the returned values in the destination locals.
public record PatioCallPointer(
    List<PatioLocalRef> destinations,
    PatioOperand functionPointer,
    List<PatioOperand> args,
    Source source
) implements PatioInstruction {
    @Override
    public boolean isBlockTerminator() {
        return false;
    }
}