FLANG
Public Member Functions | Public Attributes | List of all members
Fortran::frontend::CodeGenOptions::OptRemark Struct Reference

Optimization remark with an optional regular expression pattern. More...

#include <flang/Frontend/CodeGenOptions.h>

Public Member Functions

 OptRemark ()=default
 By default, optimization remark is missing.
 
bool hasValidPattern () const
 
bool patternMatches (llvm::StringRef string) const
 Matches the given string against the regex, if there is some.
 

Public Attributes

RemarkKind Kind = RemarkKind::RK_Missing
 
std::string Pattern
 
std::shared_ptr< llvm::Regex > Regex
 

Detailed Description

Optimization remark with an optional regular expression pattern.

Member Function Documentation

◆ hasValidPattern()

bool Fortran::frontend::CodeGenOptions::OptRemark::hasValidPattern ( ) const
inline

Returns true iff the optimization remark holds a valid regular expression.


The documentation for this struct was generated from the following file: