LLVM 24.0.0git
MCSymbolELF.h
Go to the documentation of this file.
1//===- MCSymbolELF.h - -----------------------------------------*- 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#ifndef LLVM_MC_MCSYMBOLELF_H
9#define LLVM_MC_MCSYMBOLELF_H
10
11#include "llvm/MC/MCSymbol.h"
13
14namespace llvm {
15class MCSymbolELF : public MCSymbol {
16 /// An expression describing how to calculate the size of a symbol. If a
17 /// symbol has no size this field will be NULL.
18 const MCExpr *SymbolSize = nullptr;
19
20public:
23 void setSize(const MCExpr *SS) { SymbolSize = SS; }
24
25 const MCExpr *getSize() const { return SymbolSize; }
26
27 LLVM_ABI void setVisibility(unsigned Visibility);
28 LLVM_ABI unsigned getVisibility() const;
29
30 LLVM_ABI void setOther(unsigned Other);
31 LLVM_ABI unsigned getOther() const;
32
33 LLVM_ABI void setType(unsigned Type) const;
34 LLVM_ABI unsigned getType() const;
35
36 LLVM_ABI void setBinding(unsigned Binding) const;
37 LLVM_ABI unsigned getBinding() const;
38
39 LLVM_ABI bool isBindingSet() const;
40
41 LLVM_ABI void setIsWeakref() const;
42 LLVM_ABI bool isWeakref() const;
43
44 LLVM_ABI void setIsSignature() const;
45 LLVM_ABI bool isSignature() const;
46
47 LLVM_ABI void setMemtag(bool Tagged);
48 LLVM_ABI bool isMemtag() const;
49
50private:
51 void setIsBindingSet() const;
52};
53}
54
55#endif
#define LLVM_ABI
Definition Compiler.h:211
DXIL Resource Implicit Binding
LLVM_ABI bool isMemtag() const
LLVM_ABI void setIsWeakref() const
LLVM_ABI unsigned getOther() const
LLVM_ABI unsigned getType() const
LLVM_ABI void setVisibility(unsigned Visibility)
LLVM_ABI void setMemtag(bool Tagged)
void setSize(const MCExpr *SS)
Definition MCSymbolELF.h:23
LLVM_ABI bool isBindingSet() const
LLVM_ABI void setIsSignature() const
const MCExpr * getSize() const
Definition MCSymbolELF.h:25
MCSymbolELF(const MCSymbolTableEntry *Name, bool isTemporary)
Definition MCSymbolELF.h:21
LLVM_ABI void setBinding(unsigned Binding) const
LLVM_ABI bool isSignature() const
LLVM_ABI unsigned getVisibility() const
LLVM_ABI unsigned getBinding() const
LLVM_ABI void setType(unsigned Type) const
LLVM_ABI void setOther(unsigned Other)
LLVM_ABI bool isWeakref() const
MCSymbol(const MCSymbolTableEntry *Name, bool isTemporary)
Definition MCSymbol.h:146
friend class MCExpr
Definition MCSymbol.h:134
bool isTemporary() const
isTemporary - Check if this is an assembler temporary symbol.
Definition MCSymbol.h:205
The instances of the Type class are immutable: once they are created, they are never changed.
Definition Type.h:46
This is an optimization pass for GlobalISel generic memory operations.
@ Other
Any other memory.
Definition ModRef.h:68
StringMapEntry< MCSymbolTableValue > MCSymbolTableEntry
MCContext stores MCSymbolTableValue in a string map (see MCSymbol::operator new).