Path: blob/main/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/PPCFixupKinds.h
35294 views
//===-- PPCFixupKinds.h - PPC Specific Fixup Entries ------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLVM_LIB_TARGET_POWERPC_MCTARGETDESC_PPCFIXUPKINDS_H9#define LLVM_LIB_TARGET_POWERPC_MCTARGETDESC_PPCFIXUPKINDS_H1011#include "llvm/MC/MCFixup.h"1213#undef PPC1415namespace llvm {16namespace PPC {17enum Fixups {18// 24-bit PC relative relocation for direct branches like 'b' and 'bl'.19fixup_ppc_br24 = FirstTargetFixupKind,2021// 24-bit PC relative relocation for direct branches like 'b' and 'bl' where22// the caller does not use the TOC.23fixup_ppc_br24_notoc,2425/// 14-bit PC relative relocation for conditional branches.26fixup_ppc_brcond14,2728/// 24-bit absolute relocation for direct branches like 'ba' and 'bla'.29fixup_ppc_br24abs,3031/// 14-bit absolute relocation for conditional branches.32fixup_ppc_brcond14abs,3334/// A 16-bit fixup corresponding to lo16(_foo) or ha16(_foo) for instrs like35/// 'li' or 'addis'.36fixup_ppc_half16,3738/// A 14-bit fixup corresponding to lo16(_foo) with implied 2 zero bits for39/// instrs like 'std'.40fixup_ppc_half16ds,4142// A 34-bit fixup corresponding to PC-relative paddi.43fixup_ppc_pcrel34,4445// A 34-bit fixup corresponding to Non-PC-relative paddi.46fixup_ppc_imm34,4748/// Not a true fixup, but ties a symbol to a call to __tls_get_addr for the49/// TLS general and local dynamic models, or inserts the thread-pointer50/// register number. It can also be used to tie the ref symbol to prevent it51/// from being garbage collected on AIX.52fixup_ppc_nofixup,5354/// A 16-bit fixup corresponding to lo16(_foo) with implied 3 zero bits for55/// instrs like 'lxv'. Produces the same relocation as fixup_ppc_half16ds.56fixup_ppc_half16dq,5758// Marker59LastTargetFixupKind,60NumTargetFixupKinds = LastTargetFixupKind - FirstTargetFixupKind61};62}63}6465#endif666768