Skip to content

Commit 54f9376

Browse files
committed
autodiff: f128 support added for typetree
1 parent d89ee85 commit 54f9376

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_codegen_llvm/src/llvm/enzyme_ffi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ pub(crate) enum CConcreteType {
2525
DT_Half = 3,
2626
DT_Float = 4,
2727
DT_Double = 5,
28-
// FIXME(KMJ-007): handle f128 using long double here(https://github.com/EnzymeAD/Enzyme/issues/1600)
2928
DT_Unknown = 6,
29+
DT_FP128 = 9,
3030
}
3131

3232
pub(crate) struct TypeTree {

compiler/rustc_codegen_llvm/src/typetree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fn to_enzyme_typetree(
3131
rustc_ast::expand::typetree::Kind::Half => llvm::CConcreteType::DT_Half,
3232
rustc_ast::expand::typetree::Kind::Float => llvm::CConcreteType::DT_Float,
3333
rustc_ast::expand::typetree::Kind::Double => llvm::CConcreteType::DT_Double,
34-
rustc_ast::expand::typetree::Kind::F128 => llvm::CConcreteType::DT_Unknown,
34+
rustc_ast::expand::typetree::Kind::F128 => llvm::CConcreteType::DT_FP128,
3535
rustc_ast::expand::typetree::Kind::Unknown => llvm::CConcreteType::DT_Unknown,
3636
};
3737

0 commit comments

Comments
 (0)