blob: 08bc73fc4ea106ccb25786106cf539ef7f871027 (
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
|
// SPDX-License-Identifier: GPL-3.0-or-later
#ifndef RCC_TARGET_RISCV_RISCVTARGETRELOCATIONKINDS_H
#define RCC_TARGET_RISCV_RISCVTARGETRELOCATIONKINDS_H
#include "rcc/CodeGen/MachineIRTypes.h"
#include <cstdint>
namespace rcc::riscv {
enum class RISCVTargetRelocationKind : std::uint32_t {
Absolute32 = 1,
Absolute64,
};
[[nodiscard]] constexpr TargetRelocationKindID
targetRelocationKind(RISCVTargetRelocationKind Kind) noexcept {
return TargetRelocationKindID::fromValue(static_cast<std::uint32_t>(Kind));
}
} // namespace rcc::riscv
#endif // RCC_TARGET_RISCV_RISCVTARGETRELOCATIONKINDS_H
|