Enzyme
main
Loading...
Searching...
No Matches
PassUtils.h
Go to the documentation of this file.
1
//=- ActivityAnalysisPrinter.h - Printer utility pass for Activity Analysis =//
2
//
3
// Enzyme Project
4
//
5
// Part of the Enzyme Project, under the Apache License v2.0 with LLVM
6
// Exceptions. See https://llvm.org/LICENSE.txt for license information.
7
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8
//
9
// If using this code in an academic setting, please cite the following:
10
// @incollection{enzymeNeurips,
11
// title = {Instead of Rewriting Foreign Code for Machine Learning,
12
// Automatically Synthesize Fast Gradients},
13
// author = {Moses, William S. and Churavy, Valentin},
14
// booktitle = {Advances in Neural Information Processing Systems 33},
15
// year = {2020},
16
// note = {To appear in},
17
// }
18
//
19
//===----------------------------------------------------------------------===//
20
//
21
// This file contains a utility LLVM definition for making passes compatible
22
// across different versions
23
//
24
//===----------------------------------------------------------------------===//
25
26
#pragma once
27
#include <llvm/Config/llvm-config.h>
28
29
#include "llvm/IR/PassManager.h"
30
31
#if LLVM_VERSION_MAJOR >= 23
32
template
<
typename
DerivedT>
33
using
PassParent
= llvm::RequiredPassInfoMixin<DerivedT>;
34
#else
35
template
<
typename
DerivedT>
36
using
PassParent
= llvm::AnalysisInfoMixin<DerivedT>;
37
#endif
PassParent
Generated on Fri May 8 2026 19:56:26 for Enzyme by
1.12.0