Changeset View
Changeset View
Standalone View
Standalone View
mlir/include/mlir/IR/Diagnostics.h
Show All 18 Lines | |||||
namespace llvm { | namespace llvm { | ||||
class MemoryBuffer; | class MemoryBuffer; | ||||
class SMLoc; | class SMLoc; | ||||
class SourceMgr; | class SourceMgr; | ||||
} // end namespace llvm | } // end namespace llvm | ||||
namespace mlir { | namespace mlir { | ||||
class DiagnosticEngine; | class DiagnosticEngine; | ||||
class Identifier; | |||||
struct LogicalResult; | struct LogicalResult; | ||||
class MLIRContext; | class MLIRContext; | ||||
class Operation; | class Operation; | ||||
class OperationName; | class OperationName; | ||||
class OpPrintingFlags; | class OpPrintingFlags; | ||||
class Type; | class Type; | ||||
class Value; | class Value; | ||||
▲ Show 20 Lines • Show All 155 Lines • ▼ Show 20 Lines | public: | ||||
typename std::enable_if< | typename std::enable_if< | ||||
!std::is_convertible<Arg, StringRef>::value && | !std::is_convertible<Arg, StringRef>::value && | ||||
std::is_constructible<DiagnosticArgument, Arg>::value, | std::is_constructible<DiagnosticArgument, Arg>::value, | ||||
Diagnostic &>::type | Diagnostic &>::type | ||||
operator<<(Arg &&val) { | operator<<(Arg &&val) { | ||||
arguments.push_back(DiagnosticArgument(std::forward<Arg>(val))); | arguments.push_back(DiagnosticArgument(std::forward<Arg>(val))); | ||||
return *this; | return *this; | ||||
} | } | ||||
Diagnostic &operator<<(StringAttr val); | |||||
/// Stream in a string literal. | /// Stream in a string literal. | ||||
Diagnostic &operator<<(const char *val) { | Diagnostic &operator<<(const char *val) { | ||||
arguments.push_back(DiagnosticArgument(val)); | arguments.push_back(DiagnosticArgument(val)); | ||||
return *this; | return *this; | ||||
} | } | ||||
/// Stream in a Twine argument. | /// Stream in a Twine argument. | ||||
Diagnostic &operator<<(char val); | Diagnostic &operator<<(char val); | ||||
Diagnostic &operator<<(const Twine &val); | Diagnostic &operator<<(const Twine &val); | ||||
Diagnostic &operator<<(Twine &&val); | Diagnostic &operator<<(Twine &&val); | ||||
/// Stream in an Identifier. | |||||
Diagnostic &operator<<(Identifier val); | |||||
/// Stream in an OperationName. | /// Stream in an OperationName. | ||||
Diagnostic &operator<<(OperationName val); | Diagnostic &operator<<(OperationName val); | ||||
/// Stream in an Operation. | /// Stream in an Operation. | ||||
Diagnostic &operator<<(Operation &val); | Diagnostic &operator<<(Operation &val); | ||||
Diagnostic &operator<<(Operation *val) { | Diagnostic &operator<<(Operation *val) { | ||||
return *this << *val; | return *this << *val; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 444 Lines • Show Last 20 Lines |