CIRCT 24.0.0git
Loading...
Searching...
No Matches
SimOps.cpp File Reference
#include "circt/Dialect/Sim/SimOps.h"
#include "circt/Dialect/HW/HWOps.h"
#include "circt/Dialect/HW/HWTypes.h"
#include "circt/Dialect/SV/SVOps.h"
#include "circt/Support/CustomDirectiveImpl.h"
#include "circt/Support/FormatInteger.h"
#include "circt/Support/ProceduralRegionTrait.h"
#include "mlir/Dialect/Func/IR/FuncOps.h"
#include "mlir/Dialect/LLVMIR/LLVMTypes.h"
#include "mlir/IR/PatternMatch.h"
#include "mlir/Interfaces/FunctionImplementation.h"
#include "llvm/ADT/MapVector.h"
#include <algorithm>
#include <cstdint>
#include "circt/Dialect/Sim/SimOpInterfaces.cpp.inc"
#include "circt/Dialect/Sim/Sim.cpp.inc"
#include "circt/Dialect/Sim/SimEnums.cpp.inc"
Include dependency graph for SimOps.cpp:

Go to the source code of this file.

Macros

#define GET_OP_CLASSES

Functions

static StringAttr formatIntegersByRadix (MLIRContext *ctx, unsigned radix, const Attribute &value, bool isUpperCase, bool isLeftAligned, char paddingChar, std::optional< int32_t > specifierWidth, bool isSigned=false)
static StringAttr formatFloatsBySpecifier (MLIRContext *ctx, Attribute value, bool isLeftAligned, std::optional< unsigned > fieldWidth, std::optional< unsigned > fracDigits, std::string formatSpecifier)
static StringAttr concatLiterals (MLIRContext *ctxt, ArrayRef< StringRef > lits)

Macro Definition Documentation

◆ GET_OP_CLASSES

#define GET_OP_CLASSES

Definition at line 824 of file SimOps.cpp.

Function Documentation

◆ concatLiterals()

StringAttr concatLiterals ( MLIRContext * ctxt,
ArrayRef< StringRef > lits )
static

Definition at line 432 of file SimOps.cpp.

References assert().

◆ formatFloatsBySpecifier()

StringAttr formatFloatsBySpecifier ( MLIRContext * ctx,
Attribute value,
bool isLeftAligned,
std::optional< unsigned > fieldWidth,
std::optional< unsigned > fracDigits,
std::string formatSpecifier )
static

Definition at line 270 of file SimOps.cpp.

◆ formatIntegersByRadix()

StringAttr formatIntegersByRadix ( MLIRContext * ctx,
unsigned radix,
const Attribute & value,
bool isUpperCase,
bool isLeftAligned,
char paddingChar,
std::optional< int32_t > specifierWidth,
bool isSigned = false )
static

Definition at line 251 of file SimOps.cpp.

References circt::formatInteger().