mini-llvm
0.1.0
Toggle main menu visibility
Loading...
Searching...
No Matches
FormatPrecision.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: MIT
2
3
#pragma once
4
5
#include <cstdlib>
6
7
#include "
mini-llvm/common/Precision.h
"
8
9
namespace
mini_llvm::mir
{
10
11
inline
constexpr
const
char
*
specifier
(
Precision
precision) {
12
using
enum
Precision
;
13
switch
(precision) {
14
case
kSingle
:
return
"single"
;
15
case
kDouble
:
return
"double"
;
16
default
: abort();
17
}
18
}
19
20
}
// namespace mini_llvm::mir
Precision.h
mini_llvm::mir
Definition
BasicBlock.h:22
mini_llvm::mir::specifier
constexpr const char * specifier(Condition cond)
Definition
Condition.h:15
mini_llvm::Precision
Precision
Definition
Precision.h:7
mini_llvm::Precision::kDouble
@ kDouble
Definition
Precision.h:9
mini_llvm::Precision::kSingle
@ kSingle
Definition
Precision.h:8
include
mini-llvm
mir
FormatPrecision.h
Generated by
1.17.0