13 #ifndef CIRCT_DIALECT_SIM_SIMOPS_H
14 #define CIRCT_DIALECT_SIM_SIMOPS_H
22 #include "mlir/Bytecode/BytecodeOpInterface.h"
23 #include "mlir/IR/OpImplementation.h"
24 #include "mlir/IR/SymbolTable.h"
25 #include "mlir/Interfaces/CallInterfaces.h"
26 #include "mlir/Interfaces/FunctionInterfaces.h"
27 #include "mlir/Interfaces/InferTypeOpInterface.h"
29 #define GET_OP_CLASSES
30 #include "circt/Dialect/Sim/Sim.h.inc"
38 if (
auto fmt = llvm::dyn_cast_or_null<circt::sim::FormatBinOp>(fmtOp))
39 return fmt.getValue();
40 if (
auto fmt = llvm::dyn_cast_or_null<circt::sim::FormatDecOp>(fmtOp))
41 return fmt.getValue();
42 if (
auto fmt = llvm::dyn_cast_or_null<circt::sim::FormatHexOp>(fmtOp))
43 return fmt.getValue();
44 if (
auto fmt = llvm::dyn_cast_or_null<circt::sim::FormatCharOp>(fmtOp))
45 return fmt.getValue();
static mlir::Value getFormattedValue(mlir::Operation *fmtOp)
Returns the value operand of a value formatting operation.
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.