Move LLVM scope ops to a separate module

This commit is contained in:
Ayaz Hafiz 2023-06-09 15:33:29 -05:00
parent 470ed119c2
commit 8d3d4ed9d8
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
7 changed files with 115 additions and 61 deletions

View file

@ -11,11 +11,12 @@ use roc_mono::layout::{InLayout, LayoutInterner, LayoutRepr, STLayoutInterner};
use crate::llvm::build::use_roc_value;
use super::{
build::{load_symbol_and_layout, BuilderExt, Env, Scope},
build::{load_symbol_and_layout, BuilderExt, Env},
convert::basic_type_from_layout,
scope::Scope,
};
pub enum RocStructType<'ctx> {
pub(crate) enum RocStructType<'ctx> {
/// The roc struct should be passed by rvalue.
ByValue(StructType<'ctx>),
}
@ -60,7 +61,7 @@ fn basic_type_from_record<'a, 'ctx>(
.struct_type(field_types.into_bump_slice(), false)
}
pub enum RocStruct<'ctx> {
pub(crate) enum RocStruct<'ctx> {
/// The roc struct should be passed by rvalue.
ByValue(StructValue<'ctx>),
}