/freebsd-11.0-release/contrib/llvm/lib/Target/MSP430/ |
H A D | MSP430MCInstLower.cpp | 32 GetGlobalAddressSymbol(const MachineOperand &MO) const { 33 switch (MO.getTargetFlags()) { 38 return Printer.getSymbol(MO.getGlobal()); 42 GetExternalSymbolSymbol(const MachineOperand &MO) const { 43 switch (MO.getTargetFlags()) { 48 return Printer.GetExternalSymbolSymbol(MO.getSymbolName()); 52 GetJumpTableSymbol(const MachineOperand &MO) const { 57 << MO.getIndex(); 59 switch (MO.getTargetFlags()) { 69 GetConstantPoolIndexSymbol(const MachineOperand &MO) cons 96 LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const argument 117 const MachineOperand &MO = MI->getOperand(i); local [all...] |
H A D | MSP430MCInstLower.h | 36 MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const; 38 MCSymbol *GetGlobalAddressSymbol(const MachineOperand &MO) const; 39 MCSymbol *GetExternalSymbolSymbol(const MachineOperand &MO) const; 40 MCSymbol *GetJumpTableSymbol(const MachineOperand &MO) const; 41 MCSymbol *GetConstantPoolIndexSymbol(const MachineOperand &MO) const; 42 MCSymbol *GetBlockAddressSymbol(const MachineOperand &MO) const;
|
/freebsd-11.0-release/contrib/llvm/lib/Target/AArch64/ |
H A D | AArch64MCInstLower.cpp | 35 AArch64MCInstLower::GetGlobalAddressSymbol(const MachineOperand &MO) const { 36 return Printer.getSymbol(MO.getGlobal()); 40 AArch64MCInstLower::GetExternalSymbolSymbol(const MachineOperand &MO) const { 41 return Printer.GetExternalSymbolSymbol(MO.getSymbolName()); 44 MCOperand AArch64MCInstLower::lowerSymbolOperandDarwin(const MachineOperand &MO, argument 49 if ((MO.getTargetFlags() & AArch64II::MO_GOT) != 0) { 50 if ((MO.getTargetFlags() & AArch64II::MO_FRAGMENT) == AArch64II::MO_PAGE) 52 else if ((MO.getTargetFlags() & AArch64II::MO_FRAGMENT) == 57 } else if ((MO.getTargetFlags() & AArch64II::MO_TLS) != 0) { 58 if ((MO 79 lowerSymbolOperandELF(const MachineOperand &MO, MCSymbol *Sym) const argument 154 LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const argument 163 lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const argument [all...] |
H A D | AArch64MCInstLower.h | 38 bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const; 41 MCOperand lowerSymbolOperandDarwin(const MachineOperand &MO, 43 MCOperand lowerSymbolOperandELF(const MachineOperand &MO, 45 MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const; 47 MCSymbol *GetGlobalAddressSymbol(const MachineOperand &MO) const; 48 MCSymbol *GetExternalSymbolSymbol(const MachineOperand &MO) const;
|
H A D | AArch64DeadRegisterDefinitionsPass.cpp | 66 for (const MachineOperand &MO : MI.implicit_operands()) 67 if (MO.isReg() && MO.isDef()) 68 if (TRI->regsOverlap(Reg, MO.getReg())) 92 MachineOperand &MO = MI.getOperand(i); local 93 if (MO.isReg() && MO.isDead() && MO.isDef()) { 94 assert(!MO.isImplicit() && "Unexpected implicit def!"); 104 if (implicitlyDefinesOverlappingReg(MO [all...] |
/freebsd-11.0-release/contrib/llvm/lib/Target/BPF/ |
H A D | BPFMCInstLower.cpp | 29 BPFMCInstLower::GetGlobalAddressSymbol(const MachineOperand &MO) const { 30 return Printer.getSymbol(MO.getGlobal()); 33 MCOperand BPFMCInstLower::LowerSymbolOperand(const MachineOperand &MO, argument 38 if (!MO.isJTI() && MO.getOffset()) 48 const MachineOperand &MO = MI->getOperand(i); local 51 switch (MO.getType()) { 57 if (MO.isImplicit()) 59 MCOp = MCOperand::createReg(MO.getReg()); 62 MCOp = MCOperand::createImm(MO [all...] |
H A D | BPFAsmPrinter.cpp | 51 const MachineOperand &MO = MI->getOperand(OpNum); local 53 switch (MO.getType()) { 55 O << BPFInstPrinter::getRegisterName(MO.getReg()); 59 O << MO.getImm(); 63 O << *MO.getMBB()->getSymbol(); 67 O << *getSymbol(MO.getGlobal());
|
/freebsd-11.0-release/contrib/llvm/lib/Target/Sparc/ |
H A D | SparcMCInstLower.cpp | 32 const MachineOperand &MO, 36 (SparcMCExpr::VariantKind)MO.getTargetFlags(); 39 switch(MO.getType()) { 42 Symbol = MO.getMBB()->getSymbol(); 46 Symbol = AP.getSymbol(MO.getGlobal()); 50 Symbol = AP.GetBlockAddressSymbol(MO.getBlockAddress()); 54 Symbol = AP.GetExternalSymbolSymbol(MO.getSymbolName()); 58 Symbol = AP.GetCPISymbol(MO.getIndex()); 70 const MachineOperand &MO, 72 switch(MO 31 LowerSymbolOperand(const MachineInstr *MI, const MachineOperand &MO, AsmPrinter &AP) argument 69 LowerOperand(const MachineInstr *MI, const MachineOperand &MO, AsmPrinter &AP) argument 103 const MachineOperand &MO = MI->getOperand(i); local [all...] |
/freebsd-11.0-release/contrib/llvm/lib/Target/XCore/ |
H A D | XCoreMCInstLower.cpp | 35 MCOperand XCoreMCInstLower::LowerSymbolOperand(const MachineOperand &MO, argument 43 Symbol = MO.getMBB()->getSymbol(); 46 Symbol = Printer.getSymbol(MO.getGlobal()); 47 Offset += MO.getOffset(); 50 Symbol = Printer.GetBlockAddressSymbol(MO.getBlockAddress()); 51 Offset += MO.getOffset(); 54 Symbol = Printer.GetExternalSymbolSymbol(MO.getSymbolName()); 55 Offset += MO.getOffset(); 58 Symbol = Printer.GetJTISymbol(MO.getIndex()); 61 Symbol = Printer.GetCPISymbol(MO 81 LowerOperand(const MachineOperand &MO, unsigned offset) const argument 111 const MachineOperand &MO = MI->getOperand(i); local [all...] |
/freebsd-11.0-release/contrib/llvm/lib/Target/SystemZ/ |
H A D | SystemZMCInstLower.cpp | 37 SystemZMCInstLower::getExpr(const MachineOperand &MO, argument 41 switch (MO.getType()) { 43 Symbol = MO.getMBB()->getSymbol(); 48 Symbol = AsmPrinter.getSymbol(MO.getGlobal()); 52 Symbol = AsmPrinter.GetExternalSymbolSymbol(MO.getSymbolName()); 56 Symbol = AsmPrinter.GetJTISymbol(MO.getIndex()); 61 Symbol = AsmPrinter.GetCPISymbol(MO.getIndex()); 65 Symbol = AsmPrinter.GetBlockAddressSymbol(MO.getBlockAddress()); 73 if (int64_t Offset = MO.getOffset()) { 80 MCOperand SystemZMCInstLower::lowerOperand(const MachineOperand &MO) cons 98 const MachineOperand &MO = MI->getOperand(I); local [all...] |
/freebsd-11.0-release/contrib/llvm/lib/Target/ARM/ |
H A D | ARMMCInstLower.cpp | 27 MCOperand ARMAsmPrinter::GetSymbolRef(const MachineOperand &MO, argument 30 unsigned Option = MO.getTargetFlags() & ARMII::MO_OPTION_MASK; 59 if (!MO.isJTI() && MO.getOffset()) 61 MCConstantExpr::create(MO.getOffset(), 68 bool ARMAsmPrinter::lowerOperand(const MachineOperand &MO, argument 70 switch (MO.getType()) { 74 if (MO.isImplicit() && MO.getReg() != ARM::CPSR) 76 assert(!MO 151 const MachineOperand &MO = MI->getOperand(i); local [all...] |
/freebsd-11.0-release/contrib/llvm/lib/Target/PowerPC/ |
H A D | PPCMCInstLower.cpp | 38 static MCSymbol *GetSymbolFromOperand(const MachineOperand &MO, AsmPrinter &AP){ argument 47 if (MO.getTargetFlags() == PPCII::MO_PLT_OR_STUB) { 50 } else if (MO.getTargetFlags() & PPCII::MO_NLP_FLAG) 58 if (!MO.isGlobal()) { 59 assert(MO.isSymbol() && "Isn't a symbol reference"); 60 Mangler::getNameWithPrefix(Name, MO.getSymbolName(), DL); 62 const GlobalValue *GV = MO.getGlobal(); 74 if (MO.getTargetFlags() == PPCII::MO_PLT_OR_STUB && isDarwin) { 80 if (MO.isGlobal()) { 83 StubValueTy(AP.getSymbol(MO 114 GetSymbolRef(const MachineOperand &MO, const MCSymbol *Symbol, AsmPrinter &Printer, bool isDarwin) argument 178 const MachineOperand &MO = MI->getOperand(i); local [all...] |
/freebsd-11.0-release/contrib/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyMCInstLower.cpp | 30 WebAssemblyMCInstLower::GetGlobalAddressSymbol(const MachineOperand &MO) const { 31 return Printer.getSymbol(MO.getGlobal()); 35 const MachineOperand &MO) const { 36 return Printer.GetExternalSymbolSymbol(MO.getSymbolName()); 62 const MachineOperand &MO = MI->getOperand(i); local 65 switch (MO.getType()) { 74 if (MO.isImplicit()) 78 unsigned WAReg = MFI.getWAReg(MO.getReg()); 83 MCOp = MCOperand::createImm(MO.getImm()); 88 const ConstantFP *Imm = MO [all...] |
/freebsd-11.0-release/contrib/llvm/lib/Target/Hexagon/ |
H A D | HexagonMCInstLower.cpp | 34 static MCOperand GetSymbolRef(const MachineOperand &MO, const MCSymbol *Symbol, argument 42 switch (MO.getTargetFlags()) { 65 if (!MO.isJTI() && MO.getOffset()) 66 ME = MCBinaryExpr::createAdd(ME, MCConstantExpr::create(MO.getOffset(), MC), 90 const MachineOperand &MO = MI->getOperand(i); local 92 if (MO.getTargetFlags() & HexagonII::HMOTF_ConstExtended) 95 switch (MO.getType()) { 101 if (MO.isImplicit()) continue; 102 MCO = MCOperand::createReg(MO [all...] |
/freebsd-11.0-release/contrib/llvm/lib/Target/AArch64/MCTargetDesc/ |
H A D | AArch64MCCodeEmitter.cpp | 54 unsigned getMachineOpValue(const MCInst &MI, const MCOperand &MO, 204 AArch64MCCodeEmitter::getMachineOpValue(const MCInst &MI, const MCOperand &MO, argument 207 if (MO.isReg()) 208 return Ctx.getRegisterInfo()->getEncodingValue(MO.getReg()); 210 assert(MO.isImm() && "did not expect relocated expression"); 211 return static_cast<unsigned>(MO.getImm()); 218 const MCOperand &MO = MI.getOperand(OpIdx); local 221 if (MO.isImm()) 222 ImmVal = static_cast<uint32_t>(MO.getImm()); 224 assert(MO 239 const MCOperand &MO = MI.getOperand(OpIdx); local 266 const MCOperand &MO = MI.getOperand(OpIdx); local 292 const MCOperand &MO = MI.getOperand(OpIdx); local 314 const MCOperand &MO = MI.getOperand(OpIdx); local 343 const MCOperand &MO = MI.getOperand(OpIdx); local 362 const MCOperand &MO = MI.getOperand(OpIdx); local 384 const MCOperand &MO = MI.getOperand(OpIdx); local 412 const MCOperand &MO = MI.getOperand(OpIdx); local 435 const MCOperand &MO = MI.getOperand(OpIdx); local 443 const MCOperand &MO = MI.getOperand(OpIdx); local 452 const MCOperand &MO = MI.getOperand(OpIdx); local 461 const MCOperand &MO = MI.getOperand(OpIdx); local 471 const MCOperand &MO = MI.getOperand(OpIdx); local 480 const MCOperand &MO = MI.getOperand(OpIdx); local 489 const MCOperand &MO = MI.getOperand(OpIdx); local 498 const MCOperand &MO = MI.getOperand(OpIdx); local 507 const MCOperand &MO = MI.getOperand(OpIdx); local 516 const MCOperand &MO = MI.getOperand(OpIdx); local 525 const MCOperand &MO = MI.getOperand(OpIdx); local 534 const MCOperand &MO = MI.getOperand(OpIdx); local 543 const MCOperand &MO = MI.getOperand(OpIdx); local 553 const MCOperand &MO = MI.getOperand(OpIdx); local [all...] |
/freebsd-11.0-release/contrib/llvm/lib/Target/PowerPC/MCTargetDesc/ |
H A D | PPCMCCodeEmitter.cpp | 93 unsigned getMachineOpValue(const MCInst &MI,const MCOperand &MO, 156 const MCOperand &MO = MI.getOperand(OpNo); local 157 if (MO.isReg() || MO.isImm()) return getMachineOpValue(MI, MO, Fixups, STI); 160 Fixups.push_back(MCFixup::create(0, MO.getExpr(), 168 const MCOperand &MO = MI.getOperand(OpNo); local 169 if (MO.isReg() || MO.isImm()) return getMachineOpValue(MI, MO, Fixup 181 const MCOperand &MO = MI.getOperand(OpNo); local 194 const MCOperand &MO = MI.getOperand(OpNo); local 206 const MCOperand &MO = MI.getOperand(OpNo); local 223 const MCOperand &MO = MI.getOperand(OpNo); local 242 const MCOperand &MO = MI.getOperand(OpNo); local 262 const MCOperand &MO = MI.getOperand(OpNo); local 278 const MCOperand &MO = MI.getOperand(OpNo); local 294 const MCOperand &MO = MI.getOperand(OpNo); local 304 const MCOperand &MO = MI.getOperand(OpNo); local 323 const MCOperand &MO = MI.getOperand(OpNo+1); local 333 const MCOperand &MO = MI.getOperand(OpNo); local 342 getMachineOpValue(const MCInst &MI, const MCOperand &MO, SmallVectorImpl<MCFixup> &Fixups, const MCSubtargetInfo &STI) const argument [all...] |
/freebsd-11.0-release/contrib/llvm/lib/Target/Sparc/MCTargetDesc/ |
H A D | SparcMCCodeEmitter.cpp | 56 unsigned getMachineOpValue(const MCInst &MI, const MCOperand &MO, 104 const MCOperand &MO = MI.getOperand(tlsOpNo); local 105 uint64_t op = getMachineOpValue(MI, MO, Fixups, STI); 115 getMachineOpValue(const MCInst &MI, const MCOperand &MO, argument 119 if (MO.isReg()) 120 return Ctx.getRegisterInfo()->getEncodingValue(MO.getReg()); 122 if (MO.isImm()) 123 return MO.getImm(); 125 assert(MO.isExpr()); 126 const MCExpr *Expr = MO 145 const MCOperand &MO = MI.getOperand(OpNo); local 180 const MCOperand &MO = MI.getOperand(OpNo); local 193 const MCOperand &MO = MI.getOperand(OpNo); local 205 const MCOperand &MO = MI.getOperand(OpNo); local [all...] |
/freebsd-11.0-release/contrib/llvm/lib/CodeGen/ |
H A D | MachineInstr.cpp | 263 hash_code llvm::hash_value(const MachineOperand &MO) { argument 264 switch (MO.getType()) { 267 return hash_combine(MO.getType(), MO.getReg(), MO.getSubReg(), MO.isDef()); 269 return hash_combine(MO.getType(), MO.getTargetFlags(), MO.getImm()); 271 return hash_combine(MO 856 addMemOperand(MachineFunction &MF, MachineMemOperand *MO) argument 959 const MachineOperand &MO = getOperand(i); local 1047 const MachineOperand &MO = getOperand(i); local 1192 const MachineOperand &MO = getOperand(OpIdx); local 1203 const MachineOperand &MO = getOperand(OpIdx); local 1233 const MachineOperand &MO = getOperand(i); local 1261 const MachineOperand &MO = getOperand(i); local 1287 const MachineOperand &MO = getOperand(i); local 1368 const MachineOperand &MO = getOperand(OpIdx); local 1604 const MachineOperand &MO = MI->getOperand(i); local 1701 const MachineOperand &MO = getOperand(i); local 1877 MachineOperand &MO = getOperand(i); local 1949 MachineOperand &MO = getOperand(i); local 2011 MachineOperand *MO = findRegisterDefOperand(Reg, false, RegInfo); local [all...] |
H A D | MachineRegisterInfo.cpp | 74 for (MachineOperand &MO : reg_nodbg_operands(Reg)) { 76 MachineInstr *MI = MO.getParent(); 77 unsigned OpNo = &MO - &MI->getOperand(0); 126 MachineOperand *MO = &M; local 127 MachineInstr *MI = MO->getParent(); 130 << " use list MachineOperand " << MO 137 if (!(MO >= MO0 && MO < MO0+NumOps)) { 139 << " use list MachineOperand " << MO 143 if (!MO 145 << " MachineOperand " << MO << ": " << *MO local 152 << *MO << " is the wrong register\\n"; local 170 addRegOperandToUseList(MachineOperand *MO) argument 209 removeRegOperandFromUseList(MachineOperand *MO) argument 456 isNoReturnDef(const MachineOperand &MO) argument [all...] |
H A D | MachineInstrBundle.cpp | 61 MachineOperand &MO = MII->getOperand(i); local 62 if (MO.isReg() && MO.isInternalRead()) 63 MO.setIsInternalRead(false); 137 MachineOperand &MO = FirstMI->getOperand(i); local 138 if (!MO.isReg()) 140 if (MO.isDef()) { 141 Defs.push_back(&MO); 145 unsigned Reg = MO.getReg(); 150 MO 167 MachineOperand &MO = *Defs[i]; local 268 MachineOperand &MO = deref(); local 301 MachineOperand &MO = deref(); local [all...] |
H A D | RegAllocFast.cpp | 216 /// isLastUseOfLocalReg - Return true if MO is the only remaining reference to 219 bool RAFast::isLastUseOfLocalReg(MachineOperand &MO) { argument 222 if (StackSlotForVirtReg[MO.getReg()] != -1) 225 // Check that the use/def chain has exactly one operand - MO. 226 MachineRegisterInfo::reg_nodbg_iterator I = MRI->reg_nodbg_begin(MO.getReg()); 227 if (&*I != &MO) 235 MachineOperand &MO = LR.LastUse->getOperand(LR.LastOpNum); 236 if (MO.isUse() && !LR.LastUse->isRegTiedToDefOperand(LR.LastOpNum)) { 237 if (MO.getReg() == LR.PhysReg) 238 MO 344 usePhysReg(MachineOperand &MO) argument 630 MachineOperand &MO = MI->getOperand(OpNum); local 675 MachineOperand &MO = MI->getOperand(OpNum); local 708 MachineOperand &MO = MI->getOperand(i); local 724 MachineOperand &MO = MI->getOperand(i); local 738 MachineOperand &MO = MI->getOperand(i); local 763 MachineOperand &MO = MI->getOperand(i); local 779 MachineOperand &MO = MI->getOperand(i); local 853 MachineOperand &MO = MI->getOperand(i); local 920 MachineOperand &MO = MI->getOperand(i); local 975 MachineOperand &MO = MI->getOperand(i); local 993 MachineOperand &MO = MI->getOperand(i); local 1023 MachineOperand &MO = MI->getOperand(i); local [all...] |
H A D | DeadMachineInstructionElim.cpp | 73 const MachineOperand &MO = MI->getOperand(i); local 74 if (MO.isReg() && MO.isDef()) { 75 unsigned Reg = MO.getReg(); 139 const MachineOperand &MO = MI->getOperand(i); local 140 if (MO.isReg() && MO.isDef()) { 141 unsigned Reg = MO.getReg(); 150 } else if (MO.isRegMask()) { 152 LivePhysRegs.clearBitsNotInMask(MO 158 const MachineOperand &MO = MI->getOperand(i); local [all...] |
/freebsd-11.0-release/contrib/llvm/lib/Target/Mips/ |
H A D | MipsMCInstLower.cpp | 36 MCOperand MipsMCInstLower::LowerSymbolOperand(const MachineOperand &MO, argument 42 switch(MO.getTargetFlags()) { 73 Symbol = MO.getMBB()->getSymbol(); 77 Symbol = AsmPrinter.getSymbol(MO.getGlobal()); 78 Offset += MO.getOffset(); 82 Symbol = AsmPrinter.GetBlockAddressSymbol(MO.getBlockAddress()); 83 Offset += MO.getOffset(); 87 Symbol = AsmPrinter.GetExternalSymbolSymbol(MO.getSymbolName()); 88 Offset += MO.getOffset(); 92 Symbol = MO 134 LowerOperand(const MachineOperand &MO, unsigned offset) const argument 191 const MachineOperand &MO = MI->getOperand(I); local 233 const MachineOperand &MO = MI->getOperand(i); local [all...] |
/freebsd-11.0-release/contrib/llvm/lib/Target/Mips/MCTargetDesc/ |
H A D | MipsMCCodeEmitter.cpp | 225 const MCOperand &MO = MI.getOperand(OpNo); 228 if (MO.isImm()) return MO.getImm() >> 2; 230 assert(MO.isExpr() && 234 MO.getExpr(), MCConstantExpr::create(-4, Ctx), Ctx); 248 const MCOperand &MO = MI.getOperand(OpNo); 251 if (MO.isImm()) return MO.getImm() >> 1; 253 assert(MO.isExpr() && 256 const MCExpr *Expr = MO [all...] |
/freebsd-11.0-release/contrib/llvm/lib/Target/AMDGPU/MCTargetDesc/ |
H A D | SIMCCodeEmitter.cpp | 44 uint32_t getLitEncoding(const MCOperand &MO, unsigned OpSize) const; 59 uint64_t getMachineOpValue(const MCInst &MI, const MCOperand &MO, 163 uint32_t SIMCCodeEmitter::getLitEncoding(const MCOperand &MO, argument 165 if (MO.isExpr()) 168 assert(!MO.isFPImm()); 170 if (!MO.isImm()) 174 return getLit32Encoding(static_cast<uint32_t>(MO.getImm())); 178 return getLit64Encoding(static_cast<uint64_t>(MO.getImm())); 231 const MCOperand &MO = MI.getOperand(OpNo); local 233 if (MO 243 getMachineOpValue(const MCInst &MI, const MCOperand &MO, SmallVectorImpl<MCFixup> &Fixups, const MCSubtargetInfo &STI) const argument [all...] |