Loading [MathJax]/extensions/tex2jax.js
CIRCT 22.0.0git
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Macros | Functions
UnrollLoops.cpp File Reference
#include "circt/Dialect/Comb/CombOps.h"
#include "circt/Dialect/HW/HWOps.h"
#include "circt/Dialect/LLHD/IR/LLHDOps.h"
#include "circt/Dialect/LLHD/Transforms/LLHDPasses.h"
#include "circt/Support/UnusedOpPruner.h"
#include "mlir/Analysis/CFGLoopInfo.h"
#include "mlir/Dialect/ControlFlow/IR/ControlFlowOps.h"
#include "mlir/IR/Dominance.h"
#include "mlir/IR/IRMapping.h"
#include "mlir/IR/Matchers.h"
#include "mlir/Pass/Pass.h"
#include "llvm/ADT/PostOrderIterator.h"
#include "llvm/Support/Debug.h"
#include "circt/Dialect/LLHD/Transforms/LLHDPasses.h.inc"
Include dependency graph for UnrollLoops.cpp:

Go to the source code of this file.

Namespaces

namespace  circt
 The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
 
namespace  circt::llhd
 

Macros

#define DEBUG_TYPE   "llhd-unroll-loops"
 
#define GEN_PASS_DEF_UNROLLLOOPSPASS
 

Functions

static void cloneBlocks (ArrayRef< Block * > blocks, Region &region, Region::iterator before, IRMapping &mapper)
 Clone a list of blocks into a region before the given block.
 
static llvm::raw_ostream & operator<< (llvm::raw_ostream &os, const Loop &loop)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "llhd-unroll-loops"

Definition at line 23 of file UnrollLoops.cpp.

◆ GEN_PASS_DEF_UNROLLLOOPSPASS

#define GEN_PASS_DEF_UNROLLLOOPSPASS

Definition at line 27 of file UnrollLoops.cpp.

Function Documentation

◆ cloneBlocks()

static void cloneBlocks ( ArrayRef< Block * >  blocks,
Region &  region,
Region::iterator  before,
IRMapping &  mapper 
)
static

Clone a list of blocks into a region before the given block.

See Region::cloneInto for the original code that clones an entire region.

Definition at line 45 of file UnrollLoops.cpp.

◆ operator<<()

static llvm::raw_ostream & operator<< ( llvm::raw_ostream &  os,
const Loop &  loop 
)
static

Definition at line 133 of file UnrollLoops.cpp.