[#llvm-isReleaseModelValid-032] = xref:llvm.adoc[llvm]::isReleaseModelValid :relfileprefix: ../ :mrdocs: Check whether a release‐mode ML advisor has a valid model to execute. == Synopsis Declared in `<llvm/Analysis/Utils/MLGOUtils.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class CompiledModelType, class EnumType, bool ExternalStorage, class ParserClass> bool isReleaseModelValid( xref:llvm/StringRef.adoc[StringRef] InteractiveChannelBaseName, xref:llvm/cl/opt.adoc[cl::opt<EnumType, ExternalStorage, ParserClass>] const& SelectedModel, EnumType DefaultModelVal = EnumType::Default); ---- == Description Overload for `cl::opt<EnumType>.` == Return Value True if an embedded, interactive, or non‐default selected model is available. == Parameters [cols="1,4"] |=== | Name| Description | *InteractiveChannelBaseName* | Base name of the interactive channel; if non‐empty, the model is considered valid. | *SelectedModel* | Command‐line option holding the currently selected model. | *DefaultModelVal* | Default model value; when neither an embedded nor an interactive model is available, validity requires `SelectedModel` to differ from this. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#