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);
121 template <
typename T>
123 return os << version.
major <<
"." << version.
minor <<
"." << version.
patch;
void registerFromFIRFileTranslation()
constexpr FIRVersion exportFIRVersion(4, 0, 0)
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={})
llvm::raw_ostream & operator<<(llvm::raw_ostream &os, const InstanceInfo::LatticeValue &value)
constexpr FIRVersion minimumFIRVersion(2, 0, 0)
constexpr FIRVersion nextFIRVersion(3, 3, 0)
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