13#ifndef MFEM_ENZYME_HPP
14#define MFEM_ENZYME_HPP
29template <
typename return_type,
typename...
Args>
32template <
typename return_type,
typename... Args>
35#define MFEM_ENZYME_INACTIVENOFREE __attribute__((enzyme_inactive, enzyme_nofree))
36#define MFEM_ENZYME_INACTIVE __attribute__((enzyme_inactive))
37#define MFEM_ENZYME_FN_LIKE(x) __attribute__((enzyme_function_like(#x)))
40#define MFEM_ENZYME_INACTIVENOFREE
41#define MFEM_ENZYME_INACTIVE
42#define MFEM_ENZYME_FN_LIKE(x)
45#define MFEM_ENZYME_FN_LIKE_FREE MFEM_ENZYME_FN_LIKE(free)
46#define MFEM_ENZYME_FN_LIKE_DYNCAST MFEM_ENZYME_FN_LIKE(__dynamic_cast)
return_type __enzyme_autodiff(Args...)
return_type __enzyme_fwddiff(Args...)
kernels::InvariantsEvaluator2D::Buffers Args