Add instance evaluation and methods to read alloc

The instance evaluation is needed to handle intrinsics such as
`type_id` and `type_name`.

Since we now use Allocation to represent all evaluated constants,
provide a few methods to help process the data inside an allocation.
This commit is contained in:
Celina G. Val
2023-12-06 13:39:55 -08:00
parent 370c91100c
commit 4c9e842a09
14 changed files with 295 additions and 22 deletions

View File

@@ -39,6 +39,7 @@ pub mod compiler_interface;
#[macro_use]
pub mod error;
pub mod mir;
pub mod target;
pub mod ty;
pub mod visitor;