| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | MachineStableHash.cpp | 59 stable_hash llvm::stableHashValue(const MachineOperand &MO) { in stableHashValue() argument 60 switch (MO.getType()) { in stableHashValue() 62 if (MO.getReg().isVirtual()) { in stableHashValue() 63 const MachineRegisterInfo &MRI = MO.getParent()->getMF()->getRegInfo(); in stableHashValue() 65 for (auto &Def : MRI.def_instructions(MO.getReg())) in stableHashValue() 71 return stable_hash_combine(MO.getType(), MO.getReg().id(), MO.getSubReg(), in stableHashValue() 72 MO.isDef()); in stableHashValue() 74 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), MO.getImm()); in stableHashValue() 77 auto Val = MO.isCImm() ? MO.getCImm()->getValue() in stableHashValue() 78 : MO.getFPImm()->getValueAPF().bitcastToAPInt(); in stableHashValue() [all …]
|
| H A D | MachineInstrBundle.cpp | 62 for (MachineOperand &MO : MII->operands()) { in runOnMachineFunction() 63 if (MO.isReg() && MO.isInternalRead()) in runOnMachineFunction() 64 MO.setIsInternalRead(false); in runOnMachineFunction() 149 for (MachineOperand &MO : MII->all_uses()) { in finalizeBundle() 150 Register Reg = MO.getReg(); in finalizeBundle() 155 MO.setIsInternalRead(); in finalizeBundle() 156 if (MO.isKill()) { in finalizeBundle() 162 if (MO.isUndef()) in finalizeBundle() 165 if (MO.isKill()) { in finalizeBundle() 172 for (MachineOperand &MO : MII->all_defs()) { in finalizeBundle() [all …]
|
| H A D | DetectDeadLanes.cpp | 70 const MachineOperand &MO) { in isCrossCopy() argument 72 Register SrcReg = MO.getReg(); in isCrossCopy() 77 unsigned SrcSubIdx = MO.getSubReg(); in isCrossCopy() 83 if (MO.getOperandNo() == 2) in isCrossCopy() 87 unsigned OpNum = MO.getOperandNo(); in isCrossCopy() 108 void DeadLaneDetector::addUsedLanesOnOperand(const MachineOperand &MO, in addUsedLanesOnOperand() argument 110 if (!MO.readsReg()) in addUsedLanesOnOperand() 112 Register MOReg = MO.getReg(); in addUsedLanesOnOperand() 116 unsigned MOSubReg = MO.getSubReg(); in addUsedLanesOnOperand() 136 for (const MachineOperand &MO : MI.uses()) { in transferUsedLanesStep() local [all …]
|
| H A D | LiveIntervalCalc.cpp | 32 LiveRange &LR, const MachineOperand &MO) { in createDeadDef() argument 33 const MachineInstr &MI = *MO.getParent(); in createDeadDef() 35 Indexes.getInstructionIndex(MI).getRegSlot(MO.isEarlyClobber()); in createDeadDef() 53 for (const MachineOperand &MO : MRI->reg_nodbg_operands(Reg)) { in calculate() local 54 if (!MO.isDef() && !MO.readsReg()) in calculate() 57 unsigned SubReg = MO.getSubReg(); in calculate() 70 [&MO, Indexes, Alloc](LiveInterval::SubRange &SR) { in calculate() 71 if (MO.isDef()) in calculate() 72 createDeadDef(*Indexes, *Alloc, SR, MO); in calculate() 79 if (MO.isDef() && !LI.hasSubRanges()) in calculate() [all …]
|
| H A D | RegAllocFast.cpp | 361 void allocVirtRegUndef(MachineOperand &MO); 368 bool useVirtReg(MachineInstr &MI, MachineOperand &MO, Register VirtReg); 378 bool setPhysReg(MachineInstr &MI, MachineOperand &MO, 602 for (MachineOperand *MO : LRIDbgOperands) in spill() 603 SpilledOperandsMap[MO->getParent()].push_back(MO); in spill() 629 MachineOperand &MO = DBG.getDebugOperand(0); in spill() local 630 if (MO.isReg() && MO.getReg() == 0) { in spill() 671 for (MachineOperand &MO : I->operands()) { in getMBBBeginInsertionPoint() 672 if (MO.isReg()) in getMBBBeginInsertionPoint() 673 PrologLiveIns.insert(MO.getReg()); in getMBBBeginInsertionPoint() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/ |
| H A D | MSP430MCInstLower.cpp | 31 GetGlobalAddressSymbol(const MachineOperand &MO) const { in GetGlobalAddressSymbol() 32 switch (MO.getTargetFlags()) { in GetGlobalAddressSymbol() 37 return Printer.getSymbol(MO.getGlobal()); in GetGlobalAddressSymbol() 41 GetExternalSymbolSymbol(const MachineOperand &MO) const { in GetExternalSymbolSymbol() 42 switch (MO.getTargetFlags()) { in GetExternalSymbolSymbol() 47 return Printer.GetExternalSymbolSymbol(MO.getSymbolName()); in GetExternalSymbolSymbol() 51 GetJumpTableSymbol(const MachineOperand &MO) const { in GetJumpTableSymbol() 56 << MO.getIndex(); in GetJumpTableSymbol() 58 switch (MO.getTargetFlags()) { in GetJumpTableSymbol() 68 GetConstantPoolIndexSymbol(const MachineOperand &MO) const { in GetConstantPoolIndexSymbol() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64MCInstLower.cpp | 42 AArch64MCInstLower::GetGlobalAddressSymbol(const MachineOperand &MO) const { in GetGlobalAddressSymbol() 43 return GetGlobalValueSymbol(MO.getGlobal(), MO.getTargetFlags()); in GetGlobalAddressSymbol() 142 AArch64MCInstLower::GetExternalSymbolSymbol(const MachineOperand &MO) const { in GetExternalSymbolSymbol() 143 return Printer.GetExternalSymbolSymbol(MO.getSymbolName()); in GetExternalSymbolSymbol() 146 MCOperand AArch64MCInstLower::lowerSymbolOperandMachO(const MachineOperand &MO, in lowerSymbolOperandMachO() argument 151 if ((MO.getTargetFlags() & AArch64II::MO_GOT) != 0) { in lowerSymbolOperandMachO() 152 if ((MO.getTargetFlags() & AArch64II::MO_FRAGMENT) == AArch64II::MO_PAGE) in lowerSymbolOperandMachO() 154 else if ((MO.getTargetFlags() & AArch64II::MO_FRAGMENT) == in lowerSymbolOperandMachO() 159 } else if ((MO.getTargetFlags() & AArch64II::MO_TLS) != 0) { in lowerSymbolOperandMachO() 160 if ((MO.getTargetFlags() & AArch64II::MO_FRAGMENT) == AArch64II::MO_PAGE) in lowerSymbolOperandMachO() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCMCInstLower.cpp | 34 static MCSymbol *GetSymbolFromOperand(const MachineOperand &MO, in GetSymbolFromOperand() argument 36 if (MO.isGlobal()) { in GetSymbolFromOperand() 39 const GlobalValue *GV = MO.getGlobal(); in GetSymbolFromOperand() 43 assert(MO.isSymbol() && "Isn't a symbol reference"); in GetSymbolFromOperand() 47 Mangler::getNameWithPrefix(Name, MO.getSymbolName(), DL); in GetSymbolFromOperand() 54 static MCOperand GetSymbolRef(const MachineOperand &MO, const MCSymbol *Symbol, in GetSymbolRef() argument 59 unsigned access = MO.getTargetFlags(); in GetSymbolRef() 86 const MachineInstr *MI = MO.getParent(); in GetSymbolRef() 89 if (MO.getTargetFlags() == PPCII::MO_PLT) in GetSymbolRef() 91 else if (MO.getTargetFlags() == PPCII::MO_PCREL_FLAG) in GetSymbolRef() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/ |
| H A D | LanaiMCInstLower.cpp | 32 LanaiMCInstLower::GetGlobalAddressSymbol(const MachineOperand &MO) const { in GetGlobalAddressSymbol() 33 return Printer.getSymbol(MO.getGlobal()); in GetGlobalAddressSymbol() 37 LanaiMCInstLower::GetBlockAddressSymbol(const MachineOperand &MO) const { in GetBlockAddressSymbol() 38 return Printer.GetBlockAddressSymbol(MO.getBlockAddress()); in GetBlockAddressSymbol() 42 LanaiMCInstLower::GetExternalSymbolSymbol(const MachineOperand &MO) const { in GetExternalSymbolSymbol() 43 return Printer.GetExternalSymbolSymbol(MO.getSymbolName()); in GetExternalSymbolSymbol() 46 MCSymbol *LanaiMCInstLower::GetJumpTableSymbol(const MachineOperand &MO) const { in GetJumpTableSymbol() 50 << MO.getIndex(); in GetJumpTableSymbol() 56 LanaiMCInstLower::GetConstantPoolIndexSymbol(const MachineOperand &MO) const { in GetConstantPoolIndexSymbol() 60 << MO.getIndex(); in GetConstantPoolIndexSymbol() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/ |
| H A D | PPCMCCodeEmitter.cpp | 59 const MCOperand &MO = MI.getOperand(OpNo); in getDirectBrEncoding() local 61 if (MO.isReg() || MO.isImm()) in getDirectBrEncoding() 62 return getMachineOpValue(MI, MO, Fixups, STI); in getDirectBrEncoding() 66 Fixups, 0, MO.getExpr(), in getDirectBrEncoding() 168 const MCOperand &MO = MI.getOperand(OpNo); in getCondBrEncoding() local 169 if (MO.isReg() || MO.isImm()) return getMachineOpValue(MI, MO, Fixups, STI); in getCondBrEncoding() 172 addFixup(Fixups, 0, MO.getExpr(), PPC::fixup_ppc_brcond14); in getCondBrEncoding() 180 const MCOperand &MO = MI.getOperand(OpNo); in getAbsDirectBrEncoding() local 181 if (MO.isReg() || MO.isImm()) return getMachineOpValue(MI, MO, Fixups, STI); in getAbsDirectBrEncoding() 184 addFixup(Fixups, 0, MO.getExpr(), PPC::fixup_ppc_br24abs); in getAbsDirectBrEncoding() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/M68k/ |
| H A D | M68kMCInstLower.cpp | 40 M68kMCInstLower::GetSymbolFromOperand(const MachineOperand &MO) const { in GetSymbolFromOperand() 41 assert((MO.isGlobal() || MO.isSymbol() || MO.isMBB()) && in GetSymbolFromOperand() 45 if (MO.isGlobal() && TT.isOSBinFormatELF()) in GetSymbolFromOperand() 46 return AsmPrinter.getSymbolPreferLocal(*MO.getGlobal()); in GetSymbolFromOperand() 57 if (MO.isGlobal()) { in GetSymbolFromOperand() 58 const GlobalValue *GV = MO.getGlobal(); in GetSymbolFromOperand() 60 } else if (MO.isSymbol()) { in GetSymbolFromOperand() 61 Mangler::getNameWithPrefix(Name, MO.getSymbolName(), DL); in GetSymbolFromOperand() 62 } else if (MO.isMBB()) { in GetSymbolFromOperand() 64 Sym = MO.getMBB()->getSymbol(); in GetSymbolFromOperand() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/VE/ |
| H A D | VEMCInstLower.cpp | 29 const MachineOperand &MO, in LowerSymbolOperand() argument 31 auto Kind = (VE::Specifier)MO.getTargetFlags(); in LowerSymbolOperand() 35 if (!MO.isJTI() && !MO.isMBB() && MO.getOffset()) in LowerSymbolOperand() 37 Expr, MCConstantExpr::create(MO.getOffset(), AP.OutContext), in LowerSymbolOperand() 43 static MCOperand LowerOperand(const MachineInstr *MI, const MachineOperand &MO, in LowerOperand() argument 45 switch (MO.getType()) { in LowerOperand() 50 if (MO.isImplicit()) in LowerOperand() 52 return MCOperand::createReg(MO.getReg()); in LowerOperand() 56 MI, MO, AP.GetBlockAddressSymbol(MO.getBlockAddress()), AP); in LowerOperand() 58 return LowerSymbolOperand(MI, MO, AP.GetCPISymbol(MO.getIndex()), AP); in LowerOperand() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/ |
| H A D | AArch64MCCodeEmitter.cpp | 58 unsigned getMachineOpValue(const MCInst &MI, const MCOperand &MO, 234 AArch64MCCodeEmitter::getMachineOpValue(const MCInst &MI, const MCOperand &MO, in getMachineOpValue() argument 237 if (MO.isReg()) in getMachineOpValue() 238 return Ctx.getRegisterInfo()->getEncodingValue(MO.getReg()); in getMachineOpValue() 240 assert(MO.isImm() && "did not expect relocated expression"); in getMachineOpValue() 241 return static_cast<unsigned>(MO.getImm()); in getMachineOpValue() 248 const MCOperand &MO = MI.getOperand(OpIdx); in getLdStUImm12OpValue() local 251 if (MO.isImm()) in getLdStUImm12OpValue() 252 ImmVal = static_cast<uint32_t>(MO.getImm()); in getLdStUImm12OpValue() 254 assert(MO.isExpr() && "unable to encode load/store imm operand"); in getLdStUImm12OpValue() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/MCTargetDesc/ |
| H A D | SparcMCCodeEmitter.cpp | 65 unsigned getMachineOpValue(const MCInst &MI, const MCOperand &MO, 131 const MCOperand &MO = MI.getOperand(SymOpNo); in encodeInstruction() local 132 uint64_t op = getMachineOpValue(MI, MO, Fixups, STI); in encodeInstruction() 141 getMachineOpValue(const MCInst &MI, const MCOperand &MO, in getMachineOpValue() argument 144 if (MO.isReg()) in getMachineOpValue() 145 return Ctx.getRegisterInfo()->getEncodingValue(MO.getReg()); in getMachineOpValue() 147 if (MO.isImm()) in getMachineOpValue() 148 return MO.getImm(); in getMachineOpValue() 150 assert(MO.isExpr()); in getMachineOpValue() 151 const MCExpr *Expr = MO.getExpr(); in getMachineOpValue() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/BPF/ |
| H A D | BPFMCInstLower.cpp | 27 BPFMCInstLower::GetGlobalAddressSymbol(const MachineOperand &MO) const { in GetGlobalAddressSymbol() 28 return Printer.getSymbol(MO.getGlobal()); in GetGlobalAddressSymbol() 32 BPFMCInstLower::GetExternalSymbolSymbol(const MachineOperand &MO) const { in GetExternalSymbolSymbol() 33 return Printer.GetExternalSymbolSymbol(MO.getSymbolName()); in GetExternalSymbolSymbol() 36 MCOperand BPFMCInstLower::LowerSymbolOperand(const MachineOperand &MO, in LowerSymbolOperand() argument 41 if (!MO.isJTI() && MO.getOffset()) in LowerSymbolOperand() 50 for (const MachineOperand &MO : MI->operands()) { in Lower() local 52 switch (MO.getType()) { in Lower() 58 if (MO.isImplicit()) in Lower() 60 MCOp = MCOperand::createReg(MO.getReg()); in Lower() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AVR/ |
| H A D | AVRMCInstLower.cpp | 26 AVRMCInstLower::lowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym, in lowerSymbolOperand() argument 28 unsigned char TF = MO.getTargetFlags(); in lowerSymbolOperand() 36 if (!MO.isJTI() && MO.getOffset()) { in lowerSymbolOperand() 38 Expr, MCConstantExpr::create(MO.getOffset(), Ctx), Ctx); in lowerSymbolOperand() 41 bool IsFunction = MO.isGlobal() && isa<Function>(MO.getGlobal()); in lowerSymbolOperand() 71 for (MachineOperand const &MO : MI.operands()) { in lowerInstruction() 74 switch (MO.getType()) { in lowerInstruction() 80 if (MO.isImplicit()) in lowerInstruction() 82 MCOp = MCOperand::createReg(MO.getReg()); in lowerInstruction() 85 MCOp = MCOperand::createImm(MO.getImm()); in lowerInstruction() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/ |
| H A D | CSKYMCInstLower.cpp | 30 for (const MachineOperand &MO : MI->operands()) { in Lower() local 32 if (lowerOperand(MO, MCOp)) in Lower() 37 MCOperand CSKYMCInstLower::lowerSymbolOperand(const MachineOperand &MO, in lowerSymbolOperand() argument 42 switch (MO.getTargetFlags()) { in lowerSymbolOperand() 75 bool CSKYMCInstLower::lowerOperand(const MachineOperand &MO, in lowerOperand() argument 77 switch (MO.getType()) { in lowerOperand() 83 MCOp = MCOperand::createImm(MO.getImm()); in lowerOperand() 86 if (MO.isImplicit()) in lowerOperand() 88 MCOp = MCOperand::createReg(MO.getReg()); in lowerOperand() 92 MCSymbolRefExpr::create(MO.getMBB()->getSymbol(), Ctx)); in lowerOperand() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/ |
| H A D | MipsMCCodeEmitter.cpp | 253 const MCOperand &MO = MI.getOperand(OpNo); in getBranchTargetOpValue() local 256 if (MO.isImm()) return MO.getImm() >> 2; in getBranchTargetOpValue() 258 assert(MO.isExpr() && in getBranchTargetOpValue() 262 MO.getExpr(), MCConstantExpr::create(-4, Ctx), Ctx); in getBranchTargetOpValue() 274 const MCOperand &MO = MI.getOperand(OpNo); in getBranchTargetOpValue1SImm16() local 277 if (MO.isImm()) return MO.getImm() >> 1; in getBranchTargetOpValue1SImm16() 279 assert(MO.isExpr() && in getBranchTargetOpValue1SImm16() 283 MO.getExpr(), MCConstantExpr::create(-4, Ctx), Ctx); in getBranchTargetOpValue1SImm16() 295 const MCOperand &MO = MI.getOperand(OpNo); in getBranchTargetOpValueMMR6() local 298 if (MO.isImm()) in getBranchTargetOpValueMMR6() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/MCTargetDesc/ |
| H A D | XtensaMCCodeEmitter.cpp | 58 uint32_t getMachineOpValue(const MCInst &MI, const MCOperand &MO, 190 XtensaMCCodeEmitter::getMachineOpValue(const MCInst &MI, const MCOperand &MO, in getMachineOpValue() argument 193 if (MO.isReg()) in getMachineOpValue() 194 return Ctx.getRegisterInfo()->getEncodingValue(MO.getReg()); in getMachineOpValue() 195 if (MO.isImm()) { in getMachineOpValue() 196 uint32_t Res = static_cast<uint32_t>(MO.getImm()); in getMachineOpValue() 208 const MCOperand &MO = MI.getOperand(OpNum); in getJumpTargetEncoding() local 210 if (MO.isImm()) in getJumpTargetEncoding() 211 return MO.getImm(); in getJumpTargetEncoding() 213 const MCExpr *Expr = MO.getExpr(); in getJumpTargetEncoding() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZMCInstLower.cpp | 36 const MCExpr *SystemZMCInstLower::getExpr(const MachineOperand &MO, in getExpr() argument 40 switch (MO.getType()) { in getExpr() 42 Symbol = MO.getMBB()->getSymbol(); in getExpr() 47 Symbol = AsmPrinter.getSymbol(MO.getGlobal()); in getExpr() 51 Symbol = AsmPrinter.GetExternalSymbolSymbol(MO.getSymbolName()); in getExpr() 55 Symbol = AsmPrinter.GetJTISymbol(MO.getIndex()); in getExpr() 60 Symbol = AsmPrinter.GetCPISymbol(MO.getIndex()); in getExpr() 64 Symbol = AsmPrinter.GetBlockAddressSymbol(MO.getBlockAddress()); in getExpr() 72 if (int64_t Offset = MO.getOffset()) { in getExpr() 79 MCOperand SystemZMCInstLower::lowerOperand(const MachineOperand &MO) const { in lowerOperand() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/ |
| H A D | LoongArchMCInstLower.cpp | 26 static MCOperand lowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym, in lowerSymbolOperand() argument 31 switch (LoongArchII::getDirectFlags(MO)) { in lowerSymbolOperand() 130 if (!MO.isJTI() && !MO.isMBB() && MO.getOffset()) in lowerSymbolOperand() 132 ME, MCConstantExpr::create(MO.getOffset(), Ctx), Ctx); in lowerSymbolOperand() 135 ME = LoongArchMCExpr::create(ME, Kind, Ctx, LoongArchII::hasRelaxFlag(MO)); in lowerSymbolOperand() 139 bool llvm::lowerLoongArchMachineOperandToMCOperand(const MachineOperand &MO, in lowerLoongArchMachineOperandToMCOperand() argument 142 switch (MO.getType()) { in lowerLoongArchMachineOperandToMCOperand() 148 if (MO.isImplicit()) in lowerLoongArchMachineOperandToMCOperand() 150 MCOp = MCOperand::createReg(MO.getReg()); in lowerLoongArchMachineOperandToMCOperand() 156 MCOp = MCOperand::createImm(MO.getImm()); in lowerLoongArchMachineOperandToMCOperand() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/XCore/ |
| H A D | XCoreMCInstLower.cpp | 31 MCOperand XCoreMCInstLower::LowerSymbolOperand(const MachineOperand &MO, in LowerSymbolOperand() argument 38 Symbol = MO.getMBB()->getSymbol(); in LowerSymbolOperand() 41 Symbol = Printer.getSymbol(MO.getGlobal()); in LowerSymbolOperand() 42 Offset += MO.getOffset(); in LowerSymbolOperand() 45 Symbol = Printer.GetBlockAddressSymbol(MO.getBlockAddress()); in LowerSymbolOperand() 46 Offset += MO.getOffset(); in LowerSymbolOperand() 49 Symbol = Printer.GetExternalSymbolSymbol(MO.getSymbolName()); in LowerSymbolOperand() 50 Offset += MO.getOffset(); in LowerSymbolOperand() 53 Symbol = Printer.GetJTISymbol(MO.getIndex()); in LowerSymbolOperand() 56 Symbol = Printer.GetCPISymbol(MO.getIndex()); in LowerSymbolOperand() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARC/ |
| H A D | ARCMCInstLower.cpp | 29 MCOperand ARCMCInstLower::LowerSymbolOperand(const MachineOperand &MO, in LowerSymbolOperand() argument 36 Symbol = MO.getMBB()->getSymbol(); in LowerSymbolOperand() 39 Symbol = Printer.getSymbol(MO.getGlobal()); in LowerSymbolOperand() 40 Offset += MO.getOffset(); in LowerSymbolOperand() 43 Symbol = Printer.GetBlockAddressSymbol(MO.getBlockAddress()); in LowerSymbolOperand() 44 Offset += MO.getOffset(); in LowerSymbolOperand() 47 Symbol = Printer.GetExternalSymbolSymbol(MO.getSymbolName()); in LowerSymbolOperand() 48 Offset += MO.getOffset(); in LowerSymbolOperand() 51 Symbol = Printer.GetJTISymbol(MO.getIndex()); in LowerSymbolOperand() 54 Symbol = Printer.GetCPISymbol(MO.getIndex()); in LowerSymbolOperand() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMMCInstLower.cpp | 38 MCOperand ARMAsmPrinter::GetSymbolRef(const MachineOperand &MO, in GetSymbolRef() argument 41 if (MO.getTargetFlags() & ARMII::MO_SBREL) in GetSymbolRef() 45 switch (MO.getTargetFlags() & ARMII::MO_OPTION_MASK) { in GetSymbolRef() 76 if (!MO.isJTI() && MO.getOffset()) in GetSymbolRef() 78 MCConstantExpr::create(MO.getOffset(), in GetSymbolRef() 85 bool ARMAsmPrinter::lowerOperand(const MachineOperand &MO, in lowerOperand() argument 87 switch (MO.getType()) { in lowerOperand() 91 if (MO.isImplicit()) in lowerOperand() 93 assert(!MO.getSubReg() && "Subregs should be eliminated!"); in lowerOperand() 94 MCOp = MCOperand::createReg(MO.getReg()); in lowerOperand() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/ |
| H A D | AVRMCCodeEmitter.cpp | 121 const MCOperand &MO = MI.getOperand(OpNo); in encodeRelCondBrTarget() local 123 if (MO.isExpr()) { in encodeRelCondBrTarget() 124 addFixup(Fixups, 0, MO.getExpr(), MCFixupKind(Fixup)); in encodeRelCondBrTarget() 128 assert(MO.isImm()); in encodeRelCondBrTarget() 132 auto target = MO.getImm(); in encodeRelCondBrTarget() 191 auto MO = MI.getOperand(OpNo); in encodeImm() local 193 if (MO.isExpr()) { in encodeImm() 194 if (isa<AVRMCExpr>(MO.getExpr())) { in encodeImm() 199 return getExprOpValue(MO.getExpr(), Fixups, STI); in encodeImm() 203 addFixup(Fixups, Offset, MO.getExpr(), FixupKind); in encodeImm() [all …]
|