Home
last modified time | relevance | path

Searched refs:AVRMCExpr (Results 1 – 8 of 8) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRMCExpr.cpp22 AVRMCExpr::VariantKind VariantKind;
24 {"lo8", AVRMCExpr::VK_AVR_LO8}, {"hi8", AVRMCExpr::VK_AVR_HI8},
25 {"hh8", AVRMCExpr::VK_AVR_HH8}, // synonym with hlo8
26 {"hlo8", AVRMCExpr::VK_AVR_HH8}, {"hhi8", AVRMCExpr::VK_AVR_HHI8},
28 {"pm", AVRMCExpr::VK_AVR_PM}, {"pm_lo8", AVRMCExpr::VK_AVR_PM_LO8},
29 {"pm_hi8", AVRMCExpr::VK_AVR_PM_HI8}, {"pm_hh8", AVRMCExpr::VK_AVR_PM_HH8},
31 {"lo8_gs", AVRMCExpr::VK_AVR_LO8_GS}, {"hi8_gs", AVRMCExpr::VK_AVR_HI8_GS},
32 {"gs", AVRMCExpr::VK_AVR_GS},
37 const AVRMCExpr *AVRMCExpr::create(VariantKind Kind, const MCExpr *Expr, in create()
39 return new (Ctx) AVRMCExpr(Kind, Expr, Negated); in create()
[all …]
H A DAVRMCELFStreamer.cpp25 AVRMCExpr::VariantKind ModifierKind) { in emitValueForModiferKind()
27 if (ModifierKind == AVRMCExpr::VK_AVR_None) { in emitValueForModiferKind()
33 } else if (ModifierKind == AVRMCExpr::VK_AVR_LO8) in emitValueForModiferKind()
35 else if (ModifierKind == AVRMCExpr::VK_AVR_HI8) in emitValueForModiferKind()
37 else if (ModifierKind == AVRMCExpr::VK_AVR_HH8) in emitValueForModiferKind()
H A DAVRMCExpr.h19 class AVRMCExpr : public MCTargetExpr {
42 static const AVRMCExpr *create(VariantKind Kind, const MCExpr *Expr,
85 explicit AVRMCExpr(VariantKind Kind, const MCExpr *Expr, bool Negated) in AVRMCExpr() function
87 ~AVRMCExpr() = default;
H A DAVRMCELFStreamer.h46 AVRMCExpr::VariantKind ModifierKind = AVRMCExpr::VK_AVR_None);
H A DAVRMCCodeEmitter.cpp15 #include "MCTargetDesc/AVRMCExpr.h"
191 if (isa<AVRMCExpr>(MO.getExpr())) { in encodeImm()
192 // If the expression is already an AVRMCExpr (i.e. a lo8(symbol), in encodeImm()
240 AVRMCExpr const *AVRExpr = cast<AVRMCExpr>(Expr); in getExprOpValue()
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRMCInstLower.cpp46 AVRMCExpr::create(Subtarget.hasEIJMPCALL() ? AVRMCExpr::VK_AVR_LO8_GS in lowerSymbolOperand()
47 : AVRMCExpr::VK_AVR_PM_LO8, in lowerSymbolOperand()
50 Expr = AVRMCExpr::create(AVRMCExpr::VK_AVR_LO8, Expr, IsNegated, Ctx); in lowerSymbolOperand()
55 AVRMCExpr::create(Subtarget.hasEIJMPCALL() ? AVRMCExpr::VK_AVR_HI8_GS in lowerSymbolOperand()
56 : AVRMCExpr::VK_AVR_PM_HI8, in lowerSymbolOperand()
59 Expr = AVRMCExpr::create(AVRMCExpr::VK_AVR_HI8, Expr, IsNegated, Ctx); in lowerSymbolOperand()
H A DAVRAsmPrinter.cpp210 return AVRMCExpr::create(AVRMCExpr::VK_AVR_PM, Expr, false, Ctx); in lowerConstant()
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/
H A DAVRAsmParser.cpp452 AVRMCExpr::VariantKind ModifierKind = AVRMCExpr::VK_AVR_None; in tryParseRelocExpression()
476 ModifierKind = AVRMCExpr::getKindByName(ModifierName); in tryParseRelocExpression()
478 if (ModifierKind != AVRMCExpr::VK_AVR_None) { in tryParseRelocExpression()
484 ModifierKind = AVRMCExpr::getKindByName(GSModName); in tryParseRelocExpression()
485 if (ModifierKind != AVRMCExpr::VK_AVR_None) in tryParseRelocExpression()
514 AVRMCExpr::create(ModifierKind, InnerExpression, isNegated, getContext()); in tryParseRelocExpression()
703 AVRMCExpr::VK_AVR_None); in parseLiteralValues()
710 AVRMCExpr::VariantKind ModifierKind = in parseLiteralValues()
711 AVRMCExpr::getKindByName(ModifierName); in parseLiteralValues()
712 if (ModifierKind != AVRMCExpr::VK_AVR_None) { in parseLiteralValues()