Sha256: 7df3cf5d1ace2220e909f6c7045f0018b433b5cb13d4e85e2b2bd5948a066e0c
Contents?: true
Size: 590 Bytes
Versions: 8
Compression:
Stored size: 590 Bytes
Contents
//! A basic `Variable` implementation. //! //! Frontends can use any indexing scheme they see fit and //! generate the appropriate `Variable` instances. //! //! Note: The `Variable` is used by Cranelift to index into densely allocated //! arrays containing information about your mutable variables //! Thus, make sure that Variable's indexes are allocated contiguously and //! starting at `0`. use core::u32; use cranelift_codegen::entity::entity_impl; /// An opaque reference to a variable. #[derive(Copy, Clone, PartialEq, Eq)] pub struct Variable(u32); entity_impl!(Variable, "var");
Version data entries
8 entries across 8 versions & 1 rubygems