LLVM 24.0.0git
AVRMCAsmInfo.h
Go to the documentation of this file.
1//===-- AVRMCAsmInfo.h - AVR 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// This file contains the declaration of the AVRMCAsmInfo class.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_AVR_ASM_INFO_H
14#define LLVM_AVR_ASM_INFO_H
15
18#include "llvm/MC/MCExpr.h"
19
20namespace llvm {
21
22class Triple;
23
24/// Specifies the format of AVR assembly files.
25class AVRMCAsmInfo : public MCAsmInfoELF {
26public:
27 explicit AVRMCAsmInfo(const Triple &TT, const MCTargetOptions &Options);
28};
29
30namespace AVR {
32enum {
34
36
37 S_HI8, ///< Corresponds to `hi8()`.
38 S_LO8, ///< Corresponds to `lo8()`.
39 S_HH8, ///< Corresponds to `hlo8() and hh8()`.
40 S_HHI8, ///< Corresponds to `hhi8()`.
41
42 S_PM, ///< Corresponds to `pm()`, reference to program memory.
43 S_PM_LO8, ///< Corresponds to `pm_lo8()`.
44 S_PM_HI8, ///< Corresponds to `pm_hi8()`.
45 S_PM_HH8, ///< Corresponds to `pm_hh8()`.
46
47 S_LO8_GS, ///< Corresponds to `lo8(gs())`.
48 S_HI8_GS, ///< Corresponds to `hi8(gs())`.
49 S_GS, ///< Corresponds to `gs()`.
50
54};
55} // namespace AVR
56
57} // end namespace llvm
58
59#endif // LLVM_AVR_ASM_INFO_H
static LVOptions Options
Definition LVOptions.cpp:25
AVRMCAsmInfo(const Triple &TT, const MCTargetOptions &Options)
MCAsmInfoELF(const Triple &TT, const MCTargetOptions &Options)
Triple - Helper class for working with autoconf configuration names.
Definition Triple.h:48
Contains the AVR backend.
@ S_LO8
Corresponds to lo8().
@ S_LO8_GS
Corresponds to lo8(gs()).
@ S_HH8
Corresponds to hlo8() and hh8().
@ S_PM_HH8
Corresponds to pm_hh8().
@ S_HHI8
Corresponds to hhi8().
@ S_PM_LO8
Corresponds to pm_lo8().
@ S_PM
Corresponds to pm(), reference to program memory.
@ S_GS
Corresponds to gs().
@ S_HI8_GS
Corresponds to hi8(gs()).
@ S_PM_HI8
Corresponds to pm_hi8().
@ S_HI8
Corresponds to hi8().
uint16_t Specifier
This is an optimization pass for GlobalISel generic memory operations.