Enzyme main
Loading...
Searching...
No Matches
LLVMExtAutoDiffOpInterfaceImpl.cpp
Go to the documentation of this file.
1//===- LLVMExtAutoDiffOpInterfaceImpl.cpp - Interface external model
2//--------===//
3//
4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5// See https://llvm.org/LICENSE.txt for license information.
6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7//
8//===----------------------------------------------------------------------===//
9//
10// This file contains the external model implementation of the automatic
11// differentiation op interfaces for the LLVMExt dialect.
12//
13//===----------------------------------------------------------------------===//
14
21#include "mlir/IR/DialectRegistry.h"
22#include "mlir/Support/LogicalResult.h"
23
24using namespace mlir;
25using namespace mlir::enzyme;
26
27namespace {
28#include "Implementations/LLVMExtDerivatives.inc"
29} // namespace
30
32 DialectRegistry &registry) {
33 registry.addExtension(+[](MLIRContext *context, llvm_ext::LLVMExtDialect *) {
34 registerInterfaces(context);
35 });
36}
void registerLLVMExtDialectAutoDiffInterface(DialectRegistry &registry)