LLVM: lib/Target/AVR/MCTargetDesc/AVRMCExpr.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9#ifndef LLVM_AVR_MCEXPR_H
10#define LLVM_AVR_MCEXPR_H
11
13
15
16namespace llvm {
17
18
20public:
23
24
25public:
26
29
30
31 const char *getName() const;
32
34
36
37 bool isNegated() const { return Negated; }
38 void setNegated(bool negated = true) { Negated = negated; }
39
40public:
42
43private:
45
46 bool Negated;
47
48private:
51};
52
53}
54
55#endif
static std::optional< int64_t > evaluateAsInt64(uint16_t specifier, int64_t Value)
A expression in AVR machine code.
Definition AVRMCExpr.h:19
bool evaluateAsConstant(int64_t &Result) const
Evaluates the fixup as a constant value.
void setNegated(bool negated=true)
Definition AVRMCExpr.h:38
static const AVRMCExpr * create(Specifier S, const MCExpr *Expr, bool isNegated, MCContext &Ctx)
Specifies the type of an expression.
friend class AVRMCAsmInfo
Definition AVRMCExpr.h:21
bool isNegated() const
Definition AVRMCExpr.h:37
const char * getName() const
Gets the name of the expression.
static Specifier parseSpecifier(StringRef Name)
Spec Specifier
Definition AVRMCExpr.h:22
AVR::Fixups getFixupKind() const
Gets the fixup which corresponds to the expression.
Context object for machine code objects.
Base class for the full range of assembler expressions which are needed for parsing.
Extension point for target-specific MCExpr subclasses with a relocation specifier,...
MCSpecifierExpr(const MCExpr *Expr, Spec S, SMLoc Loc=SMLoc())
StringRef - Represent a constant reference to a string, i.e.
LLVM Value Representation.
Fixups
The set of supported fixups.
This is an optimization pass for GlobalISel generic memory operations.