CIRCT 24.0.0git
Loading...
Searching...
No Matches
Naming.cpp File Reference
#include "circt/Support/Naming.h"
#include "mlir/IR/BuiltinAttributes.h"
#include "mlir/IR/Operation.h"
#include "llvm/ADT/StringRef.h"
Include dependency graph for Naming.cpp:

Go to the source code of this file.

Functions

static bool isNameBetter (StringRef a, StringRef b)
static StringAttr getNameOrHint (Operation *a)

Function Documentation

◆ getNameOrHint()

StringAttr getNameOrHint ( Operation * a)
static

Definition at line 59 of file Naming.cpp.

Referenced by circt::chooseName().

◆ isNameBetter()

bool isNameBetter ( StringRef a,
StringRef b )
static

Definition at line 27 of file Naming.cpp.

References circt::isUselessName().

Referenced by circt::chooseName(), and circt::chooseName().