Home
last modified time | relevance | path

Searched refs:CSKYMCExpr (Results 1 – 9 of 9) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/MCTargetDesc/
H A DCSKYELFObjectWriter.cpp82 auto TK = cast<CSKYMCExpr>(Expr)->getKind(); in getRelocType()
83 if (TK == CSKYMCExpr::VK_CSKY_ADDR) in getRelocType()
85 if (TK == CSKYMCExpr::VK_CSKY_GOT) in getRelocType()
87 if (TK == CSKYMCExpr::VK_CSKY_GOTOFF) in getRelocType()
89 if (TK == CSKYMCExpr::VK_CSKY_PLT) in getRelocType()
91 if (TK == CSKYMCExpr::VK_CSKY_TLSIE) in getRelocType()
93 if (TK == CSKYMCExpr::VK_CSKY_TLSLE) in getRelocType()
95 if (TK == CSKYMCExpr::VK_CSKY_TLSGD) in getRelocType()
97 if (TK == CSKYMCExpr::VK_CSKY_TLSLDM) in getRelocType()
99 if (TK == CSKYMCExpr::VK_CSKY_TLSLDO) in getRelocType()
[all …]
H A DCSKYMCExpr.cpp22 const CSKYMCExpr *CSKYMCExpr::create(const MCExpr *Expr, VariantKind Kind, in create()
24 return new (Ctx) CSKYMCExpr(Kind, Expr); in create()
27 StringRef CSKYMCExpr::getVariantKindName(VariantKind Kind) { in getVariantKindName()
61 void CSKYMCExpr::visitUsedExpr(MCStreamer &Streamer) const { in visitUsedExpr()
65 void CSKYMCExpr::printImpl(raw_ostream &OS, const MCAsmInfo *MAI) const { in printImpl()
99 void CSKYMCExpr::fixELFSymbolsInTLSFixups(MCAssembler &Asm) const { in fixELFSymbolsInTLSFixups()
112 bool CSKYMCExpr::evaluateAsRelocatableImpl(MCValue &Res, const MCAssembler *Asm, in evaluateAsRelocatableImpl()
H A DCSKYTargetStreamer.cpp60 const CSKYMCExpr *CSKYExpr = cast<CSKYMCExpr>(Value); in addEntry()
64 Value = CSKYMCExpr::create(Value, CSKYExpr->getKind(), Context); in addEntry()
87 auto ELFRefKind = CSKYMCExpr::VK_CSKY_Invalid; in addConstantPoolEntry()
92 if (const CSKYMCExpr *CE = dyn_cast<CSKYMCExpr>(Expr)) { in addConstantPoolEntry()
H A DCSKYMCCodeEmitter.cpp14 #include "CSKYMCExpr.h"
294 const CSKYMCExpr *CSKYExpr = cast<CSKYMCExpr>(Expr); in getImmJMPIX()
299 case CSKYMCExpr::VK_CSKY_ADDR: in getImmJMPIX()
301 case CSKYMCExpr::VK_CSKY_ADDR_HI16: in getImmJMPIX()
303 case CSKYMCExpr::VK_CSKY_ADDR_LO16: in getTargetFixup()
305 case CSKYMCExpr::VK_CSKY_GOT: in getTargetFixup()
307 case CSKYMCExpr::VK_CSKY_GOTPC: in getTargetFixup()
309 case CSKYMCExpr::VK_CSKY_GOTOFF: in getTargetFixup()
311 case CSKYMCExpr in getTargetFixup()
[all...]
H A DCSKYMCExpr.h17 class CSKYMCExpr : public MCTargetExpr {
43 explicit CSKYMCExpr(VariantKind Kind, const MCExpr *Expr) in CSKYMCExpr() function
47 static const CSKYMCExpr *create(const MCExpr *Expr, VariantKind Kind,
H A DCSKYTargetStreamer.h49 CSKYMCExpr::VariantKind kind;
79 return {nullptr, CSKYMCExpr::VK_CSKY_Invalid};
82 return {nullptr, CSKYMCExpr::VK_CSKY_Invalid};
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/
H A DCSKYMCInstLower.cpp39 CSKYMCExpr::VariantKind Kind; in lowerSymbolOperand()
46 Kind = CSKYMCExpr::VK_CSKY_None; in lowerSymbolOperand()
49 Kind = CSKYMCExpr::VK_CSKY_GOT; in lowerSymbolOperand()
52 Kind = CSKYMCExpr::VK_CSKY_GOTOFF; in lowerSymbolOperand()
55 Kind = CSKYMCExpr::VK_CSKY_ADDR; in lowerSymbolOperand()
58 Kind = CSKYMCExpr::VK_CSKY_PLT; in lowerSymbolOperand()
61 Kind = CSKYMCExpr::VK_CSKY_ADDR_HI16; in lowerSymbolOperand()
64 Kind = CSKYMCExpr::VK_CSKY_ADDR_LO16; in lowerSymbolOperand()
70 if (Kind != CSKYMCExpr::VK_CSKY_None) in lowerSymbolOperand()
71 ME = CSKYMCExpr::create(ME, Kind, Ctx); in lowerSymbolOperand()
H A DCSKYAsmPrinter.cpp169 static CSKYMCExpr::VariantKind
173 return CSKYMCExpr::VK_CSKY_None; in getModifierVariantKind()
175 return CSKYMCExpr::VK_CSKY_ADDR; in getModifierVariantKind()
177 return CSKYMCExpr::VK_CSKY_GOT; in getModifierVariantKind()
179 return CSKYMCExpr::VK_CSKY_GOTOFF; in getModifierVariantKind()
181 return CSKYMCExpr::VK_CSKY_PLT; in getModifierVariantKind()
183 return CSKYMCExpr::VK_CSKY_TLSGD; in getModifierVariantKind()
185 return CSKYMCExpr::VK_CSKY_TLSLE; in getModifierVariantKind()
187 return CSKYMCExpr::VK_CSKY_TLSIE; in getModifierVariantKind()
242 Expr = CSKYMCExpr::create(Expr, getModifierVariantKind(CCPV->getModifier()), in emitMachineConstantPoolValue()
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/AsmParser/
H A DCSKYAsmParser.cpp851 if (const CSKYMCExpr *CSKYExpr = in processLRW()
852 dyn_cast<CSKYMCExpr>(Inst.getOperand(1).getExpr())) { in processLRW()
853 if (CSKYExpr->getKind() == CSKYMCExpr::VK_CSKY_TLSGD || in processLRW()
854 CSKYExpr->getKind() == CSKYMCExpr::VK_CSKY_TLSIE || in processLRW()
855 CSKYExpr->getKind() == CSKYMCExpr::VK_CSKY_TLSLDM) { in processLRW()
1175 CSKYMCExpr::VariantKind Kind = CSKYMCExpr::VK_CSKY_None; in parseCSKYSymbol()
1177 Kind = CSKYMCExpr::VK_CSKY_GOT; in parseCSKYSymbol()
1179 Kind = CSKYMCExpr::VK_CSKY_GOTOFF; in parseCSKYSymbol()
1181 Kind = CSKYMCExpr::VK_CSKY_PLT; in parseCSKYSymbol()
1183 Kind = CSKYMCExpr::VK_CSKY_GOTPC; in parseCSKYSymbol()
[all …]