CIRCT 22.0.0git
Loading...
Searching...
No Matches
Internal.h
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
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// This file provides internal utility functions for the ArcRuntime.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef CIRCT_DIALECT_ARC_RUNTIME_INTERNAL_H
14#define CIRCT_DIALECT_ARC_RUNTIME_INTERNAL_H
15
16#include <cassert>
17#include <cstdlib>
18#include <iostream>
19
21
22/// Raise an irrecoverable error
23[[noreturn]] inline static void fatalError(const char *message) {
24 std::cerr << "[ArcRuntime] Internal Error: " << message << std::endl;
25 assert(false && "ArcRuntime Internal Error");
26 abort();
27}
28
29} // namespace circt::arc::runtime::impl
30
31#endif // CIRCT_DIALECT_ARC_RUNTIME_INTERNAL_H
assert(baseType &&"element must be base type")
static void fatalError(const char *message)
Raise an irrecoverable error.
Definition Internal.h:23