Enzyme main
Loading...
Searching...
No Matches
RemovalUtils.cpp File Reference
#include "RemovalUtils.h"
#include "Interfaces/AutoDiffOpInterface.h"
#include "Interfaces/AutoDiffTypeInterface.h"
#include "Interfaces/GradientUtilsReverse.h"
#include "Utils.h"
#include "mlir/Analysis/TopologicalSortUtils.h"
#include "mlir/IR/PatternMatch.h"
#include "mlir/Transforms/RegionUtils.h"
#include <cassert>
#include <deque>
#include "mlir/Dialect/SCF/IR/SCF.h"
#include "llvm/ADT/MapVector.h"
#include "llvm/ADT/PointerIntPair.h"
#include "llvm/ADT/SetVector.h"
Include dependency graph for RemovalUtils.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "enzyme-mincut"
 

Functions

static llvm::cl::opt< bool > DebugGraphviz ("mincut-print-graphviz", llvm::cl::init(false), llvm::cl::Hidden, llvm::cl::desc("Use with DEBUG_TYPE 'enzyme-mincut' to print " "the mincut graphs in GraphViz"))
 
static LogicalResult loopInvariantCacheImpl (CacheInfo info, LoopLikeOpInterface fwdLoop, LoopLikeOpInterface revLoop, IRMapping &mapping, int64_t threshold)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "enzyme-mincut"

Definition at line 30 of file RemovalUtils.cpp.

Function Documentation

◆ DebugGraphviz()

static llvm::cl::opt< bool > DebugGraphviz ( "mincut-print-graphviz" ,
llvm::cl::init(false) ,
llvm::cl::Hidden ,
llvm::cl::desc("Use with DEBUG_TYPE 'enzyme-mincut' to print " "the mincut graphs in GraphViz")  )
static

◆ loopInvariantCacheImpl()

static LogicalResult loopInvariantCacheImpl ( CacheInfo info,
LoopLikeOpInterface fwdLoop,
LoopLikeOpInterface revLoop,
IRMapping & mapping,
int64_t threshold )
static