14 #ifndef CIRCT_DIALECT_FIRRTL_FIRPARSER_H
15 #define CIRCT_DIALECT_FIRRTL_FIRPARSER_H
62 mlir::MLIRContext *context,
63 mlir::TimingScope &ts,
79 std::pair<bool, std::optional<mlir::LocationAttr>>
81 mlir::StringAttr &locatorFilenameCache,
82 FileLineColLoc &fileLineColLocCache,
83 MLIRContext *context);
92 explicit constexpr
operator uint64_t()
const {
97 return uint64_t(*
this) < uint64_t(rhs);
101 return uint64_t(*
this) > uint64_t(rhs);
105 return uint64_t(*
this) <= uint64_t(rhs);
109 return uint64_t(*
this) >= uint64_t(rhs);
141 template <
typename T>
143 return os << version.
major <<
"." << version.
minor <<
"." << version.
patch;
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
The version of FIRRTL that the exporter produces.
llvm::raw_ostream & operator<<(llvm::raw_ostream &os, const InstanceInfo::LatticeValue &value)
constexpr FIRVersion missingSpecFIRVersion
A marker for parser features that are currently missing from the spec.
constexpr FIRVersion minimumFIRVersion(2, 0, 0)
The current minimum version of FIRRTL that the parser supports.
constexpr FIRVersion nextFIRVersion(4, 1, 0)
The next version of FIRRTL that is not yet released.
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
bool scalarizeInternalModules
unsigned numAnnotationFiles
The number of annotation files that were specified on the command line.
bool scalarizePublicModules
InfoLocHandling infoLocatorHandling
std::optional< LayerSpecialization > defaultLayerSpecialization
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 ...
std::vector< std::string > enableLayers
std::vector< std::string > disableLayers
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