MLIR
20.0.0git
lib
Support
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
9
#include "
mlir/Support/RawOstreamExtras.h
"
10
#include "llvm/Support/raw_ostream.h"
11
12
llvm::raw_ostream &
mlir::thread_safe_nulls
() {
13
static
thread_local llvm::raw_null_ostream stream;
14
return
stream;
15
}
RawOstreamExtras.h
mlir::thread_safe_nulls
llvm::raw_ostream & thread_safe_nulls()
Returns a raw output stream that simply discards the output, but in a thread-safe manner.
Definition:
RawOstreamExtras.cpp:12
Generated on Tue Nov 19 2024 04:32:31 for MLIR by
1.9.1