14 #ifndef CIRCT_DIALECT_FIRRTL_FIRPARSER_H
15 #define CIRCT_DIALECT_FIRRTL_FIRPARSER_H
54 mlir::MLIRContext *context,
55 mlir::TimingScope &ts,
71 std::pair<bool, std::optional<mlir::LocationAttr>>
73 mlir::StringAttr &locatorFilenameCache,
74 FileLineColLoc &fileLineColLocCache,
75 MLIRContext *context);
84 explicit constexpr
operator uint64_t()
const {
89 return uint64_t(*
this) < uint64_t(rhs);
93 return uint64_t(*
this) > uint64_t(rhs);
97 return uint64_t(*
this) <= uint64_t(rhs);
101 return uint64_t(*
this) >= uint64_t(rhs);
114 template <
typename T>
116 return os << version.
major <<
"." << version.
minor <<
"." << version.
patch;
constexpr FIRVersion defaultFIRVersion(1, 0, 0)
void registerFromFIRFileTranslation()
std::pair< bool, std::optional< mlir::LocationAttr > > maybeStringToLocation(llvm::StringRef spelling, bool skipParsing, mlir::StringAttr &locatorFilenameCache, FileLineColLoc &fileLineColLocCache, MLIRContext *context)
mlir::OwningOpRef< mlir::ModuleOp > importFIRFile(llvm::SourceMgr &sourceMgr, mlir::MLIRContext *context, mlir::TimingScope &ts, FIRParserOptions options={})
constexpr FIRVersion exportFIRVersion
T & operator<<(T &os, FIRVersion version)
constexpr FIRVersion minimumFIRVersion(0, 2, 0)
constexpr FIRVersion nextFIRVersion(3, 3, 0)
This file defines an intermediate representation for circuits acting as an abstraction for constraint...
unsigned numAnnotationFiles
The number of annotation files that were specified on the command line.
InfoLocHandling infoLocatorHandling
InfoLocHandling
Specify how @info locators should be handled.
@ PreferInfo
Prefer @info locators, fallback to .fir locations.
@ FusedInfo
Attach both @info locators (when present) and .fir locations.
@ IgnoreInfo
If this is set to true, the @info locators are ignored, and the locations are set to the location in ...
The FIRRTL specification version.
constexpr bool operator<(FIRVersion rhs) const
constexpr bool operator>(FIRVersion rhs) const
constexpr bool operator>=(FIRVersion rhs) const
constexpr FIRVersion(uint16_t major, uint16_t minor, uint16_t patch)
constexpr bool operator<=(FIRVersion rhs) const