LLVM 22.0.0git
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
19namespace llvm {
20static 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
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
@ FK_Data_1
A one-byte fixup.
Definition: MCFixup.h:34
@ FK_Data_4
A four-byte fixup.
Definition: MCFixup.h:36
@ FK_Data_2
A two-byte fixup.
Definition: MCFixup.h:35
static unsigned getFixupKindLog2Size(unsigned Kind)