[caller-isolation] Teach Sema how to handle isolation of explicit @execution({concurrent,caller}).

This commit is contained in:
Michael Gottesman
2025-01-24 11:04:17 -08:00
parent 6a9afa53f7
commit d79fcb6d84
6 changed files with 83 additions and 3 deletions

View File

@@ -8471,6 +8471,14 @@ void VarDecl::emitLetToVarNoteIfSimple(DeclContext *UseDC) const {
}
}
std::optional<ExecutionKind>
AbstractFunctionDecl::getExecutionBehavior() const {
auto *attr = getAttrs().getAttribute<ExecutionAttr>();
if (!attr)
return {};
return attr->getBehavior();
}
clang::PointerAuthQualifier VarDecl::getPointerAuthQualifier() const {
if (auto *clangDecl = getClangDecl()) {
if (auto *valueDecl = dyn_cast<clang::ValueDecl>(clangDecl)) {