Home
last modified time | relevance | path

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

12345678910>>...42

/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/lib/Target/MSP430/
DMSP430MCInstLower.cpp30 GetGlobalAddressSymbol(const MachineOperand &MO) const { in GetGlobalAddressSymbol()
31 switch (MO.getTargetFlags()) { in GetGlobalAddressSymbol()
36 return Printer.Mang->getSymbol(MO.getGlobal()); in GetGlobalAddressSymbol()
40 GetExternalSymbolSymbol(const MachineOperand &MO) const { in GetExternalSymbolSymbol()
41 switch (MO.getTargetFlags()) { in GetExternalSymbolSymbol()
46 return Printer.GetExternalSymbolSymbol(MO.getSymbolName()); in GetExternalSymbolSymbol()
50 GetJumpTableSymbol(const MachineOperand &MO) const { in GetJumpTableSymbol()
54 << MO.getIndex(); in GetJumpTableSymbol()
56 switch (MO.getTargetFlags()) { in GetJumpTableSymbol()
66 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/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/swiftshader/third_party/LLVM/lib/Target/MBlaze/
DMBlazeMCInstLower.cpp33 GetGlobalAddressSymbol(const MachineOperand &MO) const { in GetGlobalAddressSymbol()
34 switch (MO.getTargetFlags()) { in GetGlobalAddressSymbol()
39 return Printer.Mang->getSymbol(MO.getGlobal()); in GetGlobalAddressSymbol()
43 GetExternalSymbolSymbol(const MachineOperand &MO) const { in GetExternalSymbolSymbol()
44 switch (MO.getTargetFlags()) { in GetExternalSymbolSymbol()
49 return Printer.GetExternalSymbolSymbol(MO.getSymbolName()); in GetExternalSymbolSymbol()
53 GetJumpTableSymbol(const MachineOperand &MO) const { in GetJumpTableSymbol()
57 << MO.getIndex(); in GetJumpTableSymbol()
58 switch (MO.getTargetFlags()) { in GetJumpTableSymbol()
68 GetConstantPoolIndexSymbol(const MachineOperand &MO) const { in GetConstantPoolIndexSymbol()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/PowerPC/
DPPCCodeEmitter.cpp56 MachineRelocation GetRelocation(const MachineOperand &MO,
61 const MachineOperand &MO) const;
140 const MachineOperand &MO = MI.getOperand(OpNo); in get_crbitm_encoding() local
142 (MO.getReg() >= PPC::CR0 && MO.getReg() <= PPC::CR7)); in get_crbitm_encoding()
143 return 0x80 >> getPPCRegisterNumbering(MO.getReg()); in get_crbitm_encoding()
146 MachineRelocation PPCCodeEmitter::GetRelocation(const MachineOperand &MO, in GetRelocation() argument
159 if (MO.isGlobal()) in GetRelocation()
161 const_cast<GlobalValue *>(MO.getGlobal()), in GetRelocation()
162 Cst, isa<Function>(MO.getGlobal())); in GetRelocation()
163 if (MO.isSymbol()) in GetRelocation()
[all …]
DPPCMCInstLower.cpp31 static MCSymbol *GetSymbolFromOperand(const MachineOperand &MO, AsmPrinter &AP){ in GetSymbolFromOperand() argument
35 if (!MO.isGlobal()) { in GetSymbolFromOperand()
36 assert(MO.isSymbol() && "Isn't a symbol reference"); in GetSymbolFromOperand()
38 Name += MO.getSymbolName(); in GetSymbolFromOperand()
40 const GlobalValue *GV = MO.getGlobal(); in GetSymbolFromOperand()
42 if (MO.getTargetFlags() == PPCII::MO_DARWIN_STUB || in GetSymbolFromOperand()
43 (MO.getTargetFlags() & PPCII::MO_NLP_FLAG)) in GetSymbolFromOperand()
51 if (MO.getTargetFlags() == PPCII::MO_DARWIN_STUB) { in GetSymbolFromOperand()
59 if (MO.isGlobal()) { in GetSymbolFromOperand()
62 StubValueTy(AP.Mang->getSymbol(MO.getGlobal()), in GetSymbolFromOperand()
[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/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/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/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/lib/Target/PowerPC/MCTargetDesc/
DPPCMCCodeEmitter.cpp55 unsigned getMachineOpValue(const MCInst &MI,const MCOperand &MO,
88 const MCOperand &MO = MI.getOperand(OpNo); in getDirectBrEncoding() local
89 if (MO.isReg() || MO.isImm()) return getMachineOpValue(MI, MO, Fixups); in getDirectBrEncoding()
92 Fixups.push_back(MCFixup::Create(0, MO.getExpr(), in getDirectBrEncoding()
99 const MCOperand &MO = MI.getOperand(OpNo); in getCondBrEncoding() local
100 if (MO.isReg() || MO.isImm()) return getMachineOpValue(MI, MO, Fixups); in getCondBrEncoding()
103 Fixups.push_back(MCFixup::Create(0, MO.getExpr(), in getCondBrEncoding()
110 const MCOperand &MO = MI.getOperand(OpNo); in getHA16Encoding() local
111 if (MO.isReg() || MO.isImm()) return getMachineOpValue(MI, MO, Fixups); in getHA16Encoding()
114 Fixups.push_back(MCFixup::Create(0, MO.getExpr(), in getHA16Encoding()
[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/swiftshader/third_party/LLVM/lib/Target/ARM/
DARMMCInstLower.cpp26 MCOperand ARMAsmPrinter::GetSymbolRef(const MachineOperand &MO, in GetSymbolRef() argument
29 switch (MO.getTargetFlags()) { in GetSymbolRef()
33 switch (MO.getTargetFlags()) { in GetSymbolRef()
58 if (!MO.isJTI() && MO.getOffset()) in GetSymbolRef()
60 MCConstantExpr::Create(MO.getOffset(), in GetSymbolRef()
67 bool ARMAsmPrinter::lowerOperand(const MachineOperand &MO, in lowerOperand() argument
69 switch (MO.getType()) { in lowerOperand()
75 if (MO.isImplicit() && MO.getReg() != ARM::CPSR) in lowerOperand()
77 assert(!MO.getSubReg() && "Subregs should be eliminated!"); in lowerOperand()
78 MCOp = MCOperand::CreateReg(MO.getReg()); in lowerOperand()
[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/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/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/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 …]
/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 …]
/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/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 …]

12345678910>>...42