15 #ifndef MLIR_DEBUGSTRINGHELPER_H_ 16 #define MLIR_DEBUGSTRINGHELPER_H_ 20 #include "llvm/ADT/Twine.h" 21 #include "llvm/Support/raw_os_ostream.h" 22 #include "llvm/Support/raw_ostream.h" 27 template <
typename T>
static std::string debugString(T &op) {
28 std::string instr_str;
29 llvm::raw_string_ostream os(instr_str);
36 inline std::ostream &
operator<<(std::ostream &out,
const llvm::Twine &twine) {
37 llvm::raw_os_ostream rout(out);
42 #endif // MLIR_DEBUGSTRINGHELPER_H_ Definition: InferTypeOpInterface.cpp:20
raw_ostream & operator<<(raw_ostream &os, SubViewOp::Range &range)
Definition: Ops.cpp:2759