TGMM wrote: I'm not convinced on the CmpPredicate value casting to uint64_t since it removes useful type information. If there's a better way to expose this enum to C, I'd love to hear it. https://github.com/llvm/llvm-project/pull/119645