LLVM 24.0.0git
MipsMCAsmInfo.h
Go to the documentation of this file.
1//===-- MipsMCAsmInfo.h - Mips Asm Info ------------------------*- 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 MipsMCAsmInfo class.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSMCASMINFO_H
14#define LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSMCASMINFO_H
15
18#include "llvm/MC/MCFixup.h"
19
20namespace llvm {
21class Triple;
22
24 void anchor() override;
25
26public:
27 explicit MipsELFMCAsmInfo(const Triple &TheTriple,
30 const MCSpecifierExpr &Expr) const override;
32 const MCAssembler *Asm) const override;
33 bool usesCompInstByteOrder(const MCSubtargetInfo &STI) const override;
34};
35
37 void anchor() override;
38
39public:
42 const MCSpecifierExpr &Expr) const override;
44 const MCAssembler *Asm) const override;
45};
46
47namespace Mips {
49enum {
77};
78
79bool isGpOff(const MCSpecifierExpr &E);
80const MCSpecifierExpr *createGpOff(const MCExpr *Expr, Specifier S,
81 MCContext &Ctx);
82}
83
84} // namespace llvm
85
86#endif
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
static LVOptions Options
Definition LVOptions.cpp:25
MCAsmInfoELF(const MCTargetOptions &Options)
MCAsmInfoGNUCOFF(const MCTargetOptions &Options)
Context object for machine code objects.
Definition MCContext.h:83
Base class for the full range of assembler expressions which are needed for parsing.
Definition MCExpr.h:34
Extension point for target-specific MCExpr subclasses with a relocation specifier,...
Definition MCExpr.h:494
Generic base class for all target subtargets.
bool evaluateAsRelocatableImpl(const MCSpecifierExpr &Expr, MCValue &Res, const MCAssembler *Asm) const override
MipsCOFFMCAsmInfo(const MCTargetOptions &Options)
void printSpecifierExpr(raw_ostream &OS, const MCSpecifierExpr &Expr) const override
void printSpecifierExpr(raw_ostream &OS, const MCSpecifierExpr &Expr) const override
bool usesCompInstByteOrder(const MCSubtargetInfo &STI) const override
True if the instruction is stored in multiple halfwords, with the high-order half appearing first in ...
MipsELFMCAsmInfo(const Triple &TheTriple, const MCTargetOptions &Options)
bool evaluateAsRelocatableImpl(const MCSpecifierExpr &Expr, MCValue &Res, const MCAssembler *Asm) const override
Triple - Helper class for working with autoconf configuration names.
Definition Triple.h:48
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition raw_ostream.h:53
uint16_t Specifier
bool isGpOff(const MCSpecifierExpr &E)
const MCSpecifierExpr * createGpOff(const MCExpr *Expr, Specifier S, MCContext &Ctx)
This is an optimization pass for GlobalISel generic memory operations.
constexpr MCFixupKind FirstTargetFixupKind
Definition MCFixup.h:49