Skip to content

Conversation

@xdoardo
Copy link
Collaborator

@xdoardo xdoardo commented May 28, 2025

The objective of the PR is that of tackling the second part of #6; in particular,cheriot_sealed roughly maps to the DECLARE_STATIC_SEALED_VALUE macro.

This attribute is used on types to indicate that variables of this type are intended to be opaque objects, for which the only valid operation is taking their address.

@xdoardo xdoardo force-pushed the cheriot-static-sealed-value-attr branch 2 times, most recently from 6f58ce9 to c46c12f Compare May 28, 2025 20:41
@xdoardo xdoardo force-pushed the cheriot-static-sealed-value-attr branch from f0dd9de to 737632e Compare May 30, 2025 07:32
// directive and has static storage duration.
if (auto *VD = dyn_cast<VarDecl>(D);
LangOpts.OpenMP && VD && VD->hasAttr<OMPDeclareTargetDeclAttr>() &&
if (LangOpts.OpenMP && VD && VD->hasAttr<OMPDeclareTargetDeclAttr>() &&
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not so much about style, just that it'd be nice not to introduce changes on lines unrelated to CHERIoT for easier merging.

/// perms" encoding. The low 32 bits represent the encoding of the
/// permissions.
uint64_t SecondWordValue;
enum SecondWordKind {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enum class here as well

@xdoardo xdoardo force-pushed the cheriot-static-sealed-value-attr branch from 77b7f12 to bee533d Compare May 30, 2025 12:35
@xdoardo xdoardo merged commit b0e8fa5 into CHERIoT-Platform:cheriot May 30, 2025
8 checks passed
resistor pushed a commit that referenced this pull request May 30, 2025
resistor pushed a commit that referenced this pull request Aug 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants