File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
SwiftCompilerSources/Sources/SIL Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -133,4 +133,11 @@ extension FullApplySite {
133
133
}
134
134
return nil
135
135
}
136
+
137
+ /// The number of indirect out arguments.
138
+ ///
139
+ /// 0 if the callee has a direct or no return value and 1, if it has an indirect return value.
140
+ public var numIndirectResultArguments : Int {
141
+ return FullApplySite_numIndirectResultArguments ( bridged)
142
+ }
136
143
}
Original file line number Diff line number Diff line change @@ -428,6 +428,7 @@ swift::SubstitutionMap ApplySite_getSubstitutionMap(BridgedInstruction inst);
428
428
BridgedArgumentConvention
429
429
ApplySite_getArgumentConvention (BridgedInstruction inst, SwiftInt calleeArgIdx);
430
430
SwiftInt ApplySite_getNumArguments (BridgedInstruction inst);
431
+ SwiftInt FullApplySite_numIndirectResultArguments (BridgedInstruction inst);
431
432
432
433
BridgedInstruction SILBuilder_createBuiltinBinaryFunction (
433
434
BridgedBuilder builder, llvm::StringRef name,
Original file line number Diff line number Diff line change @@ -1020,6 +1020,12 @@ SwiftInt ApplySite_getNumArguments(BridgedInstruction inst) {
1020
1020
return as.getNumArguments ();
1021
1021
}
1022
1022
1023
+ SwiftInt FullApplySite_numIndirectResultArguments (BridgedInstruction inst) {
1024
+ auto fas = FullApplySite (castToInst (inst));
1025
+ return fas.getNumIndirectSILResults ();
1026
+
1027
+ }
1028
+
1023
1029
// ===----------------------------------------------------------------------===//
1024
1030
// SILBuilder
1025
1031
// ===----------------------------------------------------------------------===//
You can’t perform that action at this time.
0 commit comments