CIRCT  20.0.0git
Namespaces | Macros | Functions
LowerState.cpp File Reference
#include "circt/Dialect/Arc/ArcOps.h"
#include "circt/Dialect/Arc/ArcPasses.h"
#include "circt/Dialect/Comb/CombDialect.h"
#include "circt/Dialect/Comb/CombOps.h"
#include "circt/Dialect/HW/HWOps.h"
#include "circt/Dialect/LLHD/IR/LLHDOps.h"
#include "circt/Dialect/Seq/SeqOps.h"
#include "circt/Dialect/Sim/SimOps.h"
#include "circt/Support/BackedgeBuilder.h"
#include "mlir/Analysis/TopologicalSortUtils.h"
#include "mlir/Dialect/Func/IR/FuncOps.h"
#include "mlir/Dialect/LLVMIR/LLVMAttrs.h"
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
#include "mlir/Dialect/SCF/IR/SCF.h"
#include "mlir/IR/IRMapping.h"
#include "mlir/IR/ImplicitLocOpBuilder.h"
#include "mlir/IR/SymbolTable.h"
#include "mlir/Interfaces/SideEffectInterfaces.h"
#include "mlir/Pass/Pass.h"
#include "llvm/ADT/TypeSwitch.h"
#include "llvm/Support/Debug.h"
#include "circt/Dialect/Arc/ArcPasses.h.inc"
Include dependency graph for LowerState.cpp:

Go to the source code of this file.

Namespaces

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

Macros

#define DEBUG_TYPE   "arc-lower-state"
 
#define GEN_PASS_DEF_LOWERSTATEPASS
 

Functions

static scf::IfOp createOrReuseIf (OpBuilder &builder, Value condition, bool withElse)
 Create a new scf.if operation with the given builder, or reuse a previous scf.if if the builder's insertion point is located right after it. More...
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "arc-lower-state"

Definition at line 31 of file LowerState.cpp.

◆ GEN_PASS_DEF_LOWERSTATEPASS

#define GEN_PASS_DEF_LOWERSTATEPASS

Definition at line 35 of file LowerState.cpp.

Function Documentation

◆ createOrReuseIf()

static scf::IfOp createOrReuseIf ( OpBuilder &  builder,
Value  condition,
bool  withElse 
)
static

Create a new scf.if operation with the given builder, or reuse a previous scf.if if the builder's insertion point is located right after it.

Definition at line 399 of file LowerState.cpp.