LLVM
22.0.0git
lib
Target
M68k
MCTargetDesc
M68kFixupKinds.h
Go to the documentation of this file.
1
//===-- M68kFixupKinds.h - M68k Specific Fixup Entries ----------*- C++ -*-===//
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
/// \file
10
/// This file contains M68k specific fixup entries.
11
///
12
//===----------------------------------------------------------------------===//
13
14
#ifndef LLVM_LIB_TARGET_M68k_MCTARGETDESC_M68kFIXUPKINDS_H
15
#define LLVM_LIB_TARGET_M68k_MCTARGETDESC_M68kFIXUPKINDS_H
16
17
#include "
llvm/MC/MCFixup.h
"
18
19
namespace
llvm
{
20
static
inline
unsigned
getFixupKindLog2Size
(
unsigned
Kind) {
21
switch
(Kind) {
22
case
FK_Data_1
:
23
return
0;
24
case
FK_Data_2
:
25
return
1;
26
case
FK_Data_4
:
27
return
2;
28
}
29
llvm_unreachable
(
"invalid fixup kind!"
);
30
}
31
}
// namespace llvm
32
33
#endif
// LLVM_LIB_TARGET_M68k_MCTARGETDESC_M68kFIXUPKINDS_H
MCFixup.h
llvm_unreachable
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
Definition:
ErrorHandling.h:164
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
llvm::FK_Data_1
@ FK_Data_1
A one-byte fixup.
Definition:
MCFixup.h:34
llvm::FK_Data_4
@ FK_Data_4
A four-byte fixup.
Definition:
MCFixup.h:36
llvm::FK_Data_2
@ FK_Data_2
A two-byte fixup.
Definition:
MCFixup.h:35
llvm::getFixupKindLog2Size
static unsigned getFixupKindLog2Size(unsigned Kind)
Definition:
M68kFixupKinds.h:20
Generated on Sat Aug 30 2025 10:36:00 for LLVM by
1.9.6