LLZK 0.1.0
Veridise's ZK Language IR
Loading...
Searching...
No Matches
AnalysisPassEnums.cpp
Go to the documentation of this file.
1//===-- AnalysisPassEnums.cpp -----------------------------------*- C++ -*-===//
2//
3// Part of the LLZK Project, under the Apache License v2.0.
4// See LICENSE.txt for license information.
5// Copyright 2025 Veridise Inc.
6// SPDX-License-Identifier: Apache-2.0
7//
8//===----------------------------------------------------------------------===//
9
11
12#include <llvm/ADT/StringSwitch.h>
13#include <llvm/Support/Debug.h>
14#include <llvm/Support/ErrorHandling.h>
15
16// TableGen'd implementation files
18
19namespace llzk {
20
21llvm::raw_ostream &toStream(OutputStream val) {
22 switch (val) {
24 return llvm::outs();
26 return llvm::errs();
28 return llvm::dbgs();
29 }
30 llvm_unreachable("Unhandled OutputStream value");
31}
32
33} // namespace llzk
llvm::raw_ostream & toStream(OutputStream val)