LLVM 19.0.0git
Go to the documentation of this file.
1//==- HexagonMCExpr.h - Hexagon specific MC expression classes --*- C++ -*-===//
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
12#include "llvm/MC/MCExpr.h"
14namespace llvm {
17 static HexagonMCExpr *create(MCExpr const *Expr, MCContext &Ctx);
18 void printImpl(raw_ostream &OS, const MCAsmInfo *MAI) const override;
19 bool evaluateAsRelocatableImpl(MCValue &Res, const MCAsmLayout *Layout,
20 const MCFixup *Fixup) const override;
21 void visitUsedExpr(MCStreamer &Streamer) const override;
22 MCFragment *findAssociatedFragment() const override;
23 void fixELFSymbolsInTLSFixups(MCAssembler &Asm) const override;
24 MCExpr const *getExpr() const;
25 void setMustExtend(bool Val = true);
26 bool mustExtend() const;
27 void setMustNotExtend(bool Val = true);
28 bool mustNotExtend() const;
29 void setS27_2_reloc(bool Val = true);
30 bool s27_2_reloc() const;
31 void setSignMismatch(bool Val = true);
32 bool signMismatch() const;
35 HexagonMCExpr(MCExpr const *Expr);
36 MCExpr const *Expr;
37 bool MustNotExtend;
38 bool MustExtend;
39 bool S27_2_reloc;
40 bool SignMismatch;
42} // end namespace llvm
PowerPC TLS Dynamic Call Fixup
raw_pwrite_stream & OS
void setMustNotExtend(bool Val=true)
bool evaluateAsRelocatableImpl(MCValue &Res, const MCAsmLayout *Layout, const MCFixup *Fixup) const override
bool mustNotExtend() const
void printImpl(raw_ostream &OS, const MCAsmInfo *MAI) const override
void fixELFSymbolsInTLSFixups(MCAssembler &Asm) const override
bool signMismatch() const
bool mustExtend() const
static HexagonMCExpr * create(MCExpr const *Expr, MCContext &Ctx)
bool s27_2_reloc() const
void setMustExtend(bool Val=true)
MCFragment * findAssociatedFragment() const override
MCExpr const * getExpr() const
void setS27_2_reloc(bool Val=true)
void setSignMismatch(bool Val=true)
void visitUsedExpr(MCStreamer &Streamer) const override
This class is intended to be used as a base class for asm properties and features specific to the tar...
Definition: MCAsmInfo.h:56
Encapsulates the layout of an assembly file at a particular point in time.
Definition: MCAsmLayout.h:28
Context object for machine code objects.
Definition: MCContext.h:81
Base class for the full range of assembler expressions which are needed for parsing.
Definition: MCExpr.h:35
Encode information on a single operation to perform on a byte sequence (e.g., an encoded instruction)...
Definition: MCFixup.h:71
Streaming machine code generation interface.
Definition: MCStreamer.h:212
This is an extension point for target-specific MCExpr subclasses to implement.
Definition: MCExpr.h:656
This represents an "assembler immediate".
Definition: MCValue.h:36
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:52
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18