CHERIoT-Platform/llvm-project

Add parameter attributes for {deep,shallow} {immutable, no-capture} permissions.

Ouverte

#4 ouverte le 24 nov. 2023

 (0 commentaire) (0 réaction) (0 personne assignée)LLVM (15 forks)auto 404
good first issue

Métriques du dépôt

Stars
 (9 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

The CHERIoT ISA has permissions that are intended to be useful to remove on call boundaries:

  • Store (make something shallow read-only)
  • LoadMutable (make something deep read-only)
  • Global (shallow no capture)
  • LoadGlobal (deep no capture)

We should add parameter attributes that allow these to be removed declaratively, especially on cross-compartment calls that don't. They should also add the relevant LLVM IR attributes to allow optimisation in the caller based on the properties that we're enforcing in hardware.

Guide contributeur