Home
last modified time | relevance | path

Searched refs:getExpr (Results 1 – 25 of 173) sorted by relevance

1234567

/llvm-project-15.0.7/llvm/lib/Target/CSKY/MCTargetDesc/
H A DCSKYMCCodeEmitter.h59 MCFixupKind Kind = getTargetFixup(MO.getExpr()); in getImmOpValue()
110 if (MO.getExpr()->getKind() == MCExpr::Target) in getBranchSymbolOpValue()
111 Kind = getTargetFixup(MO.getExpr()); in getBranchSymbolOpValue()
125 if (MO.getExpr()->getKind() == MCExpr::Target) in getConstpoolSymbolOpValue()
126 Kind = getTargetFixup(MO.getExpr()); in getConstpoolSymbolOpValue()
140 if (MO.getExpr()->getKind() == MCExpr::Target) in getDataSymbolOpValue()
141 Kind = getTargetFixup(MO.getExpr()); in getDataSymbolOpValue()
154 if (MO.getExpr()->getKind() == MCExpr::Target) in getCallSymbolOpValue()
155 Kind = getTargetFixup(MO.getExpr()); in getCallSymbolOpValue()
168 if (MO.getExpr()->getKind() == MCExpr::Target) in getBareSymbolOpValue()
[all …]
H A DCSKYInstPrinter.cpp143 MO.getExpr()->print(O, &MAI); in printOperand()
155 MO.getExpr()->print(O, &MAI); in printDataSymbol()
178 MO.getExpr()->print(O, &MAI); in printConstpool()
/llvm-project-15.0.7/llvm/lib/Target/Sparc/MCTargetDesc/
H A DSparcMCCodeEmitter.cpp131 const MCExpr *Expr = MO.getExpr(); in getMachineOpValue()
158 const MCExpr *Expr = MO.getExpr(); in getSImm13OpValue()
182 const MCExpr *Expr = MO.getExpr(); in getCallTargetOpValue()
212 Fixups.push_back(MCFixup::create(0, MO.getExpr(), in getBranchTargetOpValue()
225 Fixups.push_back(MCFixup::create(0, MO.getExpr(), in getBranchPredTargetOpValue()
238 Fixups.push_back(MCFixup::create(0, MO.getExpr(), in getBranchOnRegTargetOpValue()
240 Fixups.push_back(MCFixup::create(0, MO.getExpr(), in getBranchOnRegTargetOpValue()
/llvm-project-15.0.7/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRMCCodeEmitter.cpp100 MCFixup::create(0, MO.getExpr(), MCFixupKind(Fixup), MI.getLoc())); in encodeRelCondBrTarget()
164 Fixups.push_back(MCFixup::create(0, OffsetOp.getExpr(), in encodeMemri()
190 if (isa<AVRMCExpr>(MO.getExpr())) { in encodeImm()
195 return getExprOpValue(MO.getExpr(), Fixups, STI); in encodeImm()
200 MCFixup::create(Offset, MO.getExpr(), FixupKind, MI.getLoc())); in encodeImm()
216 Fixups.push_back(MCFixup::create(0, MO.getExpr(), FixupKind, MI.getLoc())); in encodeCallTarget()
269 return getExprOpValue(MO.getExpr(), Fixups, STI); in getMachineOpValue()
H A DAVRInstPrinter.cpp137 O << *Op.getExpr(); in printOperand()
169 O << *Op.getExpr(); in printPCRelImm()
192 O << *OffsetOp.getExpr(); in printMemri()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCMCCodeEmitter.cpp53 Fixups.push_back(MCFixup::create(0, MO.getExpr(), in getDirectBrEncoding()
67 Fixups.push_back(MCFixup::create(0, MO.getExpr(), in getCondBrEncoding()
80 Fixups.push_back(MCFixup::create(0, MO.getExpr(), in getAbsDirectBrEncoding()
93 Fixups.push_back(MCFixup::create(0, MO.getExpr(), in getAbsCondBrEncoding()
115 Fixups.push_back(MCFixup::create(IsLittleEndian? 0 : 2, MO.getExpr(), in getImm16Encoding()
130 Fixups.push_back(MCFixup::create(0, MO.getExpr(), Fixup)); in getImm34Encoding()
163 Fixups.push_back(MCFixup::create(IsLittleEndian? 0 : 2, MO.getExpr(), in getMemRIEncoding()
181 Fixups.push_back(MCFixup::create(IsLittleEndian? 0 : 2, MO.getExpr(), in getMemRIXEncoding()
253 const MCExpr *Expr = MO.getExpr(); in getMemRI34PCRelEncoding()
383 const MCExpr *Expr = MO.getExpr(); in getTLSRegEncoding()
[all …]
H A DPPCELFStreamer.cpp142 const MCExpr *Expr = Operand.getExpr(); in emitGOTToPCRelReloc()
177 const MCExpr *Expr = Operand.getExpr(); in emitGOTToPCRelLabel()
214 const MCExpr *Expr = Operand.getExpr(); in isPartOfGOTToPCRelPair()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/AsmParser/
H A DHexagonAsmParser.cpp1365 MCBinaryExpr::createSub(MO.getExpr(), in processInstruction()
1389 MCBinaryExpr::createSub(MO.getExpr(), in processInstruction()
1563 if (MO.getExpr()->evaluateAsAbsolute(Value)) { in processInstruction()
1624 MCBinaryExpr::createSub(Imm6.getExpr(), in processInstruction()
1644 MCBinaryExpr::createSub(Imm6.getExpr(), in processInstruction()
1664 MCBinaryExpr::createSub(Imm6.getExpr(), in processInstruction()
1686 MCExpr const &Expr = *Imm.getExpr(); in processInstruction()
1721 MCBinaryExpr::createSub(Imm.getExpr(), in processInstruction()
1759 MCBinaryExpr::createSub(Imm.getExpr(), in processInstruction()
1871 MCBinaryExpr::createSub(Imm.getExpr(), in processInstruction()
[all …]
/llvm-project-15.0.7/llvm/lib/MC/
H A DMCInst.cpp38 OS << "Expr:(" << *getExpr() << ")"; in print()
59 const MCExpr *Expr = getExpr(); in isBareSymbolRef()
60 MCExpr::ExprKind Kind = getExpr()->getKind(); in isBareSymbolRef()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonInstPrinter.cpp72 if (MO.getExpr()->evaluateAsAbsolute(Value)) in printOperand()
75 O << *MO.getExpr(); in printOperand()
85 MCExpr const &Expr = *MO.getExpr(); in printBrtarget()
H A DHexagonMCExpr.cpp79 auto expr = getExpr(); in fixELFSymbolsInTLSFixups()
83 MCExpr const *HexagonMCExpr::getExpr() const { return Expr; } in getExpr() function in HexagonMCExpr
H A DHexagonMCInstrInfo.cpp202 XMI.addOperand(MCOperand::createExpr(MO.getExpr())); in deriveExtender()
310 MCExpr const &HexagonMCInstrInfo::getExpr(MCExpr const &Expr) { in getExpr() function in HexagonMCInstrInfo
312 assert(HExpr.getExpr()); in getExpr()
313 return *HExpr.getExpr(); in getExpr()
552 if (isa<HexagonMCExpr>(MO.getExpr()) && in isConstExtended()
553 HexagonMCInstrInfo::mustExtend(*MO.getExpr())) in isConstExtended()
568 if (isa<HexagonMCExpr>(MO.getExpr()) && in isConstExtended()
569 HexagonMCInstrInfo::mustNotExtend(*MO.getExpr())) in isConstExtended()
572 if (!MO.getExpr()->evaluateAsAbsolute(Value)) in isConstExtended()
875 if (!MCO.getExpr()->evaluateAsAbsolute(Value)) in minConstant()
/llvm-project-15.0.7/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsMCCodeEmitter.cpp246 MO.getExpr(), MCConstantExpr::create(-4, Ctx), Ctx); in getBranchTargetOpValue()
268 MO.getExpr(), MCConstantExpr::create(-4, Ctx), Ctx); in getBranchTargetOpValue1SImm16()
335 const MCExpr *Expr = MO.getExpr(); in getBranchTarget7OpValueMM()
356 const MCExpr *Expr = MO.getExpr(); in getBranchTargetOpValueMMPC10()
377 const MCExpr *Expr = MO.getExpr(); in getBranchTargetOpValueMM()
486 const MCExpr *Expr = MO.getExpr(); in getJumpOffset16OpValue()
507 const MCExpr *Expr = MO.getExpr(); in getJumpTargetOpValue()
524 const MCExpr *Expr = MO.getExpr(); in getJumpTargetOpValueMM()
746 return getExprOpValue(MO.getExpr(),Fixups, STI); in getMachineOpValue()
969 const MCExpr *Expr = MO.getExpr(); in getSimm19Lsl2Encoding()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/M68k/MCTargetDesc/
H A DM68kInstPrinter.cpp71 MO.getExpr()->print(O, &MAI); in printOperand()
81 MO.getExpr()->print(O, &MAI); in printImmediate()
147 Op.getExpr()->print(O, &MAI); in printDisp()
197 MO.getExpr()->print(O, &MAI); in printAbsMem()
H A DM68kMCCodeEmitter.cpp140 const MCExpr *Expr = MCO.getExpr(); in encodeRelocImm()
167 const MCExpr *Expr = MCO.getExpr(); in encodePCRelImm()
211 if (!Op.getExpr()->evaluateAsAbsolute(Addr)) in getMachineOpValue()
/llvm-project-15.0.7/llvm/lib/Target/Lanai/MCTargetDesc/
H A DLanaiInstPrinter.cpp159 Op.getExpr()->print(OS, &MAI); in printOperand()
172 Op.getExpr()->print(OS, &MAI); in printMemImmOperand()
185 Op.getExpr()->print(OS, &MAI); in printHi16ImmOperand()
197 Op.getExpr()->print(OS, &MAI); in printHi16AndImmOperand()
209 Op.getExpr()->print(OS, &MAI); in printLo16AndImmOperand()
234 OffsetOp.getExpr()->print(OS, &MAI); in printMemoryImmediateOffset()
/llvm-project-15.0.7/llvm/lib/Target/BPF/MCTargetDesc/
H A DBPFInstPrinter.cpp62 printExpr(Op.getExpr(), O); in printOperand()
93 printExpr(Op.getExpr(), O); in printImm64Operand()
105 printExpr(Op.getExpr(), O); in printBrTargetOperand()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64MCCodeEmitter.cpp223 Fixups.push_back(MCFixup::create(0, MO.getExpr(), Kind, MI.getLoc())); in getLdStUImm12OpValue()
242 const MCExpr *Expr = MO.getExpr(); in getAdrLabelOpValue()
273 const MCExpr *Expr = MO.getExpr(); in getAddSubImmOpValue()
306 Fixups.push_back(MCFixup::create(0, MO.getExpr(), Kind, MI.getLoc())); in getCondBranchTargetOpValue()
328 Fixups.push_back(MCFixup::create(0, MO.getExpr(), Kind, MI.getLoc())); in getLoadLiteralOpValue()
356 0, MO.getExpr(), MCFixupKind(AArch64::fixup_aarch64_movw), MI.getLoc())); in getMoveWideImmOpValue()
376 Fixups.push_back(MCFixup::create(0, MO.getExpr(), Kind, MI.getLoc())); in getTestBranchTargetOpValue()
400 Fixups.push_back(MCFixup::create(0, MO.getExpr(), Kind, MI.getLoc())); in getBranchTargetOpValue()
590 const MCExpr *E = UImm16MO.getExpr(); in fixMOVZ()
621 MCFixup::create(0, MI.getOperand(0).getExpr(), in encodeInstruction()
/llvm-project-15.0.7/llvm/lib/Target/MSP430/MCTargetDesc/
H A DMSP430InstPrinter.cpp48 Op.getExpr()->print(O, &MAI); in printPCRelImmOperand()
63 Op.getExpr()->print(O, &MAI); in printOperand()
85 Disp.getExpr()->print(O, &MAI); in printSrcMemOperand()
H A DMSP430MCCodeEmitter.cpp114 Fixups.push_back(MCFixup::create(Offset, MO.getExpr(), in getMachineOpValue()
146 Fixups.push_back(MCFixup::create(Offset, MO2.getExpr(), in getMemOpValue()
160 Fixups.push_back(MCFixup::create(0, MO.getExpr(), in getPCRelImmOpValue()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonAsmPrinter.cpp185 if (Imm.getExpr()->evaluateAsAbsolute(Value)) { in smallData()
239 OutStreamer.emitValue(Imm.getExpr(), AlignSize); in smallData()
256 const auto *HE = static_cast<const HexagonMCExpr*>(ImmOp.getExpr()); in ScaleVectorOffset()
257 int32_t V = cast<MCConstantExpr>(HE->getExpr())->getValue(); in ScaleVectorOffset()
281 HexagonMCInstrInfo::setMustNotExtend(*S16.getExpr()); in HexagonProcessInstruction()
282 HexagonMCInstrInfo::setS27_2_reloc(*S16.getExpr()); in HexagonProcessInstruction()
429 MCExpr const *Expr = MO.getExpr(); in HexagonProcessInstruction()
455 MCExpr const *Expr = MO2.getExpr(); in HexagonProcessInstruction()
491 MCExpr const *Expr = MO.getExpr(); in HexagonProcessInstruction()
524 bool Success = MO.getExpr()->evaluateAsAbsolute(Imm); in HexagonProcessInstruction()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZMCInstLower.cpp36 SystemZMCInstLower::getExpr(const MachineOperand &MO, in getExpr() function in SystemZMCInstLower
89 return MCOperand::createExpr(getExpr(MO, Kind)); in lowerOperand()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DSIMCCodeEmitter.cpp225 const auto *C = dyn_cast<MCConstantExpr>(MO.getExpr()); in getLitEncoding()
396 if (const auto *C = dyn_cast<MCConstantExpr>(Op.getExpr())) in encodeInstruction()
418 const MCExpr *Expr = MO.getExpr(); in getSOPPBrEncoding()
551 if (MO.isExpr() && MO.getExpr()->getKind() != MCExpr::Constant) { in getMachineOpValueCommon()
563 if (needsPCRel(MO.getExpr())) in getMachineOpValueCommon()
572 Fixups.push_back(MCFixup::create(Offset, MO.getExpr(), Kind, MI.getLoc())); in getMachineOpValueCommon()
/llvm-project-15.0.7/llvm/lib/Target/VE/MCTargetDesc/
H A DVEMCCodeEmitter.cpp100 const MCExpr *Expr = MO.getExpr(); in getMachineOpValue()
124 MCFixup::create(0, MO.getExpr(), (MCFixupKind)VE::fixup_ve_srel32)); in getBranchTargetOpValue()
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/MCTargetDesc/
H A DSystemZInstPrinter.cpp54 MO.getExpr()->print(O, MAI); in printOperand()
163 MO.getExpr()->print(O, &MAI); in printPCRelOperand()
175 const MCSymbolRefExpr &refExp = cast<MCSymbolRefExpr>(*MO.getExpr()); in printPCRelTLSOperand()

1234567