ITADN

No ReverseAutoDiffOpInterface registration for llvm.insertValue

#2812Openxys-syx 创建于 2026-05-07
X
xys-syxcommented
The MRE is: ``` // RUN: enzymexlamlir-opt --outline-enzyme-regions --enzyme %s llvm.func @insert(%x: f64, %seed: !llvm.struct<(f64, f64)>) -> f64 { %g = enzyme.autodiff_region(%x, %seed) { ^bb0(%a_x: f64): %z = llvm.mlir.constant(0.0 : f64) : f64 %u = llvm.mlir.undef : !llvm.struct<(f64, f64)> %s0 = llvm.insertvalue %a_x, %u[0] : !llvm.struct<(f64, f64)> %s1 = llvm.insertvalue %z, %s0[1] : !llvm.struct<(f64, f64)> enzyme.yield %s1 : !llvm.struct<(f64, f64)> } attributes { activity = [#enzyme<activity enzyme_active>], ret_activity = [#enzyme<activity enzyme_activenoneed>], fn = "compute_insert" } : (f64, !llvm.struct<(f64, f64)>) -> f64 llvm.return %g : f64 } ```
0 条评论