1
0
forked from M-Labs/nac3

fixup! core: move Slice and RustSlice to its own file & genericize their IntKind

This commit is contained in:
lyken 2024-08-25 20:40:28 +08:00
parent a1410833bc
commit 52da6347ee
No known key found for this signature in database
GPG Key ID: 3BD5FC6AC8325DD8

View File

@ -33,10 +33,6 @@ impl<'ctx, N: IntKind<'ctx>> StructKind<'ctx> for Slice<N> {
/// A Rust structure that has [`Slice`] utilities and looks like a [`Slice`] but
/// `start`, `stop` and `step` are held by LLVM registers only and possibly
/// [`Option::None`] if unspecified.
///
/// This structure exists because many implementations use [`Slice`] utilities but
/// it might not be good to alloca an actual [`Slice`] value on the stack in order
/// to perform calculations.
#[derive(Debug, Clone)]
pub struct RustSlice<'ctx, N: IntKind<'ctx>> {
pub start: Option<Instance<'ctx, Int<N>>>,