#include "circt/Dialect/Arc/ArcOps.h"
#include "circt/Dialect/Arc/ArcPasses.h"
#include "mlir/Dialect/SCF/IR/SCF.h"
#include "llvm/Support/Debug.h"
#include "circt/Dialect/Arc/ArcPasses.h.inc"
Go to the source code of this file.
|
| static Value | getPointerWrittenByOp (Operation *op) |
| | Return the state/memory value being written by an op.
|
| static Value | getPointerReadByOp (Operation *op) |
| | Return the state/memory value being read by an op.
|
| static bool | hasSideEffects (Operation *op) |
| | Check if an operation has side effects, ignoring any nested ops.
|
◆ DEBUG_TYPE
| #define DEBUG_TYPE "arc-merge-ifs" |
◆ GEN_PASS_DEF_MERGEIFSPASS
| #define GEN_PASS_DEF_MERGEIFSPASS |
◆ getPointerReadByOp()
| Value getPointerReadByOp |
( |
Operation * | op | ) |
|
|
static |
Return the state/memory value being read by an op.
Definition at line 73 of file MergeIfs.cpp.
◆ getPointerWrittenByOp()
| Value getPointerWrittenByOp |
( |
Operation * | op | ) |
|
|
static |
Return the state/memory value being written by an op.
Definition at line 64 of file MergeIfs.cpp.
◆ hasSideEffects()
| bool hasSideEffects |
( |
Operation * | op | ) |
|
|
static |
Check if an operation has side effects, ignoring any nested ops.
This is useful if we're traversing all nested ops anyway, and we are only interested in the current op's side effects.
Definition at line 84 of file MergeIfs.cpp.