Home
last modified time | relevance | path

Searched refs:MO (Results 1 – 25 of 943) sorted by relevance

12345678910>>...38

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/CodeGen/
DMachineOperandTest.cpp28 MachineOperand MO = MachineOperand::CreateImm(50); in TEST() local
32 ASSERT_TRUE(MO.isImm()); in TEST()
33 ASSERT_TRUE(MO.getImm() == 50); in TEST()
34 ASSERT_FALSE(MO.isTargetIndex()); in TEST()
38 MO.ChangeToTargetIndex(74, 57, 12); in TEST()
42 ASSERT_TRUE(MO.isTargetIndex()); in TEST()
43 ASSERT_TRUE(MO.getIndex() == 74); in TEST()
44 ASSERT_TRUE(MO.getOffset() == 57); in TEST()
45 ASSERT_TRUE(MO.getTargetFlags() == 12); in TEST()
50 MachineOperand MO = MachineOperand::CreateRegMask(&Dummy); in TEST() local
[all …]
/external/libcxx/test/libcxx/utilities/tuple/tuple.tuple/tuple.cnstr/
Denable_reduced_arity_initialization_extension.pass.cpp41 typedef MoveOnly MO; in test_default_constructible_extension_sfinae() typedef
44 typedef std::tuple<MO, ND> Tuple; in test_default_constructible_extension_sfinae()
45 static_assert(!std::is_constructible<Tuple, MO>::value, ""); in test_default_constructible_extension_sfinae()
46 static_assert(std::is_constructible<Tuple, MO, ND>::value, ""); in test_default_constructible_extension_sfinae()
47 static_assert(test_convertible<Tuple, MO, ND>(), ""); in test_default_constructible_extension_sfinae()
50 typedef std::tuple<MO, MO, ND> Tuple; in test_default_constructible_extension_sfinae()
51 static_assert(!std::is_constructible<Tuple, MO, MO>::value, ""); in test_default_constructible_extension_sfinae()
52 static_assert(std::is_constructible<Tuple, MO, MO, ND>::value, ""); in test_default_constructible_extension_sfinae()
53 static_assert(test_convertible<Tuple, MO, MO, ND>(), ""); in test_default_constructible_extension_sfinae()
57 typedef std::tuple<MO, ND> Tuple; in test_default_constructible_extension_sfinae()
[all …]
Ddisable_reduced_arity_initialization_extension.pass.cpp42 typedef MoveOnly MO; in test_default_constructible_extension_sfinae() typedef
45 typedef std::tuple<MO, ND> Tuple; in test_default_constructible_extension_sfinae()
46 static_assert(!std::is_constructible<Tuple, MO>::value, ""); in test_default_constructible_extension_sfinae()
47 static_assert(std::is_constructible<Tuple, MO, ND>::value, ""); in test_default_constructible_extension_sfinae()
48 static_assert(test_convertible<Tuple, MO, ND>(), ""); in test_default_constructible_extension_sfinae()
51 typedef std::tuple<MO, MO, ND> Tuple; in test_default_constructible_extension_sfinae()
52 static_assert(!std::is_constructible<Tuple, MO, MO>::value, ""); in test_default_constructible_extension_sfinae()
53 static_assert(std::is_constructible<Tuple, MO, MO, ND>::value, ""); in test_default_constructible_extension_sfinae()
54 static_assert(test_convertible<Tuple, MO, MO, ND>(), ""); in test_default_constructible_extension_sfinae()
58 typedef std::tuple<MO, ND> Tuple; in test_default_constructible_extension_sfinae()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/
DAArch64MCInstLower.cpp37 AArch64MCInstLower::GetGlobalAddressSymbol(const MachineOperand &MO) const { in GetGlobalAddressSymbol()
38 const GlobalValue *GV = MO.getGlobal(); in GetGlobalAddressSymbol()
39 unsigned TargetFlags = MO.getTargetFlags(); in GetGlobalAddressSymbol()
60 AArch64MCInstLower::GetExternalSymbolSymbol(const MachineOperand &MO) const { in GetExternalSymbolSymbol()
61 return Printer.GetExternalSymbolSymbol(MO.getSymbolName()); in GetExternalSymbolSymbol()
64 MCOperand AArch64MCInstLower::lowerSymbolOperandDarwin(const MachineOperand &MO, in lowerSymbolOperandDarwin() argument
69 if ((MO.getTargetFlags() & AArch64II::MO_GOT) != 0) { in lowerSymbolOperandDarwin()
70 if ((MO.getTargetFlags() & AArch64II::MO_FRAGMENT) == AArch64II::MO_PAGE) in lowerSymbolOperandDarwin()
72 else if ((MO.getTargetFlags() & AArch64II::MO_FRAGMENT) == in lowerSymbolOperandDarwin()
77 } else if ((MO.getTargetFlags() & AArch64II::MO_TLS) != 0) { in lowerSymbolOperandDarwin()
[all …]
/external/llvm/lib/Target/AArch64/
DAArch64MCInstLower.cpp35 AArch64MCInstLower::GetGlobalAddressSymbol(const MachineOperand &MO) const { in GetGlobalAddressSymbol()
36 return Printer.getSymbol(MO.getGlobal()); in GetGlobalAddressSymbol()
40 AArch64MCInstLower::GetExternalSymbolSymbol(const MachineOperand &MO) const { in GetExternalSymbolSymbol()
41 return Printer.GetExternalSymbolSymbol(MO.getSymbolName()); in GetExternalSymbolSymbol()
44 MCOperand AArch64MCInstLower::lowerSymbolOperandDarwin(const MachineOperand &MO, in lowerSymbolOperandDarwin() argument
49 if ((MO.getTargetFlags() & AArch64II::MO_GOT) != 0) { in lowerSymbolOperandDarwin()
50 if ((MO.getTargetFlags() & AArch64II::MO_FRAGMENT) == AArch64II::MO_PAGE) in lowerSymbolOperandDarwin()
52 else if ((MO.getTargetFlags() & AArch64II::MO_FRAGMENT) == in lowerSymbolOperandDarwin()
57 } else if ((MO.getTargetFlags() & AArch64II::MO_TLS) != 0) { in lowerSymbolOperandDarwin()
58 if ((MO.getTargetFlags() & AArch64II::MO_FRAGMENT) == AArch64II::MO_PAGE) in lowerSymbolOperandDarwin()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/MSP430/
DMSP430MCInstLower.cpp32 GetGlobalAddressSymbol(const MachineOperand &MO) const { in GetGlobalAddressSymbol()
33 switch (MO.getTargetFlags()) { in GetGlobalAddressSymbol()
38 return Printer.getSymbol(MO.getGlobal()); in GetGlobalAddressSymbol()
42 GetExternalSymbolSymbol(const MachineOperand &MO) const { in GetExternalSymbolSymbol()
43 switch (MO.getTargetFlags()) { in GetExternalSymbolSymbol()
48 return Printer.GetExternalSymbolSymbol(MO.getSymbolName()); in GetExternalSymbolSymbol()
52 GetJumpTableSymbol(const MachineOperand &MO) const { in GetJumpTableSymbol()
57 << MO.getIndex(); in GetJumpTableSymbol()
59 switch (MO.getTargetFlags()) { in GetJumpTableSymbol()
69 GetConstantPoolIndexSymbol(const MachineOperand &MO) const { in GetConstantPoolIndexSymbol()
[all …]
/external/llvm/lib/Target/MSP430/
DMSP430MCInstLower.cpp32 GetGlobalAddressSymbol(const MachineOperand &MO) const { in GetGlobalAddressSymbol()
33 switch (MO.getTargetFlags()) { in GetGlobalAddressSymbol()
38 return Printer.getSymbol(MO.getGlobal()); in GetGlobalAddressSymbol()
42 GetExternalSymbolSymbol(const MachineOperand &MO) const { in GetExternalSymbolSymbol()
43 switch (MO.getTargetFlags()) { in GetExternalSymbolSymbol()
48 return Printer.GetExternalSymbolSymbol(MO.getSymbolName()); in GetExternalSymbolSymbol()
52 GetJumpTableSymbol(const MachineOperand &MO) const { in GetJumpTableSymbol()
57 << MO.getIndex(); in GetJumpTableSymbol()
59 switch (MO.getTargetFlags()) { in GetJumpTableSymbol()
69 GetConstantPoolIndexSymbol(const MachineOperand &MO) const { in GetConstantPoolIndexSymbol()
[all …]
/external/llvm/lib/Target/Lanai/
DLanaiMCInstLower.cpp35 LanaiMCInstLower::GetGlobalAddressSymbol(const MachineOperand &MO) const { in GetGlobalAddressSymbol()
36 return Printer.getSymbol(MO.getGlobal()); in GetGlobalAddressSymbol()
40 LanaiMCInstLower::GetBlockAddressSymbol(const MachineOperand &MO) const { in GetBlockAddressSymbol()
41 return Printer.GetBlockAddressSymbol(MO.getBlockAddress()); in GetBlockAddressSymbol()
45 LanaiMCInstLower::GetExternalSymbolSymbol(const MachineOperand &MO) const { in GetExternalSymbolSymbol()
46 return Printer.GetExternalSymbolSymbol(MO.getSymbolName()); in GetExternalSymbolSymbol()
49 MCSymbol *LanaiMCInstLower::GetJumpTableSymbol(const MachineOperand &MO) const { in GetJumpTableSymbol()
53 << MO.getIndex(); in GetJumpTableSymbol()
59 LanaiMCInstLower::GetConstantPoolIndexSymbol(const MachineOperand &MO) const { in GetConstantPoolIndexSymbol()
63 << MO.getIndex(); in GetConstantPoolIndexSymbol()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Lanai/
DLanaiMCInstLower.cpp34 LanaiMCInstLower::GetGlobalAddressSymbol(const MachineOperand &MO) const { in GetGlobalAddressSymbol()
35 return Printer.getSymbol(MO.getGlobal()); in GetGlobalAddressSymbol()
39 LanaiMCInstLower::GetBlockAddressSymbol(const MachineOperand &MO) const { in GetBlockAddressSymbol()
40 return Printer.GetBlockAddressSymbol(MO.getBlockAddress()); in GetBlockAddressSymbol()
44 LanaiMCInstLower::GetExternalSymbolSymbol(const MachineOperand &MO) const { in GetExternalSymbolSymbol()
45 return Printer.GetExternalSymbolSymbol(MO.getSymbolName()); in GetExternalSymbolSymbol()
48 MCSymbol *LanaiMCInstLower::GetJumpTableSymbol(const MachineOperand &MO) const { in GetJumpTableSymbol()
52 << MO.getIndex(); in GetJumpTableSymbol()
58 LanaiMCInstLower::GetConstantPoolIndexSymbol(const MachineOperand &MO) const { in GetConstantPoolIndexSymbol()
62 << MO.getIndex(); in GetConstantPoolIndexSymbol()
[all …]
/external/llvm/lib/Target/AArch64/MCTargetDesc/
DAArch64MCCodeEmitter.cpp54 unsigned getMachineOpValue(const MCInst &MI, const MCOperand &MO,
186 AArch64MCCodeEmitter::getMachineOpValue(const MCInst &MI, const MCOperand &MO, in getMachineOpValue() argument
189 if (MO.isReg()) in getMachineOpValue()
190 return Ctx.getRegisterInfo()->getEncodingValue(MO.getReg()); in getMachineOpValue()
192 assert(MO.isImm() && "did not expect relocated expression"); in getMachineOpValue()
193 return static_cast<unsigned>(MO.getImm()); in getMachineOpValue()
200 const MCOperand &MO = MI.getOperand(OpIdx); in getLdStUImm12OpValue() local
203 if (MO.isImm()) in getLdStUImm12OpValue()
204 ImmVal = static_cast<uint32_t>(MO.getImm()); in getLdStUImm12OpValue()
206 assert(MO.isExpr() && "unable to encode load/store imm operand"); in getLdStUImm12OpValue()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/MCTargetDesc/
DAArch64MCCodeEmitter.cpp63 unsigned getMachineOpValue(const MCInst &MI, const MCOperand &MO,
201 AArch64MCCodeEmitter::getMachineOpValue(const MCInst &MI, const MCOperand &MO, in getMachineOpValue() argument
204 if (MO.isReg()) in getMachineOpValue()
205 return Ctx.getRegisterInfo()->getEncodingValue(MO.getReg()); in getMachineOpValue()
207 assert(MO.isImm() && "did not expect relocated expression"); in getMachineOpValue()
208 return static_cast<unsigned>(MO.getImm()); in getMachineOpValue()
215 const MCOperand &MO = MI.getOperand(OpIdx); in getLdStUImm12OpValue() local
218 if (MO.isImm()) in getLdStUImm12OpValue()
219 ImmVal = static_cast<uint32_t>(MO.getImm()); in getLdStUImm12OpValue()
221 assert(MO.isExpr() && "unable to encode load/store imm operand"); in getLdStUImm12OpValue()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/
DPPCMCInstLower.cpp37 static MCSymbol *GetSymbolFromOperand(const MachineOperand &MO, in GetSymbolFromOperand() argument
46 if (MO.getTargetFlags() & PPCII::MO_NLP_FLAG) in GetSymbolFromOperand()
52 if (!MO.isGlobal()) { in GetSymbolFromOperand()
53 assert(MO.isSymbol() && "Isn't a symbol reference"); in GetSymbolFromOperand()
54 Mangler::getNameWithPrefix(Name, MO.getSymbolName(), DL); in GetSymbolFromOperand()
56 const GlobalValue *GV = MO.getGlobal(); in GetSymbolFromOperand()
65 if (MO.getTargetFlags() & PPCII::MO_NLP_FLAG) { in GetSymbolFromOperand()
71 assert(MO.isGlobal() && "Extern symbol not handled yet"); in GetSymbolFromOperand()
73 StubValueTy(AP.getSymbol(MO.getGlobal()), in GetSymbolFromOperand()
74 !MO.getGlobal()->hasInternalLinkage()); in GetSymbolFromOperand()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/MCTargetDesc/
DPPCMCCodeEmitter.cpp102 unsigned getMachineOpValue(const MCInst &MI,const MCOperand &MO,
163 const MCOperand &MO = MI.getOperand(OpNo); in getDirectBrEncoding() local
164 if (MO.isReg() || MO.isImm()) return getMachineOpValue(MI, MO, Fixups, STI); in getDirectBrEncoding()
167 Fixups.push_back(MCFixup::create(0, MO.getExpr(), in getDirectBrEncoding()
175 const MCOperand &MO = MI.getOperand(OpNo); in getCondBrEncoding() local
176 if (MO.isReg() || MO.isImm()) return getMachineOpValue(MI, MO, Fixups, STI); in getCondBrEncoding()
179 Fixups.push_back(MCFixup::create(0, MO.getExpr(), in getCondBrEncoding()
188 const MCOperand &MO = MI.getOperand(OpNo); in getAbsDirectBrEncoding() local
189 if (MO.isReg() || MO.isImm()) return getMachineOpValue(MI, MO, Fixups, STI); in getAbsDirectBrEncoding()
192 Fixups.push_back(MCFixup::create(0, MO.getExpr(), in getAbsDirectBrEncoding()
[all …]
/external/llvm/lib/Target/PowerPC/
DPPCMCInstLower.cpp38 static MCSymbol *GetSymbolFromOperand(const MachineOperand &MO, AsmPrinter &AP){ in GetSymbolFromOperand() argument
46 if (MO.getTargetFlags() & PPCII::MO_NLP_FLAG) in GetSymbolFromOperand()
52 if (!MO.isGlobal()) { in GetSymbolFromOperand()
53 assert(MO.isSymbol() && "Isn't a symbol reference"); in GetSymbolFromOperand()
54 Mangler::getNameWithPrefix(Name, MO.getSymbolName(), DL); in GetSymbolFromOperand()
56 const GlobalValue *GV = MO.getGlobal(); in GetSymbolFromOperand()
65 if (MO.getTargetFlags() & PPCII::MO_NLP_FLAG) { in GetSymbolFromOperand()
71 assert(MO.isGlobal() && "Extern symbol not handled yet"); in GetSymbolFromOperand()
73 StubValueTy(AP.getSymbol(MO.getGlobal()), in GetSymbolFromOperand()
74 !MO.getGlobal()->hasInternalLinkage()); in GetSymbolFromOperand()
[all …]
/external/llvm/lib/Target/PowerPC/MCTargetDesc/
DPPCMCCodeEmitter.cpp96 unsigned getMachineOpValue(const MCInst &MI,const MCOperand &MO,
156 const MCOperand &MO = MI.getOperand(OpNo); in getDirectBrEncoding() local
157 if (MO.isReg() || MO.isImm()) return getMachineOpValue(MI, MO, Fixups, STI); in getDirectBrEncoding()
160 Fixups.push_back(MCFixup::create(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 Fixups.push_back(MCFixup::create(0, MO.getExpr(), in getCondBrEncoding()
181 const MCOperand &MO = MI.getOperand(OpNo); in getAbsDirectBrEncoding() local
182 if (MO.isReg() || MO.isImm()) return getMachineOpValue(MI, MO, Fixups, STI); in getAbsDirectBrEncoding()
185 Fixups.push_back(MCFixup::create(0, MO.getExpr(), in getAbsDirectBrEncoding()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/RISCV/
DRISCVMCInstLower.cpp29 static MCOperand lowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym, in lowerSymbolOperand() argument
34 switch (MO.getTargetFlags()) { in lowerSymbolOperand()
51 if (!MO.isJTI() && !MO.isMBB() && MO.getOffset()) in lowerSymbolOperand()
53 ME, MCConstantExpr::create(MO.getOffset(), Ctx), Ctx); in lowerSymbolOperand()
60 bool llvm::LowerRISCVMachineOperandToMCOperand(const MachineOperand &MO, in LowerRISCVMachineOperandToMCOperand() argument
63 switch (MO.getType()) { in LowerRISCVMachineOperandToMCOperand()
68 if (MO.isImplicit()) in LowerRISCVMachineOperandToMCOperand()
70 MCOp = MCOperand::createReg(MO.getReg()); in LowerRISCVMachineOperandToMCOperand()
76 MCOp = MCOperand::createImm(MO.getImm()); in LowerRISCVMachineOperandToMCOperand()
79 MCOp = lowerSymbolOperand(MO, MO.getMBB()->getSymbol(), AP); in LowerRISCVMachineOperandToMCOperand()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AVR/
DAVRMCInstLower.cpp27 MCOperand AVRMCInstLower::lowerSymbolOperand(const MachineOperand &MO, in lowerSymbolOperand() argument
29 unsigned char TF = MO.getTargetFlags(); in lowerSymbolOperand()
35 if (!MO.isJTI() && MO.getOffset()) { in lowerSymbolOperand()
37 Expr, MCConstantExpr::create(MO.getOffset(), Ctx), Ctx); in lowerSymbolOperand()
40 bool IsFunction = MO.isGlobal() && isa<Function>(MO.getGlobal()); in lowerSymbolOperand()
66 for (MachineOperand const &MO : MI.operands()) { in lowerInstruction()
69 switch (MO.getType()) { in lowerInstruction()
75 if (MO.isImplicit()) in lowerInstruction()
77 MCOp = MCOperand::createReg(MO.getReg()); in lowerInstruction()
80 MCOp = MCOperand::createImm(MO.getImm()); in lowerInstruction()
[all …]
/external/llvm/lib/Target/ARM/
DARMMCInstLower.cpp27 MCOperand ARMAsmPrinter::GetSymbolRef(const MachineOperand &MO, in GetSymbolRef() argument
31 switch (MO.getTargetFlags() & ARMII::MO_OPTION_MASK) { in GetSymbolRef()
48 if (!MO.isJTI() && MO.getOffset()) in GetSymbolRef()
50 MCConstantExpr::create(MO.getOffset(), in GetSymbolRef()
57 bool ARMAsmPrinter::lowerOperand(const MachineOperand &MO, in lowerOperand() argument
59 switch (MO.getType()) { in lowerOperand()
63 if (MO.isImplicit() && MO.getReg() != ARM::CPSR) in lowerOperand()
65 assert(!MO.getSubReg() && "Subregs should be eliminated!"); in lowerOperand()
66 MCOp = MCOperand::createReg(MO.getReg()); in lowerOperand()
69 MCOp = MCOperand::createImm(MO.getImm()); in lowerOperand()
[all …]
/external/llvm/lib/Target/Sparc/MCTargetDesc/
DSparcMCCodeEmitter.cpp57 unsigned getMachineOpValue(const MCInst &MI, const MCOperand &MO,
105 const MCOperand &MO = MI.getOperand(tlsOpNo); in encodeInstruction() local
106 uint64_t op = getMachineOpValue(MI, MO, Fixups, STI); in encodeInstruction()
116 getMachineOpValue(const MCInst &MI, const MCOperand &MO, in getMachineOpValue() argument
120 if (MO.isReg()) in getMachineOpValue()
121 return Ctx.getRegisterInfo()->getEncodingValue(MO.getReg()); in getMachineOpValue()
123 if (MO.isImm()) in getMachineOpValue()
124 return MO.getImm(); in getMachineOpValue()
126 assert(MO.isExpr()); in getMachineOpValue()
127 const MCExpr *Expr = MO.getExpr(); in getMachineOpValue()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DRegAllocFast.cpp187 bool isLastUseOfLocalReg(const MachineOperand &MO) const;
195 void usePhysReg(MachineOperand &MO);
251 bool RegAllocFast::isLastUseOfLocalReg(const MachineOperand &MO) const { in isLastUseOfLocalReg()
254 if (StackSlotForVirtReg[MO.getReg()] != -1) in isLastUseOfLocalReg()
258 MachineRegisterInfo::reg_nodbg_iterator I = MRI->reg_nodbg_begin(MO.getReg()); in isLastUseOfLocalReg()
259 if (&*I != &MO) in isLastUseOfLocalReg()
267 MachineOperand &MO = LR.LastUse->getOperand(LR.LastOpNum); in addKillFlag() local
268 if (MO.isUse() && !LR.LastUse->isRegTiedToDefOperand(LR.LastOpNum)) { in addKillFlag()
269 if (MO.getReg() == LR.PhysReg) in addKillFlag()
270 MO.setIsKill(); in addKillFlag()
[all …]
DMachineInstr.cpp142 for (const MachineOperand &MO : MI.operands()) in MachineInstr() local
143 addOperand(MF, MO); in MachineInstr()
162 for (MachineOperand &MO : operands()) in RemoveRegOperandsFromUseLists()
163 if (MO.isReg()) in RemoveRegOperandsFromUseLists()
164 MRI.removeRegOperandFromUseList(&MO); in RemoveRegOperandsFromUseLists()
171 for (MachineOperand &MO : operands()) in AddRegOperandsToUseLists()
172 if (MO.isReg()) in AddRegOperandsToUseLists()
173 MRI.addRegOperandToUseList(&MO); in AddRegOperandsToUseLists()
322 MachineMemOperand *MO) { in addMemOperand() argument
330 NewMemRefs[NewNum - 1] = MO; in addMemOperand()
[all …]
/external/llvm/lib/CodeGen/
DMachineInstr.cpp264 hash_code llvm::hash_value(const MachineOperand &MO) { in hash_value() argument
265 switch (MO.getType()) { in hash_value()
268 return hash_combine(MO.getType(), MO.getReg(), MO.getSubReg(), MO.isDef()); in hash_value()
270 return hash_combine(MO.getType(), MO.getTargetFlags(), MO.getImm()); in hash_value()
272 return hash_combine(MO.getType(), MO.getTargetFlags(), MO.getCImm()); in hash_value()
274 return hash_combine(MO.getType(), MO.getTargetFlags(), MO.getFPImm()); in hash_value()
276 return hash_combine(MO.getType(), MO.getTargetFlags(), MO.getMBB()); in hash_value()
278 return hash_combine(MO.getType(), MO.getTargetFlags(), MO.getIndex()); in hash_value()
281 return hash_combine(MO.getType(), MO.getTargetFlags(), MO.getIndex(), in hash_value()
282 MO.getOffset()); in hash_value()
[all …]
DDetectDeadLanes.cpp77 void addUsedLanesOnOperand(const MachineOperand &MO, LaneBitmask UsedLanes);
99 const MachineOperand &MO) const;
106 bool isUndefRegAtInput(const MachineOperand &MO,
109 bool isUndefInput(const MachineOperand &MO, bool *CrossCopy) const;
158 const MachineOperand &MO) { in isCrossCopy() argument
160 unsigned SrcReg = MO.getReg(); in isCrossCopy()
165 unsigned SrcSubIdx = MO.getSubReg(); in isCrossCopy()
171 if (MI.getOperandNo(&MO) == 2) in isCrossCopy()
175 unsigned OpNum = MI.getOperandNo(&MO); in isCrossCopy()
196 void DetectDeadLanes::addUsedLanesOnOperand(const MachineOperand &MO, in addUsedLanesOnOperand() argument
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Sparc/MCTargetDesc/
DSparcMCCodeEmitter.cpp69 unsigned getMachineOpValue(const MCInst &MI, const MCOperand &MO,
114 const MCOperand &MO = MI.getOperand(tlsOpNo); in encodeInstruction() local
115 uint64_t op = getMachineOpValue(MI, MO, Fixups, STI); in encodeInstruction()
124 getMachineOpValue(const MCInst &MI, const MCOperand &MO, in getMachineOpValue() argument
127 if (MO.isReg()) in getMachineOpValue()
128 return Ctx.getRegisterInfo()->getEncodingValue(MO.getReg()); in getMachineOpValue()
130 if (MO.isImm()) in getMachineOpValue()
131 return MO.getImm(); in getMachineOpValue()
133 assert(MO.isExpr()); in getMachineOpValue()
134 const MCExpr *Expr = MO.getExpr(); in getMachineOpValue()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/BPF/
DBPFMCInstLower.cpp28 BPFMCInstLower::GetGlobalAddressSymbol(const MachineOperand &MO) const { in GetGlobalAddressSymbol()
29 return Printer.getSymbol(MO.getGlobal()); in GetGlobalAddressSymbol()
33 BPFMCInstLower::GetExternalSymbolSymbol(const MachineOperand &MO) const { in GetExternalSymbolSymbol()
34 return Printer.GetExternalSymbolSymbol(MO.getSymbolName()); in GetExternalSymbolSymbol()
37 MCOperand BPFMCInstLower::LowerSymbolOperand(const MachineOperand &MO, in LowerSymbolOperand() argument
42 if (!MO.isJTI() && MO.getOffset()) in LowerSymbolOperand()
52 const MachineOperand &MO = MI->getOperand(i); in Lower() local
55 switch (MO.getType()) { in Lower()
61 if (MO.isImplicit()) in Lower()
63 MCOp = MCOperand::createReg(MO.getReg()); in Lower()
[all …]

12345678910>>...38