blob: 4952128d768a9a2261ec9c807f28a42f189f830e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// SPDX-License-Identifier: GPL-3.0-or-later
#ifndef RCC_MIR_MIDEBUGSYNTAX_H
#define RCC_MIR_MIDEBUGSYNTAX_H
#include <cstdint>
#include <optional>
#include <span>
#include <string>
#include <string_view>
namespace rcc::mir {
[[nodiscard]] std::optional<std::uint64_t>
parseDIExpressionOpcodeName(std::string_view Name) noexcept;
[[nodiscard]] std::optional<std::uint64_t>
parseDIExpressionAttributeEncodingName(std::string_view Name) noexcept;
[[nodiscard]] std::string invalidDIExpressionElementMessage(std::string_view Name);
[[nodiscard]] std::string formatDIExpression(std::span<const std::uint64_t> Elements);
} // namespace rcc::mir
#endif // RCC_MIR_MIDEBUGSYNTAX_H
|