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