Searched refs:MO (Results 1 - 25 of 170) sorted by relevance

1234567

/external/clang/test/CodeGenCXX/
H A D2010-03-09-AnonAggregate.cpp6 class MO { class
12 class MO m;
/external/llvm/lib/Target/MSP430/
H A DMSP430MCInstLower.cpp30 GetGlobalAddressSymbol(const MachineOperand &MO) const {
31 switch (MO.getTargetFlags()) {
36 return Printer.Mang->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 DMSP430MCInstLower.h36 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;
/external/llvm/lib/Target/ARM/
H A DARMMCInstLower.cpp26 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...]
/external/llvm/lib/Target/SystemZ/
H A DSystemZMCInstLower.cpp42 MCOperand SystemZMCInstLower::lowerSymbolOperand(const MachineOperand &MO, argument
45 MCSymbolRefExpr::VariantKind Kind = getVariantKind(MO.getTargetFlags());
54 MCOperand SystemZMCInstLower::lowerOperand(const MachineOperand &MO) const {
55 switch (MO.getType()) {
60 return MCOperand::CreateReg(MO.getReg());
63 return MCOperand::CreateImm(MO.getImm());
66 return lowerSymbolOperand(MO, MO.getMBB()->getSymbol(),
67 /* MO has no offset field */0);
70 return lowerSymbolOperand(MO, Man
103 const MachineOperand &MO = MI->getOperand(I); local
[all...]
/external/llvm/lib/Target/Hexagon/
H A DHexagonMCInstLower.cpp27 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 DHexagonAsmPrinter.cpp77 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 << *Mang->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...]
/external/llvm/lib/Target/XCore/
H A DXCoreMCInstLower.cpp35 MCOperand XCoreMCInstLower::LowerSymbolOperand(const MachineOperand &MO, argument
43 Symbol = MO.getMBB()->getSymbol();
46 Symbol = Mang->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...]
/external/llvm/lib/Target/AArch64/
H A DAArch64MCInstLower.cpp31 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 DAArch64AsmPrinter.cpp33 static bool printModifiedFPRAsmOperand(const MachineOperand &MO, argument
37 if (!MO.isReg())
40 for (MCRegAliasIterator AR(MO.getReg(), TRI, true); AR.isValid(); ++AR) {
51 static bool printModifiedGPRAsmOperand(const MachineOperand &MO, argument
57 if (MO.isImm() && MO.getImm() == 0) {
60 } else if (MO.isReg()) {
61 if (MO.getReg() == AArch64::XSP || MO.getReg() == AArch64::WSP) {
66 for (MCRegAliasIterator AR(MO
77 printSymbolicAddress(const MachineOperand &MO, bool PrintImmediatePrefix, StringRef Suffix, raw_ostream &O) argument
151 const MachineOperand &MO = MI->getOperand(OpNum); local
258 const MachineOperand &MO = MI->getOperand(OpNum); local
[all...]
/external/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCMCCodeEmitter.cpp70 unsigned getMachineOpValue(const MCInst &MI,const MCOperand &MO,
112 const MCOperand &MO = MI.getOperand(OpNo); local
113 if (MO.isReg() || MO.isImm()) return getMachineOpValue(MI, MO, Fixups);
116 Fixups.push_back(MCFixup::Create(0, MO.getExpr(),
123 const MCOperand &MO = MI.getOperand(OpNo); local
124 if (MO.isReg() || MO.isImm()) return getMachineOpValue(MI, MO, Fixup
135 const MCOperand &MO = MI.getOperand(OpNo); local
147 const MCOperand &MO = MI.getOperand(OpNo); local
158 const MCOperand &MO = MI.getOperand(OpNo); local
174 const MCOperand &MO = MI.getOperand(OpNo); local
192 const MCOperand &MO = MI.getOperand(OpNo); local
205 const MCOperand &MO = MI.getOperand(OpNo); local
221 const MCOperand &MO = MI.getOperand(OpNo+1); local
230 const MCOperand &MO = MI.getOperand(OpNo); local
239 getMachineOpValue(const MCInst &MI, const MCOperand &MO, SmallVectorImpl<MCFixup> &Fixups) const argument
[all...]
/external/llvm/lib/Target/PowerPC/
H A DPPCCodeEmitter.cpp56 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 DPPCMCInstLower.cpp34 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.Mang->getSymbol(MO
107 GetSymbolRef(const MachineOperand &MO, const MCSymbol *Symbol, AsmPrinter &Printer, bool isDarwin) argument
168 const MachineOperand &MO = MI->getOperand(i); local
[all...]
/external/llvm/lib/Target/Mips/
H A DMipsMCInstLower.cpp36 MCOperand MipsMCInstLower::LowerSymbolOperand(const MachineOperand &MO, argument
42 switch(MO.getTargetFlags()) {
73 Symbol = MO.getMBB()->getSymbol();
77 Symbol = Mang->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 = AsmPrinter.GetJTISymbol(MO
129 LowerOperand(const MachineOperand &MO, unsigned offset) const argument
159 const MachineOperand &MO = MI->getOperand(i); local
[all...]
H A DMipsAsmPrinter.cpp58 bool MipsAsmPrinter::lowerOperand(const MachineOperand &MO, MCOperand &MCOp) { argument
59 MCOp = MCInstLowering.LowerOperand(MO);
339 const MachineOperand &MO = MI->getOperand(OpNum); local
345 if ((MO.getType()) != MachineOperand::MO_Immediate)
347 O << "0x" << StringRef(utohexstr(MO.getImm())).lower();
350 if ((MO.getType()) != MachineOperand::MO_Immediate)
352 O << "0x" << StringRef(utohexstr(MO.getImm() & 0xffff)).lower();
355 if ((MO.getType()) != MachineOperand::MO_Immediate)
357 O << MO.getImm();
360 if ((MO
413 const MachineOperand &MO = MI->getOperand(RegOp); local
441 const MachineOperand &MO = MI->getOperand(OpNum); local
450 const MachineOperand &MO = MI->getOperand(opNum); local
522 const MachineOperand &MO = MI->getOperand(opNum); local
553 const MachineOperand &MO = MI->getOperand(opNum); local
[all...]
/external/llvm/lib/CodeGen/
H A DDeadMachineInstructionElim.cpp67 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 DMachineInstrBundle.cpp53 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 DRegAllocFast.cpp216 /// 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
619 MachineOperand &MO = MI->getOperand(OpNum); local
664 MachineOperand &MO = MI->getOperand(OpNum); local
697 MachineOperand &MO = MI->getOperand(i); local
713 MachineOperand &MO = MI->getOperand(i); local
727 MachineOperand &MO = MI->getOperand(i); local
752 MachineOperand &MO = MI->getOperand(i); local
768 MachineOperand &MO = MI->getOperand(i); local
843 MachineOperand &MO = MI->getOperand(i); local
904 MachineOperand &MO = MI->getOperand(i); local
959 MachineOperand &MO = MI->getOperand(i); local
981 MachineOperand &MO = MI->getOperand(i); local
1009 MachineOperand &MO = MI->getOperand(i); local
[all...]
H A DProcessImplicitDefs.cpp70 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 DMachineInstr.cpp213 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
741 addMemOperand(MachineFunction &MF, MachineMemOperand *MO) argument
793 const MachineOperand &MO = getOperand(i); local
861 const MachineOperand &MO = getOperand(i); local
1000 const MachineOperand &MO = getOperand(i); local
1028 const MachineOperand &MO = getOperand(i); local
1054 const MachineOperand &MO = getOperand(i); local
1135 const MachineOperand &MO = getOperand(OpIdx); local
1193 MachineOperand &MO = getOperand(i); local
1207 MachineOperand &MO = getOperand(i); local
1214 MachineOperand &MO = getOperand(i); local
1356 const MachineOperand &MO = getOperand(i); local
1371 const MachineOperand &MO = MI->getOperand(i); local
1480 const MachineOperand &MO = getOperand(i); local
1641 MachineOperand &MO = getOperand(i); local
1696 MachineOperand &MO = getOperand(i); local
1714 MachineOperand &MO = getOperand(i); local
1760 MachineOperand *MO = findRegisterDefOperand(IncomingReg, false, RegInfo); local
1765 const MachineOperand &MO = getOperand(i); local
1780 MachineOperand &MO = getOperand(i); local
1814 const MachineOperand &MO = MI->getOperand(i); local
[all...]
H A DMachineRegisterInfo.cpp132 MachineOperand *MO = &I.getOperand(); local
133 MachineInstr *MI = MO->getParent();
136 << " use list MachineOperand " << MO
142 if (!(MO >= MO0 && MO < MO0+NumOps)) {
144 << " use list MachineOperand " << MO
148 if (!MO->isReg()) {
150 << " MachineOperand " << MO << ": " << *MO local
154 if (MO
157 << *MO << " is the wrong register\\n"; local
175 addRegOperandToUseList(MachineOperand *MO) argument
214 removeRegOperandFromUseList(MachineOperand *MO) argument
[all...]
/external/llvm/lib/Target/R600/MCTargetDesc/
H A DSIMCCodeEmitter.cpp47 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...]
/external/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64MCCodeEmitter.cpp77 unsigned getAddressWithFixup(const MCOperand &MO,
89 unsigned getMachineOpValue(const MCInst &MI,const MCOperand &MO,
121 unsigned AArch64MCCodeEmitter::getAddressWithFixup(const MCOperand &MO, argument
124 if (!MO.isExpr()) {
128 assert(MO.isImm() && "Unexpected address requested");
129 return MO.getImm();
132 const MCExpr *Expr = MO.getExpr();
228 const MCOperand &MO = MI.getOperand(OpIdx); local
229 if (MO.isImm())
230 return static_cast<unsigned>(MO
262 const MCOperand &MO = MI.getOperand(OpIdx); local
297 const MCOperand &MO = MI.getOperand(OpIdx); local
307 const MCOperand &MO = MI.getOperand(OpIdx); local
318 const MCOperand &MO = MI.getOperand(OpIdx); local
331 const MCOperand &MO = MI.getOperand(OpIdx); local
353 getMachineOpValue(const MCInst &MI, const MCOperand &MO, SmallVectorImpl<MCFixup> &Fixups) const argument
[all...]
/external/llvm/lib/Target/R600/
H A DAMDGPUMCInstLower.cpp37 const MachineOperand &MO = MI->getOperand(i); local
40 switch (MO.getType()) {
44 const APFloat &FloatValue = MO.getFPImm()->getValueAPF();
51 MCOp = MCOperand::CreateImm(MO.getImm());
54 MCOp = MCOperand::CreateReg(MO.getReg());
58 MO.getMBB()->getSymbol(), Ctx));
/external/llvm/lib/Target/X86/
H A DX86AsmPrinter.cpp77 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
414 const MachineOperand &MO = MI->getOperand(OpNo); local
[all...]

Completed in 2286 milliseconds

1234567