Skip to content

Commit 1da2e18

Browse files
committed
Autodiff tests + refactors/cleanup
1 parent 4400f25 commit 1da2e18

File tree

7 files changed

+56
-537
lines changed

7 files changed

+56
-537
lines changed

cilly/src/basic_block.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use fxhash::{FxBuildHasher, FxHashSet};
22
use serde::{Deserialize, Serialize};
33

4-
use crate::{cil_iter::CILIterElem, cil_root::CILRoot, cil_tree::CILTree};
4+
use crate::{cil_root::CILRoot, cil_tree::CILTree};
55

66
#[derive(Clone, PartialEq, Serialize, Deserialize, Debug)]
77
/// A block of ops that is a valid jump target, and is protected by an exception handler.
@@ -186,10 +186,6 @@ impl BasicBlock {
186186
pub fn trees(&self) -> &[CILTree] {
187187
&self.trees
188188
}
189-
/// Returns a iterator over `CILIterElem`
190-
pub fn iter_cil(&self) -> impl Iterator<Item = CILIterElem> {
191-
self.iter_tree_roots().flat_map(|root| root.into_iter())
192-
}
193189
pub fn tree_iter(&mut self) -> impl Iterator<Item = &mut CILTree> {
194190
let handler_bbs = self
195191
.handler

cilly/src/bin/linker/main.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,13 +508,18 @@ fn main() {
508508
let _ = final_assembly.tcctor();
509509
let _ = final_assembly.cctor();
510510
let float128 = final_assembly.alloc_string("f128");
511+
let low = final_assembly.alloc_string("low");
512+
let high = final_assembly.alloc_string("high");
511513
final_assembly
512514
.class_def(ClassDef::new(
513515
float128,
514516
true,
515517
0,
516518
None,
517-
vec![(Type::Int(Int::I128), float128, Some(0))],
519+
vec![
520+
(Type::Int(Int::U64), low, Some(0)),
521+
(Type::Int(Int::U64), high, Some(8)),
522+
],
518523
vec![],
519524
cilly::Access::Public,
520525
NonZeroU32::new(16),

0 commit comments

Comments
 (0)