LLVM
24.0.0git
lib
Target
SystemZ
MCTargetDesc
SystemZMCAsmInfo.h
Go to the documentation of this file.
1
//====-- SystemZMCAsmInfo.h - SystemZ asm properties -----------*- 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
#ifndef LLVM_LIB_TARGET_SYSTEMZ_MCTARGETDESC_SYSTEMZMCASMINFO_H
10
#define LLVM_LIB_TARGET_SYSTEMZ_MCTARGETDESC_SYSTEMZMCASMINFO_H
11
12
#include "
llvm/MC/MCAsmInfoELF.h
"
13
#include "
llvm/MC/MCAsmInfoGOFF.h
"
14
#include "
llvm/Support/Compiler.h
"
15
16
namespace
llvm
{
17
class
Triple
;
18
enum
SystemZAsmDialect
{
AD_GNU
= 0,
AD_HLASM
= 1 };
19
20
class
SystemZMCAsmInfoELF
:
public
MCAsmInfoELF
{
21
public
:
22
explicit
SystemZMCAsmInfoELF
(
const
Triple
&TT,
23
const
MCTargetOptions
&
Options
);
24
};
25
26
class
SystemZMCAsmInfoGOFF
:
public
MCAsmInfoGOFF
{
27
public
:
28
explicit
SystemZMCAsmInfoGOFF
(
const
Triple
&TT,
29
const
MCTargetOptions
&
Options
);
30
void
printSpecifierExpr
(
raw_ostream
&OS,
31
const
MCSpecifierExpr
&Expr)
const override
;
32
bool
evaluateAsRelocatableImpl
(
const
MCSpecifierExpr
&Expr,
MCValue
&Res,
33
const
MCAssembler
*Asm)
const override
;
34
const
MCExpr
*
getDwarfSectionOffsetExpr
(
const
MCSymbol
*Sym,
uint64_t
Offset
,
35
MCContext
&Ctx)
const override
;
36
};
37
38
namespace
SystemZ
{
39
using
Specifier
=
uint16_t
;
40
enum
{
41
S_None
,
42
43
S_DTPOFF
,
44
S_GOT
,
45
S_GOTENT
,
46
S_INDNTPOFF
,
47
S_NTPOFF
,
48
S_PLT
,
49
S_TLSGD
,
50
S_TLSLD
,
51
S_TLSLDM
,
52
53
// HLASM docs for address constants:
54
// https://www.ibm.com/docs/en/hla-and-tf/1.6?topic=value-address-constants
55
S_RCon
,
// Address of ADA of symbol.
56
S_VCon
,
// Address of external function symbol.
57
S_QCon
,
// Class-based offset.
58
};
59
}
// namespace SystemZ
60
61
}
// end namespace llvm
62
63
#endif
uint64_t
uint64_t uint64_t
Definition
AMDGPUDisassembler.cpp:568
Compiler.h
Options
static LVOptions Options
Definition
LVOptions.cpp:25
MCAsmInfoELF.h
MCAsmInfoGOFF.h
This file defines certain target specific asm properties for GOFF (z/OS) based targets.
llvm::MCAsmInfoELF::MCAsmInfoELF
MCAsmInfoELF(const MCTargetOptions &Options)
Definition
MCAsmInfoELF.cpp:43
llvm::MCAsmInfoGOFF::MCAsmInfoGOFF
MCAsmInfoGOFF(const MCTargetOptions &Options)
Definition
MCAsmInfoGOFF.cpp:20
llvm::MCAssembler
Definition
MCAssembler.h:47
llvm::MCContext
Context object for machine code objects.
Definition
MCContext.h:84
llvm::MCExpr
Base class for the full range of assembler expressions which are needed for parsing.
Definition
MCExpr.h:34
llvm::MCSpecifierExpr
Extension point for target-specific MCExpr subclasses with a relocation specifier,...
Definition
MCExpr.h:494
llvm::MCSymbol
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition
MCSymbol.h:42
llvm::MCTargetOptions
Definition
MCTargetOptions.h:42
llvm::MCValue
Definition
MCValue.h:30
llvm::SystemZMCAsmInfoELF::SystemZMCAsmInfoELF
SystemZMCAsmInfoELF(const Triple &TT, const MCTargetOptions &Options)
Definition
SystemZMCAsmInfo.cpp:26
llvm::SystemZMCAsmInfoGOFF::evaluateAsRelocatableImpl
bool evaluateAsRelocatableImpl(const MCSpecifierExpr &Expr, MCValue &Res, const MCAssembler *Asm) const override
Definition
SystemZMCAsmInfo.cpp:94
llvm::SystemZMCAsmInfoGOFF::SystemZMCAsmInfoGOFF
SystemZMCAsmInfoGOFF(const Triple &TT, const MCTargetOptions &Options)
Definition
SystemZMCAsmInfo.cpp:42
llvm::SystemZMCAsmInfoGOFF::getDwarfSectionOffsetExpr
const MCExpr * getDwarfSectionOffsetExpr(const MCSymbol *Sym, uint64_t Offset, MCContext &Ctx) const override
Return the expression used to emit the offset of Sym + Offset from the start of its DWARF section.
Definition
SystemZMCAsmInfo.cpp:62
llvm::SystemZMCAsmInfoGOFF::printSpecifierExpr
void printSpecifierExpr(raw_ostream &OS, const MCSpecifierExpr &Expr) const override
Definition
SystemZMCAsmInfo.cpp:71
llvm::Triple
Triple - Helper class for working with autoconf configuration names.
Definition
Triple.h:48
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition
raw_ostream.h:53
uint16_t
llvm::SystemZ
Definition
SystemZMCAsmInfo.h:38
llvm::SystemZ::Specifier
uint16_t Specifier
Definition
SystemZMCAsmInfo.h:39
llvm::SystemZ::S_DTPOFF
@ S_DTPOFF
Definition
SystemZMCAsmInfo.h:43
llvm::SystemZ::S_TLSGD
@ S_TLSGD
Definition
SystemZMCAsmInfo.h:49
llvm::SystemZ::S_QCon
@ S_QCon
Definition
SystemZMCAsmInfo.h:57
llvm::SystemZ::S_NTPOFF
@ S_NTPOFF
Definition
SystemZMCAsmInfo.h:47
llvm::SystemZ::S_INDNTPOFF
@ S_INDNTPOFF
Definition
SystemZMCAsmInfo.h:46
llvm::SystemZ::S_TLSLD
@ S_TLSLD
Definition
SystemZMCAsmInfo.h:50
llvm::SystemZ::S_RCon
@ S_RCon
Definition
SystemZMCAsmInfo.h:55
llvm::SystemZ::S_TLSLDM
@ S_TLSLDM
Definition
SystemZMCAsmInfo.h:51
llvm::SystemZ::S_VCon
@ S_VCon
Definition
SystemZMCAsmInfo.h:56
llvm::SystemZ::S_None
@ S_None
Definition
SystemZMCAsmInfo.h:41
llvm::SystemZ::S_GOTENT
@ S_GOTENT
Definition
SystemZMCAsmInfo.h:45
llvm::SystemZ::S_PLT
@ S_PLT
Definition
SystemZMCAsmInfo.h:48
llvm::SystemZ::S_GOT
@ S_GOT
Definition
SystemZMCAsmInfo.h:44
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition
DefaultTargetInfo.h:21
llvm::Offset
@ Offset
Definition
DWP.cpp:577
llvm::SystemZAsmDialect
SystemZAsmDialect
Definition
SystemZMCAsmInfo.h:18
llvm::AD_HLASM
@ AD_HLASM
Definition
SystemZMCAsmInfo.h:18
llvm::AD_GNU
@ AD_GNU
Definition
SystemZMCAsmInfo.h:18
Generated on
for LLVM by
1.14.0