MLIR 22.0.0git
RawOstreamExtras.cpp
Go to the documentation of this file.
1//===- RawOstreamExtras.cpp - Extensions to LLVM's raw_ostream ------------===//
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
10#include "llvm/Support/raw_ostream.h"
11
12llvm::raw_ostream &mlir::thread_safe_nulls() {
13 static thread_local llvm::raw_null_ostream stream;
14 return stream;
15}
llvm::raw_ostream & thread_safe_nulls()
Returns a raw output stream that simply discards the output, but in a thread-safe manner.