Merge pull request #68536 from Azoy/maxAtomicInlineWidth

[AST] Add #if _atomicBitWidth as a valid compilation conditional
This commit is contained in:
Alejandro Alonso
2023-09-30 12:34:17 -07:00
committed by GitHub
26 changed files with 152 additions and 29 deletions

View File

@@ -683,6 +683,9 @@ namespace swift {
/// by name.
bool hasFeature(llvm::StringRef featureName) const;
/// Sets the "_atomicBitWidth" conditional.
void setAtomicBitWidth(llvm::Triple triple);
/// Returns true if the given platform condition argument represents
/// a supported target operating system.
///
@@ -720,7 +723,7 @@ namespace swift {
}
private:
llvm::SmallVector<std::pair<PlatformConditionKind, std::string>, 6>
llvm::SmallVector<std::pair<PlatformConditionKind, std::string>, 10>
PlatformConditionValues;
llvm::SmallVector<std::string, 2> CustomConditionalCompilationFlags;
};