1 //===- RawOstreamExtras.h - Extensions to LLVM's raw_ostream.h --*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 namespace llvm { 10 class raw_ostream; 11 } // namespace llvm 12 13 namespace mlir { 14 /// Returns a raw output stream that simply discards the output, but in a 15 /// thread-safe manner. Similar to llvm::nulls. 16 llvm::raw_ostream &thread_safe_nulls(); 17 } // namespace mlir 18