Home
last modified time | relevance | path

Searched refs:MCExpr (Results 1 – 25 of 148) sorted by relevance

123456

/external/llvm/include/llvm/MC/
DMCExpr.h33 class MCExpr {
46 MCExpr(const MCExpr&) LLVM_DELETED_FUNCTION;
47 void operator=(const MCExpr&) LLVM_DELETED_FUNCTION;
53 explicit MCExpr(ExprKind _Kind) : Kind(_Kind) {} in MCExpr() function
115 inline raw_ostream &operator<<(raw_ostream &OS, const MCExpr &E) {
121 class MCConstantExpr : public MCExpr {
125 : MCExpr(MCExpr::Constant), Value(_Value) {} in MCConstantExpr()
141 static bool classof(const MCExpr *E) { in classof()
142 return E->getKind() == MCExpr::Constant; in classof()
152 class MCSymbolRefExpr : public MCExpr {
[all …]
DMCStreamer.h31 class MCExpr; variable
45 typedef std::pair<const MCSection *, const MCExpr *> MCSectionSubPair;
84 virtual void emitAssignment(MCSymbol *Symbol, const MCExpr *Value);
100 const MCExpr *addConstantPoolEntry(const MCExpr *);
145 virtual void emitThumbSet(MCSymbol *Symbol, const MCExpr *Value);
152 const MCExpr *addConstantPoolEntry(const MCExpr *);
199 const MCExpr *BuildSymbolDiff(MCContext &Context, const MCSymbol *A,
202 const MCExpr *ForceExpAbs(const MCExpr *Expr);
217 void visitUsedExpr(const MCExpr &Expr);
321 virtual void ChangeSection(const MCSection *, const MCExpr *);
[all …]
DConstantPools.h21 class MCExpr; variable
28 typedef SmallVector<std::pair<MCSymbol *, const MCExpr *>, 4> EntryVecTy;
39 const MCExpr *addEntry(const MCExpr *Value, MCContext &Context);
72 const MCExpr *addEntry(MCStreamer &Streamer, const MCExpr *Expr);
DMCObjectStreamer.h21 class MCExpr; variable
90 void EmitAssignment(MCSymbol *Symbol, const MCExpr *Value) override;
91 void EmitValueImpl(const MCExpr *Value, unsigned Size,
93 void EmitULEB128Value(const MCExpr *Value) override;
94 void EmitSLEB128Value(const MCExpr *Value) override;
97 const MCExpr *Subsection) override;
113 bool EmitValueToOffset(const MCExpr *Offset, unsigned char Value) override;
123 void EmitGPRel32Value(const MCExpr *Value) override;
124 void EmitGPRel64Value(const MCExpr *Value) override;
DMCRelocationInfo.h26 class MCExpr; variable
43 virtual const MCExpr *createExprForRelocation(object::RelocationRef Rel);
49 virtual const MCExpr *createExprForCAPIVariantKind(const MCExpr *SubExpr,
DMCSymbol.h21 class MCExpr; variable
49 const MCExpr *Value;
60 friend class MCExpr;
137 const MCExpr *getVariableValue() const { in getVariableValue()
148 void setVariableValue(const MCExpr *Value);
DMCFixup.h20 class MCExpr; variable
66 const MCExpr *Value;
78 static MCFixup Create(uint32_t Offset, const MCExpr *Value,
94 const MCExpr *getValue() const { return Value; } in getValue()
DMCELFStreamer.h24 class MCExpr; variable
49 const MCExpr *Subsection) override;
63 void EmitELFSize(MCSymbol *Symbol, const MCExpr *Value) override;
72 void EmitValueImpl(const MCExpr *Value, unsigned Size,
93 void fixSymbolsInTLSFixups(const MCExpr *expr);
/external/llvm/lib/Target/PowerPC/MCTargetDesc/
DPPCMCExpr.h34 const MCExpr *Expr;
37 explicit PPCMCExpr(VariantKind _Kind, const MCExpr *_Expr, in PPCMCExpr()
45 static const PPCMCExpr *Create(VariantKind Kind, const MCExpr *Expr,
48 static const PPCMCExpr *CreateLo(const MCExpr *Expr, in CreateLo()
53 static const PPCMCExpr *CreateHi(const MCExpr *Expr, in CreateHi()
58 static const PPCMCExpr *CreateHa(const MCExpr *Expr, in CreateHa()
71 const MCExpr *getSubExpr() const { return Expr; } in getSubExpr()
90 static bool classof(const MCExpr *E) { in classof()
91 return E->getKind() == MCExpr::Target; in classof()
/external/llvm/lib/Target/ARM/MCTargetDesc/
DARMMCExpr.h27 const MCExpr *Expr;
29 explicit ARMMCExpr(VariantKind _Kind, const MCExpr *_Expr) in ARMMCExpr()
36 static const ARMMCExpr *Create(VariantKind Kind, const MCExpr *Expr,
39 static const ARMMCExpr *CreateUpper16(const MCExpr *Expr, MCContext &Ctx) { in CreateUpper16()
43 static const ARMMCExpr *CreateLower16(const MCExpr *Expr, MCContext &Ctx) { in CreateLower16()
55 const MCExpr *getSubExpr() const { return Expr; } in getSubExpr()
70 static bool classof(const MCExpr *E) { in classof()
71 return E->getKind() == MCExpr::Target; in classof()
DARMMCExpr.cpp18 ARMMCExpr::Create(VariantKind Kind, const MCExpr *Expr, in Create()
30 const MCExpr *Expr = getSubExpr(); in PrintImpl()
31 if (Expr->getKind() != MCExpr::SymbolRef) in PrintImpl()
34 if (Expr->getKind() != MCExpr::SymbolRef) in PrintImpl()
/external/llvm/lib/Target/Mips/MCTargetDesc/
DMipsMCExpr.h31 const MCExpr *Expr;
33 explicit MipsMCExpr(VariantKind Kind, const MCExpr *Expr) in MipsMCExpr()
41 const MCExpr *Expr, MCContext &Ctx);
47 const MCExpr *getSubExpr() const { return Expr; } in getSubExpr()
60 static bool classof(const MCExpr *E) { in classof()
61 return E->getKind() == MCExpr::Target; in classof()
/external/llvm/lib/Target/AArch64/MCTargetDesc/
DAArch64MCExpr.cpp28 const AArch64MCExpr *AArch64MCExpr::Create(const MCExpr *Expr, VariantKind Kind, in Create()
103 static void fixELFSymbolsInTLSFixupsImpl(const MCExpr *Expr, MCAssembler &Asm) { in fixELFSymbolsInTLSFixupsImpl()
105 case MCExpr::Target: in fixELFSymbolsInTLSFixupsImpl()
108 case MCExpr::Constant: in fixELFSymbolsInTLSFixupsImpl()
111 case MCExpr::Binary: { in fixELFSymbolsInTLSFixupsImpl()
118 case MCExpr::SymbolRef: { in fixELFSymbolsInTLSFixupsImpl()
127 case MCExpr::Unary: in fixELFSymbolsInTLSFixupsImpl()
DAArch64MCExpr.h105 const MCExpr *Expr;
108 explicit AArch64MCExpr(const MCExpr *Expr, VariantKind Kind) in AArch64MCExpr()
115 static const AArch64MCExpr *Create(const MCExpr *Expr, VariantKind Kind,
126 const MCExpr *getSubExpr() const { return Expr; } in getSubExpr()
159 static bool classof(const MCExpr *E) { in classof()
160 return E->getKind() == MCExpr::Target; in classof()
/external/llvm/lib/Target/Sparc/MCTargetDesc/
DSparcMCExpr.h63 const MCExpr *Expr;
65 explicit SparcMCExpr(VariantKind _Kind, const MCExpr *_Expr) in SparcMCExpr()
72 static const SparcMCExpr *Create(VariantKind Kind, const MCExpr *Expr,
82 const MCExpr *getSubExpr() const { return Expr; } in getSubExpr()
98 static bool classof(const MCExpr *E) { in classof()
99 return E->getKind() == MCExpr::Target; in classof()
DSparcMCExpr.cpp29 SparcMCExpr::Create(VariantKind Kind, const MCExpr *Expr, in Create()
41 const MCExpr *Expr = getSubExpr(); in PrintImpl()
168 static void fixELFSymbolsInTLSFixupsImpl(const MCExpr *Expr, MCAssembler &Asm) { in fixELFSymbolsInTLSFixupsImpl()
170 case MCExpr::Target: in fixELFSymbolsInTLSFixupsImpl()
174 case MCExpr::Constant: in fixELFSymbolsInTLSFixupsImpl()
177 case MCExpr::Binary: { in fixELFSymbolsInTLSFixupsImpl()
184 case MCExpr::SymbolRef: { in fixELFSymbolsInTLSFixupsImpl()
191 case MCExpr::Unary: in fixELFSymbolsInTLSFixupsImpl()
/external/llvm/lib/MC/
DMCStreamer.cpp37 void MCTargetStreamer::emitAssignment(MCSymbol *Symbol, const MCExpr *Value) {} in emitAssignment()
58 const MCExpr *MCStreamer::BuildSymbolDiff(MCContext &Context, in BuildSymbolDiff()
62 const MCExpr *ARef = in BuildSymbolDiff()
64 const MCExpr *BRef = in BuildSymbolDiff()
66 const MCExpr *AddrDelta = in BuildSymbolDiff()
71 const MCExpr *MCStreamer::ForceExpAbs(const MCExpr* Expr) { in ForceExpAbs()
140 void MCStreamer::EmitAbsValue(const MCExpr *Value, unsigned Size) { in EmitAbsValue()
141 const MCExpr *ABS = ForceExpAbs(Value); in EmitAbsValue()
146 void MCStreamer::EmitValue(const MCExpr *Value, unsigned Size, in EmitValue()
155 void MCStreamer::EmitGPRel64Value(const MCExpr *Value) { in EmitGPRel64Value()
[all …]
DMCObjectStreamer.cpp96 void MCObjectStreamer::EmitValueImpl(const MCExpr *Value, unsigned Size, in EmitValueImpl()
141 void MCObjectStreamer::EmitULEB128Value(const MCExpr *Value) { in EmitULEB128Value()
151 void MCObjectStreamer::EmitSLEB128Value(const MCExpr *Value) { in EmitSLEB128Value()
167 const MCExpr *Subsection) { in ChangeSection()
182 void MCObjectStreamer::EmitAssignment(MCSymbol *Symbol, const MCExpr *Value) { in EmitAssignment()
277 const MCExpr *AddrDelta = BuildSymbolDiff(getContext(), Label, LastLabel); in EmitDwarfAdvanceLineAddr()
289 const MCExpr *AddrDelta = BuildSymbolDiff(getContext(), Label, LastLabel); in EmitDwarfAdvanceFrameAddr()
323 bool MCObjectStreamer::EmitValueToOffset(const MCExpr *Offset, in EmitValueToOffset()
334 const MCExpr *Ref = in EmitValueToOffset()
336 const MCExpr *Delta = in EmitValueToOffset()
[all …]
DMCExpr.cpp33 void MCExpr::print(raw_ostream &OS) const { in print()
35 case MCExpr::Target: in print()
37 case MCExpr::Constant: in print()
41 case MCExpr::SymbolRef: { in print()
62 case MCExpr::Unary: { in print()
74 case MCExpr::Binary: { in print()
129 void MCExpr::dump() const { in dump()
137 const MCBinaryExpr *MCBinaryExpr::Create(Opcode Opc, const MCExpr *LHS, in Create()
138 const MCExpr *RHS, MCContext &Ctx) { in Create()
142 const MCUnaryExpr *MCUnaryExpr::Create(Opcode Opc, const MCExpr *Expr, in Create()
[all …]
DMCRelocationInfo.cpp24 const MCExpr *
29 const MCExpr *
30 MCRelocationInfo::createExprForCAPIVariantKind(const MCExpr *SubExpr, in createExprForCAPIVariantKind()
DMCAsmInfo.cpp112 const MCExpr *
119 const MCExpr *
127 const MCExpr *Res = MCSymbolRefExpr::Create(Sym, Context); in getExprForFDESymbol()
130 const MCExpr *PC = MCSymbolRefExpr::Create(PCSym, Context); in getExprForFDESymbol()
/external/llvm/lib/Target/X86/
DX86TargetObjectFile.cpp22 const MCExpr *X86_64MachoTargetObjectFile::getTTypeGlobalReference( in getTTypeGlobalReference()
31 const MCExpr *Res = in getTTypeGlobalReference()
33 const MCExpr *Four = MCConstantExpr::Create(4, getContext()); in getTTypeGlobalReference()
53 const MCExpr *
59 const MCExpr *X86WindowsTargetObjectFile::getExecutableRelativeSymbol( in getExecutableRelativeSymbol()
/external/llvm/lib/Target/PowerPC/AsmParser/
DPPCAsmParser.cpp155 EvaluateCRExpr(const MCExpr *E) { in EvaluateCRExpr()
157 case MCExpr::Target: in EvaluateCRExpr()
160 case MCExpr::Constant: { in EvaluateCRExpr()
165 case MCExpr::SymbolRef: { in EvaluateCRExpr()
187 case MCExpr::Unary: in EvaluateCRExpr()
190 case MCExpr::Binary: { in EvaluateCRExpr()
235 const MCExpr *ExtractModifierFromExpr(const MCExpr *E,
237 const MCExpr *FixupVariantKind(const MCExpr *E);
238 bool ParseExpression(const MCExpr *&EVal);
239 bool ParseDarwinExpression(const MCExpr *&EVal);
[all …]
/external/llvm/include/llvm/Target/
DTargetLoweringObjectFile.h27 class MCExpr; variable
112 virtual const MCExpr *
129 const MCExpr *
145 virtual const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const;
147 virtual const MCExpr *
/external/llvm/lib/Target/Sparc/AsmParser/
DSparcAsmParser.cpp76 bool matchSparcAsmModifiers(const MCExpr *&EVal, SMLoc &EndLoc);
163 const MCExpr *Val;
169 const MCExpr *Off;
208 const MCExpr *getImm() const { in getImm()
223 const MCExpr *getMemOff() const { in getMemOff()
258 const MCExpr *Expr = getImm(); in addImmOperands()
262 void addExpr(MCInst &Inst, const MCExpr *Expr) const{ in addExpr()
286 const MCExpr *Expr = getMemOff(); in addMEMriOperands()
309 static std::unique_ptr<SparcOperand> CreateImm(const MCExpr *Val, SMLoc S, in CreateImm()
363 CreateMEMri(unsigned Base, const MCExpr *Off, SMLoc S, SMLoc E) { in CreateMEMri()
[all …]

123456