003 File Manager
Current Path:
/usr/src/contrib/llvm-project/llvm/include/llvm/MC
usr
/
src
/
contrib
/
llvm-project
/
llvm
/
include
/
llvm
/
MC
/
📁
..
📄
ConstantPools.h
(3.35 KB)
📄
LaneBitmask.h
(3.24 KB)
📄
MCAsmBackend.h
(8.09 KB)
📄
MCAsmInfo.h
(25.48 KB)
📄
MCAsmInfoCOFF.h
(900 B)
📄
MCAsmInfoDarwin.h
(927 B)
📄
MCAsmInfoELF.h
(711 B)
📄
MCAsmInfoWasm.h
(612 B)
📄
MCAsmInfoXCOFF.h
(792 B)
📄
MCAsmLayout.h
(3.75 KB)
📄
MCAsmMacro.h
(4.54 KB)
📄
MCAssembler.h
(16.1 KB)
📄
MCCodeEmitter.h
(1.53 KB)
📄
MCCodeView.h
(9.03 KB)
📄
MCContext.h
(31.99 KB)
📄
MCDirectives.h
(3.12 KB)
📁
MCDisassembler
📄
MCDwarf.h
(21.46 KB)
📄
MCELFObjectWriter.h
(5.27 KB)
📄
MCELFStreamer.h
(3.97 KB)
📄
MCExpr.h
(21.55 KB)
📄
MCFixedLenDisassembler.h
(1.39 KB)
📄
MCFixup.h
(7.4 KB)
📄
MCFixupKindInfo.h
(1.6 KB)
📄
MCFragment.h
(17.72 KB)
📄
MCInst.h
(6.06 KB)
📄
MCInstBuilder.h
(1.76 KB)
📄
MCInstPrinter.h
(5.88 KB)
📄
MCInstrAnalysis.h
(6.8 KB)
📄
MCInstrDesc.h
(25.13 KB)
📄
MCInstrInfo.h
(2.93 KB)
📄
MCInstrItineraries.h
(9.02 KB)
📄
MCLabel.h
(1.63 KB)
📄
MCLinkerOptimizationHint.h
(5.73 KB)
📄
MCMachObjectWriter.h
(9.77 KB)
📄
MCObjectFileInfo.h
(16.57 KB)
📄
MCObjectStreamer.h
(8.78 KB)
📄
MCObjectWriter.h
(4.44 KB)
📁
MCParser
📄
MCRegister.h
(4.16 KB)
📄
MCRegisterInfo.h
(28.96 KB)
📄
MCSchedule.h
(16.25 KB)
📄
MCSection.h
(6.52 KB)
📄
MCSectionCOFF.h
(3.37 KB)
📄
MCSectionELF.h
(3.3 KB)
📄
MCSectionMachO.h
(3.15 KB)
📄
MCSectionWasm.h
(2.78 KB)
📄
MCSectionXCOFF.h
(3.22 KB)
📄
MCStreamer.h
(43.55 KB)
📄
MCSubtargetInfo.h
(10.04 KB)
📄
MCSymbol.h
(13.8 KB)
📄
MCSymbolCOFF.h
(1.62 KB)
📄
MCSymbolELF.h
(1.45 KB)
📄
MCSymbolMachO.h
(4.18 KB)
📄
MCSymbolWasm.h
(4.28 KB)
📄
MCSymbolXCOFF.h
(2.39 KB)
📄
MCTargetOptions.h
(2.29 KB)
📄
MCTargetOptionsCommandFlags.h
(1.26 KB)
📄
MCValue.h
(2.42 KB)
📄
MCWasmObjectWriter.h
(1.61 KB)
📄
MCWasmStreamer.h
(2.83 KB)
📄
MCWin64EH.h
(2.41 KB)
📄
MCWinCOFFObjectWriter.h
(1.81 KB)
📄
MCWinCOFFStreamer.h
(3.05 KB)
📄
MCWinEH.h
(1.97 KB)
📄
MCXCOFFObjectWriter.h
(1.45 KB)
📄
MCXCOFFStreamer.h
(1.86 KB)
📄
MachineLocation.h
(2.04 KB)
📄
SectionKind.h
(7.53 KB)
📄
StringTableBuilder.h
(2.47 KB)
📄
SubtargetFeature.h
(7.12 KB)
Editing: MCSymbolMachO.h
//===- MCSymbolMachO.h - ---------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCSYMBOLMACHO_H #define LLVM_MC_MCSYMBOLMACHO_H #include "llvm/ADT/Twine.h" #include "llvm/MC/MCSymbol.h" namespace llvm { class MCSymbolMachO : public MCSymbol { /// We store the value for the 'desc' symbol field in the /// lowest 16 bits of the implementation defined flags. enum MachOSymbolFlags : uint16_t { // See <mach-o/nlist.h>. SF_DescFlagsMask = 0xFFFF, // Reference type flags. SF_ReferenceTypeMask = 0x0007, SF_ReferenceTypeUndefinedNonLazy = 0x0000, SF_ReferenceTypeUndefinedLazy = 0x0001, SF_ReferenceTypeDefined = 0x0002, SF_ReferenceTypePrivateDefined = 0x0003, SF_ReferenceTypePrivateUndefinedNonLazy = 0x0004, SF_ReferenceTypePrivateUndefinedLazy = 0x0005, // Other 'desc' flags. SF_ThumbFunc = 0x0008, SF_NoDeadStrip = 0x0020, SF_WeakReference = 0x0040, SF_WeakDefinition = 0x0080, SF_SymbolResolver = 0x0100, SF_AltEntry = 0x0200, SF_Cold = 0x0400, // Common alignment SF_CommonAlignmentMask = 0xF0FF, SF_CommonAlignmentShift = 8 }; public: MCSymbolMachO(const StringMapEntry<bool> *Name, bool isTemporary) : MCSymbol(SymbolKindMachO, Name, isTemporary) {} // Reference type methods. void clearReferenceType() const { modifyFlags(0, SF_ReferenceTypeMask); } void setReferenceTypeUndefinedLazy(bool Value) const { modifyFlags(Value ? SF_ReferenceTypeUndefinedLazy : 0, SF_ReferenceTypeUndefinedLazy); } // Other 'desc' methods. void setThumbFunc() const { modifyFlags(SF_ThumbFunc, SF_ThumbFunc); } bool isNoDeadStrip() const { return getFlags() & SF_NoDeadStrip; } void setNoDeadStrip() const { modifyFlags(SF_NoDeadStrip, SF_NoDeadStrip); } bool isWeakReference() const { return getFlags() & SF_WeakReference; } void setWeakReference() const { modifyFlags(SF_WeakReference, SF_WeakReference); } bool isWeakDefinition() const { return getFlags() & SF_WeakDefinition; } void setWeakDefinition() const { modifyFlags(SF_WeakDefinition, SF_WeakDefinition); } bool isSymbolResolver() const { return getFlags() & SF_SymbolResolver; } void setSymbolResolver() const { modifyFlags(SF_SymbolResolver, SF_SymbolResolver); } void setAltEntry() const { modifyFlags(SF_AltEntry, SF_AltEntry); } bool isAltEntry() const { return getFlags() & SF_AltEntry; } void setCold() const { modifyFlags(SF_Cold, SF_Cold); } bool isCold() const { return getFlags() & SF_Cold; } void setDesc(unsigned Value) const { assert(Value == (Value & SF_DescFlagsMask) && "Invalid .desc value!"); setFlags(Value & SF_DescFlagsMask); } /// Get the encoded value of the flags as they will be emitted in to /// the MachO binary uint16_t getEncodedFlags(bool EncodeAsAltEntry) const { uint16_t Flags = getFlags(); // Common alignment is packed into the 'desc' bits. if (isCommon()) { if (unsigned Align = getCommonAlignment()) { unsigned Log2Size = Log2_32(Align); assert((1U << Log2Size) == Align && "Invalid 'common' alignment!"); if (Log2Size > 15) report_fatal_error("invalid 'common' alignment '" + Twine(Align) + "' for '" + getName() + "'", false); Flags = (Flags & SF_CommonAlignmentMask) | (Log2Size << SF_CommonAlignmentShift); } } if (EncodeAsAltEntry) Flags |= SF_AltEntry; return Flags; } static bool classof(const MCSymbol *S) { return S->isMachO(); } }; } #endif
Upload File
Create Folder