LLVM 22.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};
34
36 void anchor() override;
37
38public:
39 explicit MipsCOFFMCAsmInfo();
41 const MCSpecifierExpr &Expr) const override;
43 const MCAssembler *Asm) const override;
44};
45
46namespace Mips {
48enum {
76};
77
78bool isGpOff(const MCSpecifierExpr &E);
79const MCSpecifierExpr *createGpOff(const MCExpr *Expr, Specifier S,
80 MCContext &Ctx);
81}
82
83} // namespace llvm
84
85#endif
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
static LVOptions Options
Definition: LVOptions.cpp:25
raw_pwrite_stream & OS
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:495
bool evaluateAsRelocatableImpl(const MCSpecifierExpr &Expr, MCValue &Res, const MCAssembler *Asm) const override
void printSpecifierExpr(raw_ostream &OS, const MCSpecifierExpr &Expr) const override
void printSpecifierExpr(raw_ostream &OS, const MCSpecifierExpr &Expr) const override
bool evaluateAsRelocatableImpl(const MCSpecifierExpr &Expr, MCValue &Res, const MCAssembler *Asm) const override
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:47
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:53
bool isGpOff(const MCSpecifierExpr &E)
uint16_t Specifier
Definition: MipsMCAsmInfo.h:47
const MCSpecifierExpr * createGpOff(const MCExpr *Expr, Specifier S, MCContext &Ctx)
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
@ FirstTargetFixupKind
Definition: MCFixup.h:44