/freebsd-9.3-release/contrib/llvm/lib/Target/MSP430/ |
H A D | MSP430MCInstLower.cpp | 30 GetGlobalAddressSymbol(const MachineOperand &MO) const { 31 switch (MO.getTargetFlags()) { 36 return Printer.getSymbol(MO.getGlobal()); 40 GetExternalSymbolSymbol(const MachineOperand &MO) const { 41 switch (MO.getTargetFlags()) { 46 return Printer.GetExternalSymbolSymbol(MO.getSymbolName()); 50 GetJumpTableSymbol(const MachineOperand &MO) const { 54 << MO.getIndex(); 56 switch (MO.getTargetFlags()) { 66 GetConstantPoolIndexSymbol(const MachineOperand &MO) cons 92 LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const argument 113 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-9.3-release/contrib/llvm/lib/Target/ARM/ |
H A D | ARMMCInstLower.cpp | 26 MCOperand ARMAsmPrinter::GetSymbolRef(const MachineOperand &MO, argument 29 switch (MO.getTargetFlags()) { 33 switch (MO.getTargetFlags()) { 57 if (!MO.isJTI() && MO.getOffset()) 59 MCConstantExpr::Create(MO.getOffset(), 66 bool ARMAsmPrinter::lowerOperand(const MachineOperand &MO, argument 68 switch (MO.getType()) { 72 if (MO.isImplicit() && MO 119 const MachineOperand &MO = MI->getOperand(i); local [all...] |
/freebsd-9.3-release/contrib/llvm/lib/Target/SystemZ/ |
H A D | SystemZMCInstLower.cpp | 34 SystemZMCInstLower::getExpr(const MachineOperand &MO, argument 38 switch (MO.getType()) { 40 Symbol = MO.getMBB()->getSymbol(); 45 Symbol = AsmPrinter.getSymbol(MO.getGlobal()); 49 Symbol = AsmPrinter.GetExternalSymbolSymbol(MO.getSymbolName()); 53 Symbol = AsmPrinter.GetJTISymbol(MO.getIndex()); 58 Symbol = AsmPrinter.GetCPISymbol(MO.getIndex()); 62 Symbol = AsmPrinter.GetBlockAddressSymbol(MO.getBlockAddress()); 70 if (int64_t Offset = MO.getOffset()) { 77 MCOperand SystemZMCInstLower::lowerOperand(const MachineOperand &MO) cons 95 const MachineOperand &MO = MI->getOperand(I); local [all...] |
/freebsd-9.3-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...] |
H A D | SparcCodeEmitter.cpp | 73 const MachineOperand &MO) const; 83 const MachineOperand &MO) const; 172 const MachineOperand &MO) const { 173 if (MO.isReg()) 174 return TM.getRegisterInfo()->getEncodingValue(MO.getReg()); 175 else if (MO.isImm()) 176 return static_cast<unsigned>(MO.getImm()); 177 else if (MO.isGlobal()) 178 emitGlobalAddress(MO.getGlobal(), getRelocation(MI, MO)); 191 const MachineOperand MO = MI.getOperand(opIdx); local 197 const MachineOperand MO = MI.getOperand(opIdx); local [all...] |
/freebsd-9.3-release/contrib/llvm/lib/Target/Hexagon/ |
H A D | HexagonMCInstLower.cpp | 27 static MCOperand GetSymbolRef(const MachineOperand& MO, const MCSymbol* Symbol, argument 34 if (!MO.isJTI() && MO.getOffset()) 35 ME = MCBinaryExpr::CreateAdd(ME, MCConstantExpr::Create(MO.getOffset(), MC), 48 const MachineOperand &MO = MI->getOperand(i); local 51 switch (MO.getType()) { 57 if (MO.isImplicit()) continue; 58 MCO = MCOperand::CreateReg(MO.getReg()); 61 APFloat Val = MO.getFPImm()->getValueAPF(); 68 MCO = MCOperand::CreateImm(MO [all...] |
H A D | HexagonAsmPrinter.cpp | 77 const MachineOperand &MO = MI->getOperand(OpNo); local 79 switch (MO.getType()) { 82 O << HexagonInstPrinter::getRegisterName(MO.getReg()); 85 O << MO.getImm(); 88 O << *MO.getMBB()->getSymbol(); 91 O << *GetJTISymbol(MO.getIndex()); 95 O << *GetCPISymbol(MO.getIndex()); 98 O << *GetExternalSymbolSymbol(MO.getSymbolName()); 102 O << *getSymbol(MO.getGlobal()); 103 printOffset(MO 266 const MachineOperand &MO = MI->getOperand(OpNo); local 279 const MachineOperand &MO = MI->getOperand(OpNo); local 289 const MachineOperand &MO = MI->getOperand(OpNo); local [all...] |
/freebsd-9.3-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-9.3-release/contrib/llvm/lib/Target/AArch64/ |
H A D | AArch64MCInstLower.cpp | 31 AArch64AsmPrinter::lowerSymbolOperand(const MachineOperand &MO, argument 37 switch (MO.getTargetFlags()) { 90 if (!MO.isJTI() && MO.getOffset()) 92 MCConstantExpr::Create(MO.getOffset(), 99 bool AArch64AsmPrinter::lowerOperand(const MachineOperand &MO, argument 101 switch (MO.getType()) { 104 if (MO.isImplicit()) 106 assert(!MO.getSubReg() && "Subregs should be eliminated!"); 107 MCOp = MCOperand::CreateReg(MO 151 const MachineOperand &MO = MI->getOperand(i); local [all...] |
H A D | AArch64AsmPrinter.cpp | 33 static bool printModifiedFPRAsmOperand(const MachineOperand &MO, argument 36 if (!MO.isReg()) 39 for (MCRegAliasIterator AR(MO.getReg(), TRI, true); AR.isValid(); ++AR) { 41 O << RegType << TRI->getEncodingValue(MO.getReg()); 52 static bool printModifiedGPRAsmOperand(const MachineOperand &MO, argument 58 if (MO.isImm() && MO.getImm() == 0) { 61 } else if (MO.isReg()) { 62 if (MO.getReg() == AArch64::XSP || MO 78 printSymbolicAddress(const MachineOperand &MO, bool PrintImmediatePrefix, StringRef Suffix, raw_ostream &O) argument 219 const MachineOperand &MO = MI->getOperand(OpNum); local 256 const MachineOperand &MO = MI->getOperand(OpNum); local [all...] |
/freebsd-9.3-release/contrib/llvm/lib/Target/PowerPC/MCTargetDesc/ |
H A D | PPCMCCodeEmitter.cpp | 71 unsigned getMachineOpValue(const MCInst &MI,const MCOperand &MO, 119 const MCOperand &MO = MI.getOperand(OpNo); local 120 if (MO.isReg() || MO.isImm()) return getMachineOpValue(MI, MO, Fixups); 123 Fixups.push_back(MCFixup::Create(0, MO.getExpr(), 130 const MCOperand &MO = MI.getOperand(OpNo); local 131 if (MO.isReg() || MO.isImm()) return getMachineOpValue(MI, MO, Fixup 142 const MCOperand &MO = MI.getOperand(OpNo); local 154 const MCOperand &MO = MI.getOperand(OpNo); local 165 const MCOperand &MO = MI.getOperand(OpNo); local 181 const MCOperand &MO = MI.getOperand(OpNo); local 199 const MCOperand &MO = MI.getOperand(OpNo); local 212 const MCOperand &MO = MI.getOperand(OpNo); local 228 const MCOperand &MO = MI.getOperand(OpNo+1); local 237 const MCOperand &MO = MI.getOperand(OpNo); local 246 getMachineOpValue(const MCInst &MI, const MCOperand &MO, SmallVectorImpl<MCFixup> &Fixups) const argument [all...] |
/freebsd-9.3-release/contrib/llvm/lib/Target/PowerPC/ |
H A D | PPCCodeEmitter.cpp | 56 MachineRelocation GetRelocation(const MachineOperand &MO, 61 const MachineOperand &MO) const; 144 const MachineOperand &MO = MI.getOperand(OpNo); local 147 (MO.getReg() >= PPC::CR0 && MO.getReg() <= PPC::CR7)); 148 return 0x80 >> TM.getRegisterInfo()->getEncodingValue(MO.getReg()); 151 MachineRelocation PPCCodeEmitter::GetRelocation(const MachineOperand &MO, argument 164 if (MO.isGlobal()) 166 const_cast<GlobalValue *>(MO.getGlobal()), 167 Cst, isa<Function>(MO 186 const MachineOperand &MO = MI.getOperand(OpNo); local 195 const MachineOperand &MO = MI.getOperand(OpNo); local 202 const MachineOperand &MO = MI.getOperand(OpNo); local 215 const MachineOperand &MO = MI.getOperand(OpNo); local 236 const MachineOperand &MO = MI.getOperand(OpNo); local 252 const MachineOperand &MO = MI.getOperand(OpNo); local [all...] |
H A D | PPCMCInstLower.cpp | 34 static MCSymbol *GetSymbolFromOperand(const MachineOperand &MO, AsmPrinter &AP){ argument 38 if (!MO.isGlobal()) { 39 assert(MO.isSymbol() && "Isn't a symbol reference"); 41 Name += MO.getSymbolName(); 43 const GlobalValue *GV = MO.getGlobal(); 45 if (MO.getTargetFlags() == PPCII::MO_DARWIN_STUB || 46 (MO.getTargetFlags() & PPCII::MO_NLP_FLAG)) 54 if (MO.getTargetFlags() == PPCII::MO_DARWIN_STUB) { 69 if (MO.isGlobal()) { 72 StubValueTy(AP.getSymbol(MO 107 GetSymbolRef(const MachineOperand &MO, const MCSymbol *Symbol, AsmPrinter &Printer, bool isDarwin) argument 168 const MachineOperand &MO = MI->getOperand(i); local [all...] |
/freebsd-9.3-release/contrib/llvm/lib/Target/Sparc/MCTargetDesc/ |
H A D | SparcMCCodeEmitter.cpp | 52 unsigned getMachineOpValue(const MCInst &MI, const MCOperand &MO, 90 const MCOperand &MO = MI.getOperand(tlsOpNo); local 91 uint64_t op = getMachineOpValue(MI, MO, Fixups); 101 getMachineOpValue(const MCInst &MI, const MCOperand &MO, argument 104 if (MO.isReg()) 105 return Ctx.getRegisterInfo()->getEncodingValue(MO.getReg()); 107 if (MO.isImm()) 108 return MO.getImm(); 110 assert(MO.isExpr()); 111 const MCExpr *Expr = MO 129 const MCOperand &MO = MI.getOperand(OpNo); local 163 const MCOperand &MO = MI.getOperand(OpNo); local [all...] |
/freebsd-9.3-release/contrib/llvm/lib/Target/Mips/ |
H A D | MipsMCInstLower.cpp | 35 MCOperand MipsMCInstLower::LowerSymbolOperand(const MachineOperand &MO, argument 41 switch(MO.getTargetFlags()) { 72 Symbol = MO.getMBB()->getSymbol(); 76 Symbol = AsmPrinter.getSymbol(MO.getGlobal()); 77 Offset += MO.getOffset(); 81 Symbol = AsmPrinter.GetBlockAddressSymbol(MO.getBlockAddress()); 82 Offset += MO.getOffset(); 86 Symbol = AsmPrinter.GetExternalSymbolSymbol(MO.getSymbolName()); 87 Offset += MO.getOffset(); 91 Symbol = AsmPrinter.GetJTISymbol(MO 128 LowerOperand(const MachineOperand &MO, unsigned offset) const argument 158 const MachineOperand &MO = MI->getOperand(i); local [all...] |
/freebsd-9.3-release/contrib/llvm/lib/CodeGen/ |
H A D | DeadMachineInstructionElim.cpp | 67 const MachineOperand &MO = MI->getOperand(i); local 68 if (MO.isReg() && MO.isDef()) { 69 unsigned Reg = MO.getReg(); 124 const MachineOperand &MO = MI->getOperand(i); local 125 if (!MO.isReg() || !MO.isDef()) 127 unsigned Reg = MO.getReg(); 153 const MachineOperand &MO = MI->getOperand(i); local 154 if (MO 172 const MachineOperand &MO = MI->getOperand(i); local [all...] |
H A D | MachineInstrBundle.cpp | 53 MachineOperand &MO = MII->getOperand(i); local 54 if (MO.isReg() && MO.isInternalRead()) 55 MO.setIsInternalRead(false); 125 MachineOperand &MO = FirstMI->getOperand(i); local 126 if (!MO.isReg()) 128 if (MO.isDef()) { 129 Defs.push_back(&MO); 133 unsigned Reg = MO.getReg(); 138 MO 155 MachineOperand &MO = *Defs[i]; local 256 MachineOperand &MO = deref(); local 289 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.getOperand() != &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 622 MachineOperand &MO = MI->getOperand(OpNum); local 667 MachineOperand &MO = MI->getOperand(OpNum); local 700 MachineOperand &MO = MI->getOperand(i); local 716 MachineOperand &MO = MI->getOperand(i); local 730 MachineOperand &MO = MI->getOperand(i); local 755 MachineOperand &MO = MI->getOperand(i); local 771 MachineOperand &MO = MI->getOperand(i); local 846 MachineOperand &MO = MI->getOperand(i); local 907 MachineOperand &MO = MI->getOperand(i); local 962 MachineOperand &MO = MI->getOperand(i); local 984 MachineOperand &MO = MI->getOperand(i); local 1012 MachineOperand &MO = MI->getOperand(i); local [all...] |
H A D | ProcessImplicitDefs.cpp | 70 for (MIOperands MO(MI); MO.isValid(); ++MO) 71 if (MO->isReg() && MO->isUse() && MO->readsReg()) 86 MachineOperand &MO = UI.getOperand(); local 87 MO.setIsUndef(); 88 MachineInstr *UserMI = MO.getParent(); 105 for (MIOperands MO(UserM [all...] |
H A D | MachineInstr.cpp | 213 hash_code llvm::hash_value(const MachineOperand &MO) { argument 214 switch (MO.getType()) { 217 return hash_combine(MO.getType(), MO.getReg(), MO.getSubReg(), MO.isDef()); 219 return hash_combine(MO.getType(), MO.getTargetFlags(), MO.getImm()); 221 return hash_combine(MO 744 addMemOperand(MachineFunction &MF, MachineMemOperand *MO) argument 796 const MachineOperand &MO = getOperand(i); local 864 const MachineOperand &MO = getOperand(i); local 1003 const MachineOperand &MO = getOperand(i); local 1031 const MachineOperand &MO = getOperand(i); local 1057 const MachineOperand &MO = getOperand(i); local 1138 const MachineOperand &MO = getOperand(OpIdx); local 1196 MachineOperand &MO = getOperand(i); local 1210 MachineOperand &MO = getOperand(i); local 1217 MachineOperand &MO = getOperand(i); local 1359 const MachineOperand &MO = getOperand(i); local 1374 const MachineOperand &MO = MI->getOperand(i); local 1483 const MachineOperand &MO = getOperand(i); local 1644 MachineOperand &MO = getOperand(i); local 1699 MachineOperand &MO = getOperand(i); local 1717 MachineOperand &MO = getOperand(i); local 1763 MachineOperand *MO = findRegisterDefOperand(Reg, false, RegInfo); local 1768 const MachineOperand &MO = getOperand(i); local 1783 MachineOperand &MO = getOperand(i); local 1817 const MachineOperand &MO = MI->getOperand(i); local [all...] |
H A D | MachineRegisterInfo.cpp | 137 MachineOperand *MO = &I.getOperand(); local 138 MachineInstr *MI = MO->getParent(); 141 << " use list MachineOperand " << MO 147 if (!(MO >= MO0 && MO < MO0+NumOps)) { 149 << " use list MachineOperand " << MO 153 if (!MO->isReg()) { 155 << " MachineOperand " << MO << ": " << *MO local 159 if (MO 162 << *MO << " is the wrong register\\n"; local 180 addRegOperandToUseList(MachineOperand *MO) argument 219 removeRegOperandFromUseList(MachineOperand *MO) argument [all...] |
/freebsd-9.3-release/contrib/llvm/lib/Target/Sparc/InstPrinter/ |
H A D | SparcInstPrinter.cpp | 67 const MCOperand &MO = MI->getOperand (opNum); local 69 if (MO.isReg()) { 70 printRegName(O, MO.getReg()); 74 if (MO.isImm()) { 75 O << (int)MO.getImm(); 79 assert(MO.isExpr() && "Unknown operand kind in printOperand"); 80 MO.getExpr()->print(O); 94 const MCOperand &MO = MI->getOperand(opNum+1); local 96 if (MO.isReg() && MO [all...] |
/freebsd-9.3-release/contrib/llvm/lib/Target/R600/MCTargetDesc/ |
H A D | SIMCCodeEmitter.cpp | 47 uint32_t getLitEncoding(const MCOperand &MO) const; 61 virtual uint64_t getMachineOpValue(const MCInst &MI, const MCOperand &MO, 84 uint32_t SIMCCodeEmitter::getLitEncoding(const MCOperand &MO) const { 87 if (MO.isImm()) 88 Imm.I = MO.getImm(); 89 else if (MO.isFPImm()) 90 Imm.F = MO.getFPImm(); 170 const MCOperand &MO, 172 if (MO.isReg()) 173 return MRI.getEncodingValue(MO 169 getMachineOpValue(const MCInst &MI, const MCOperand &MO, SmallVectorImpl<MCFixup> &Fixups) const argument [all...] |
/freebsd-9.3-release/contrib/llvm/lib/Target/X86/ |
H A D | X86AsmPrinter.cpp | 77 void X86AsmPrinter::printSymbolOperand(const MachineOperand &MO, argument 79 switch (MO.getType()) { 82 O << *GetJTISymbol(MO.getIndex()); 85 O << *GetCPISymbol(MO.getIndex()); 86 printOffset(MO.getOffset(), O); 89 const GlobalValue *GV = MO.getGlobal(); 92 if (MO.getTargetFlags() == X86II::MO_DARWIN_STUB) 94 else if (MO.getTargetFlags() == X86II::MO_DARWIN_NONLAZY || 95 MO.getTargetFlags() == X86II::MO_DARWIN_NONLAZY_PIC_BASE || 96 MO 213 const MachineOperand &MO = MI->getOperand(OpNo); local 237 const MachineOperand &MO = MI->getOperand(OpNo); local 379 printAsmMRegister(const MachineOperand &MO, char Mode, raw_ostream &O) argument 417 const MachineOperand &MO = MI->getOperand(OpNo); local [all...] |