feat(pbs): align typed values and Pad input facade
This commit is contained in:
+9
-1
@@ -255,7 +255,12 @@ public record IRBackendExecutableFunction(
|
||||
case REGISTRY -> {
|
||||
if (hostCall != null || intrinsicCall != null || calleeCallableId != null || !label.isEmpty() || !targetLabel.isEmpty()) throw new IllegalArgumentException("unexpected Registry instruction metadata");
|
||||
}
|
||||
case PUSH_I32 -> {
|
||||
case BUILTIN_CONST -> {
|
||||
if (label.isBlank() || expectedRetSlots == null || expectedRetSlots <= 0 || expectedArgSlots != null
|
||||
|| !targetLabel.isBlank() || !calleeCallableName.isBlank() || calleeCallableId != null || hostCall != null || intrinsicCall != null)
|
||||
throw new IllegalArgumentException("BUILTIN_CONST requires canonical identity and complete result width");
|
||||
}
|
||||
case PUSH_I32, PUSH_I64, PUSH_F64 -> {
|
||||
if (label.isBlank()) {
|
||||
throw new IllegalArgumentException("PUSH_I32 requires immediate label payload");
|
||||
}
|
||||
@@ -426,6 +431,9 @@ public record IRBackendExecutableFunction(
|
||||
public enum InstructionKind {
|
||||
REGISTRY,
|
||||
PUSH_I32,
|
||||
PUSH_I64,
|
||||
PUSH_F64,
|
||||
BUILTIN_CONST,
|
||||
PUSH_BOOL,
|
||||
PUSH_CONST,
|
||||
GET_LOCAL,
|
||||
|
||||
Reference in New Issue
Block a user