[ast] Represent a parameter's isolation at the SIL level.

I did this by adding flag on SILParamInfo.

rdar://121387872
This commit is contained in:
Michael Gottesman
2024-01-21 21:14:42 -08:00
parent 0e8ffef6cd
commit 6f3d45219a
30 changed files with 252 additions and 121 deletions

View File

@@ -5078,6 +5078,11 @@ getRawSILParameterInfoOptions(swift::SILParameterInfo::Options options) {
result |= SILParameterInfoFlags::NotDifferentiable;
}
if (options.contains(SILParameterInfo::Isolated)) {
options -= SILParameterInfo::Isolated;
result |= SILParameterInfoFlags::Isolated;
}
// If we still have options left, this code is out of sync... return none.
if (bool(options))
return {};