Home
last modified time | relevance | path

Searched refs:MCOp (Results 1 – 25 of 33) sorted by relevance

12

/external/llvm/lib/Target/ARM/
DARMMCInstLower.cpp58 MCOperand &MCOp) { in lowerOperand() argument
66 MCOp = MCOperand::createReg(MO.getReg()); in lowerOperand()
69 MCOp = MCOperand::createImm(MO.getImm()); in lowerOperand()
72 MCOp = MCOperand::createExpr(MCSymbolRefExpr::create( in lowerOperand()
76 MCOp = GetSymbolRef(MO, in lowerOperand()
81 MCOp = GetSymbolRef(MO, in lowerOperand()
85 MCOp = GetSymbolRef(MO, GetJTISymbol(MO.getIndex())); in lowerOperand()
88 MCOp = GetSymbolRef(MO, GetCPISymbol(MO.getIndex())); in lowerOperand()
91 MCOp = GetSymbolRef(MO, GetBlockAddressSymbol(MO.getBlockAddress())); in lowerOperand()
97 MCOp = MCOperand::createFPImm(Val.convertToDouble()); in lowerOperand()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/ARM/
DARMMCInstLower.cpp68 MCOperand &MCOp) { in lowerOperand() argument
78 MCOp = MCOperand::CreateReg(MO.getReg()); in lowerOperand()
81 MCOp = MCOperand::CreateImm(MO.getImm()); in lowerOperand()
84 MCOp = MCOperand::CreateExpr(MCSymbolRefExpr::Create( in lowerOperand()
88 MCOp = GetSymbolRef(MO, Mang->getSymbol(MO.getGlobal())); in lowerOperand()
91 MCOp = GetSymbolRef(MO, in lowerOperand()
95 MCOp = GetSymbolRef(MO, GetJTISymbol(MO.getIndex())); in lowerOperand()
98 MCOp = GetSymbolRef(MO, GetCPISymbol(MO.getIndex())); in lowerOperand()
101 MCOp = GetSymbolRef(MO, GetBlockAddressSymbol(MO.getBlockAddress())); in lowerOperand()
107 MCOp = MCOperand::CreateFPImm(Val.convertToDouble()); in lowerOperand()
[all …]
/external/llvm/lib/Target/Lanai/MCTargetDesc/
DLanaiMCCodeEmitter.cpp58 unsigned getMachineOpValue(const MCInst &Inst, const MCOperand &MCOp,
113 const MCInst &Inst, const MCOperand &MCOp, SmallVectorImpl<MCFixup> &Fixups, in getMachineOpValue() argument
115 if (MCOp.isReg()) in getMachineOpValue()
116 return getLanaiRegisterNumbering(MCOp.getReg()); in getMachineOpValue()
117 if (MCOp.isImm()) in getMachineOpValue()
118 return static_cast<unsigned>(MCOp.getImm()); in getMachineOpValue()
121 assert(MCOp.isExpr()); in getMachineOpValue()
122 const MCExpr *Expr = MCOp.getExpr(); in getMachineOpValue()
133 MCFixup::create(0, MCOp.getExpr(), MCFixupKind(FixupKind(Expr)))); in getMachineOpValue()
294 const MCOperand &MCOp = Inst.getOperand(OpNo); in getCallTargetOpValue() local
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/MBlaze/
DMBlazeMCInstLower.cpp123 MCOperand MCOp; in Lower() local
129 MCOp = MCOperand::CreateReg(MO.getReg()); in Lower()
132 MCOp = MCOperand::CreateImm(MO.getImm()); in Lower()
135 MCOp = MCOperand::CreateExpr(MCSymbolRefExpr::Create( in Lower()
139 MCOp = LowerSymbolOperand(MO, GetGlobalAddressSymbol(MO)); in Lower()
142 MCOp = LowerSymbolOperand(MO, GetExternalSymbolSymbol(MO)); in Lower()
145 MCOp = LowerSymbolOperand(MO, GetJumpTableSymbol(MO)); in Lower()
148 MCOp = LowerSymbolOperand(MO, GetConstantPoolIndexSymbol(MO)); in Lower()
151 MCOp = LowerSymbolOperand(MO, GetBlockAddressSymbol(MO)); in Lower()
160 MCOp = MCOperand::CreateImm(Val); in Lower()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/MSP430/
DMSP430MCInstLower.cpp115 MCOperand MCOp; in Lower() local
123 MCOp = MCOperand::CreateReg(MO.getReg()); in Lower()
126 MCOp = MCOperand::CreateImm(MO.getImm()); in Lower()
129 MCOp = MCOperand::CreateExpr(MCSymbolRefExpr::Create( in Lower()
133 MCOp = LowerSymbolOperand(MO, GetGlobalAddressSymbol(MO)); in Lower()
136 MCOp = LowerSymbolOperand(MO, GetExternalSymbolSymbol(MO)); in Lower()
139 MCOp = LowerSymbolOperand(MO, GetJumpTableSymbol(MO)); in Lower()
142 MCOp = LowerSymbolOperand(MO, GetConstantPoolIndexSymbol(MO)); in Lower()
145 MCOp = LowerSymbolOperand(MO, GetBlockAddressSymbol(MO)); in Lower()
148 OutMI.addOperand(MCOp); in Lower()
/external/llvm/lib/Target/Lanai/
DLanaiMCInstLower.cpp101 MCOperand MCOp; in Lower() local
107 MCOp = MCOperand::createReg(MO.getReg()); in Lower()
110 MCOp = MCOperand::createImm(MO.getImm()); in Lower()
113 MCOp = MCOperand::createExpr( in Lower()
119 MCOp = LowerSymbolOperand(MO, GetGlobalAddressSymbol(MO)); in Lower()
122 MCOp = LowerSymbolOperand(MO, GetBlockAddressSymbol(MO)); in Lower()
125 MCOp = LowerSymbolOperand(MO, GetExternalSymbolSymbol(MO)); in Lower()
128 MCOp = LowerSymbolOperand(MO, GetJumpTableSymbol(MO)); in Lower()
131 MCOp = LowerSymbolOperand(MO, GetConstantPoolIndexSymbol(MO)); in Lower()
138 OutMI.addOperand(MCOp); in Lower()
/external/llvm/lib/Target/MSP430/
DMSP430MCInstLower.cpp119 MCOperand MCOp; in Lower() local
127 MCOp = MCOperand::createReg(MO.getReg()); in Lower()
130 MCOp = MCOperand::createImm(MO.getImm()); in Lower()
133 MCOp = MCOperand::createExpr(MCSymbolRefExpr::create( in Lower()
137 MCOp = LowerSymbolOperand(MO, GetGlobalAddressSymbol(MO)); in Lower()
140 MCOp = LowerSymbolOperand(MO, GetExternalSymbolSymbol(MO)); in Lower()
143 MCOp = LowerSymbolOperand(MO, GetJumpTableSymbol(MO)); in Lower()
146 MCOp = LowerSymbolOperand(MO, GetConstantPoolIndexSymbol(MO)); in Lower()
149 MCOp = LowerSymbolOperand(MO, GetBlockAddressSymbol(MO)); in Lower()
155 OutMI.addOperand(MCOp); in Lower()
/external/llvm/lib/Target/WebAssembly/
DWebAssemblyMCInstLower.cpp64 MCOperand MCOp; in Lower() local
79 MCOp = MCOperand::createReg(WAReg); in Lower()
83 MCOp = MCOperand::createImm(MO.getImm()); in Lower()
90 MCOp = MCOperand::createFPImm(Imm->getValueAPF().convertToFloat()); in Lower()
92 MCOp = MCOperand::createFPImm(Imm->getValueAPF().convertToDouble()); in Lower()
100 MCOp = LowerSymbolOperand(GetGlobalAddressSymbol(MO), MO.getOffset(), in Lower()
108 MCOp = LowerSymbolOperand(GetExternalSymbolSymbol(MO), /*Offset=*/0, in Lower()
113 OutMI.addOperand(MCOp); in Lower()
/external/llvm/lib/Target/AArch64/
DAArch64MCInstLower.cpp164 MCOperand &MCOp) const { in lowerOperand()
172 MCOp = MCOperand::createReg(MO.getReg()); in lowerOperand()
178 MCOp = MCOperand::createImm(MO.getImm()); in lowerOperand()
181 MCOp = MCOperand::createExpr( in lowerOperand()
185 MCOp = LowerSymbolOperand(MO, GetGlobalAddressSymbol(MO)); in lowerOperand()
188 MCOp = LowerSymbolOperand(MO, GetExternalSymbolSymbol(MO)); in lowerOperand()
191 MCOp = LowerSymbolOperand(MO, MO.getMCSymbol()); in lowerOperand()
194 MCOp = LowerSymbolOperand(MO, Printer.GetJTISymbol(MO.getIndex())); in lowerOperand()
197 MCOp = LowerSymbolOperand(MO, Printer.GetCPISymbol(MO.getIndex())); in lowerOperand()
200 MCOp = LowerSymbolOperand( in lowerOperand()
[all …]
/external/llvm/lib/Target/BPF/
DBPFMCInstLower.cpp49 MCOperand MCOp; in Lower() local
58 MCOp = MCOperand::createReg(MO.getReg()); in Lower()
61 MCOp = MCOperand::createImm(MO.getImm()); in Lower()
64 MCOp = MCOperand::createExpr( in Lower()
70 MCOp = LowerSymbolOperand(MO, GetGlobalAddressSymbol(MO)); in Lower()
74 OutMI.addOperand(MCOp); in Lower()
/external/llvm/lib/Target/PowerPC/
DPPCMCInstLower.cpp148 MCOperand MCOp; in LowerPPCMachineInstrToMCInst() local
158 MCOp = MCOperand::createReg(MO.getReg()); in LowerPPCMachineInstrToMCInst()
161 MCOp = MCOperand::createImm(MO.getImm()); in LowerPPCMachineInstrToMCInst()
164 MCOp = MCOperand::createExpr(MCSymbolRefExpr::create( in LowerPPCMachineInstrToMCInst()
169 MCOp = GetSymbolRef(MO, GetSymbolFromOperand(MO, AP), AP, isDarwin); in LowerPPCMachineInstrToMCInst()
172 MCOp = GetSymbolRef(MO, AP.GetJTISymbol(MO.getIndex()), AP, isDarwin); in LowerPPCMachineInstrToMCInst()
175 MCOp = GetSymbolRef(MO, AP.GetCPISymbol(MO.getIndex()), AP, isDarwin); in LowerPPCMachineInstrToMCInst()
178 MCOp = GetSymbolRef(MO,AP.GetBlockAddressSymbol(MO.getBlockAddress()),AP, in LowerPPCMachineInstrToMCInst()
185 OutMI.addOperand(MCOp); in LowerPPCMachineInstrToMCInst()
/external/swiftshader/third_party/LLVM/lib/Target/PowerPC/
DPPCMCInstLower.cpp139 MCOperand MCOp; in LowerPPCMachineInstrToMCInst() local
146 MCOp = MCOperand::CreateReg(MO.getReg()); in LowerPPCMachineInstrToMCInst()
149 MCOp = MCOperand::CreateImm(MO.getImm()); in LowerPPCMachineInstrToMCInst()
152 MCOp = MCOperand::CreateExpr(MCSymbolRefExpr::Create( in LowerPPCMachineInstrToMCInst()
157 MCOp = GetSymbolRef(MO, GetSymbolFromOperand(MO, AP), AP, isDarwin); in LowerPPCMachineInstrToMCInst()
160 MCOp = GetSymbolRef(MO, AP.GetJTISymbol(MO.getIndex()), AP, isDarwin); in LowerPPCMachineInstrToMCInst()
163 MCOp = GetSymbolRef(MO, AP.GetCPISymbol(MO.getIndex()), AP, isDarwin); in LowerPPCMachineInstrToMCInst()
166 MCOp = GetSymbolRef(MO,AP.GetBlockAddressSymbol(MO.getBlockAddress()),AP, in LowerPPCMachineInstrToMCInst()
171 OutMI.addOperand(MCOp); in LowerPPCMachineInstrToMCInst()
/external/mesa3d/src/gallium/drivers/radeon/
DAMDGPUMCInstLower.cpp36 MCOperand MCOp; in lower() local
44 MCOp = MCOperand::CreateFPImm(FloatValue.convertToFloat()); in lower()
48 MCOp = MCOperand::CreateImm(MO.getImm()); in lower()
51 MCOp = MCOperand::CreateReg(MO.getReg()); in lower()
54 OutMI.addOperand(MCOp); in lower()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUMCInstLower.cpp62 MCOperand MCOp; in lower() local
67 MCOp = MCOperand::createImm(MO.getImm()); in lower()
70 MCOp = MCOperand::createReg(AMDGPU::getMCReg(MO.getReg(), ST)); in lower()
73 MCOp = MCOperand::createExpr(MCSymbolRefExpr::create( in lower()
83 MCOp = MCOperand::createExpr(Expr); in lower()
90 MCOp = MCOperand::createExpr(Expr); in lower()
94 OutMI.addOperand(MCOp); in lower()
DAMDGPUInstrInfo.cpp108 int MCOp = AMDGPU::getMCOpcode(Opcode, subtargetEncodingFamily(ST)); in pseudoToMCOpcode() local
111 if (MCOp == -1) in pseudoToMCOpcode()
116 if (MCOp == (uint16_t)-1) in pseudoToMCOpcode()
119 return MCOp; in pseudoToMCOpcode()
/external/llvm/lib/Target/Sparc/
DSparcMCInstLower.cpp103 MCOperand MCOp = LowerOperand(MI, MO, AP); in LowerSparcMachineInstrToMCInst() local
105 if (MCOp.isValid()) in LowerSparcMachineInstrToMCInst()
106 OutMI.addOperand(MCOp); in LowerSparcMachineInstrToMCInst()
/external/llvm/test/CodeGen/PowerPC/
Daa-tbaa.ll14 %MCOp = alloca %"class.llvm::MCOperand", align 8
20 %sunkaddr18 = ptrtoint %"class.llvm::MCOperand"* %MCOp to i64
24 %sunkaddr21 = ptrtoint %"class.llvm::MCOperand"* %MCOp to i64
/external/swiftshader/third_party/LLVM/lib/Target/PTX/
DPTXAsmPrinter.cpp551 MCOperand MCOp; in lowerOperand() local
566 MCOp = MCOperand::CreateExpr(Expr); in lowerOperand()
569 MCOp = MCOperand::CreateImm(MO.getImm()); in lowerOperand()
572 MCOp = MCOperand::CreateExpr(MCSymbolRefExpr::Create( in lowerOperand()
576 MCOp = GetSymbolRef(MO, Mang->getSymbol(MO.getGlobal())); in lowerOperand()
579 MCOp = GetSymbolRef(MO, GetExternalSymbolSymbol(MO.getSymbolName())); in lowerOperand()
585 MCOp = MCOperand::CreateFPImm(Val.convertToDouble()); in lowerOperand()
589 return MCOp; in lowerOperand()
DPTXMCInstLower.cpp28 MCOperand MCOp; in LowerPTXMachineInstrToMCInst() local
/external/llvm/lib/Target/XCore/
DXCoreMCInstLower.cpp112 MCOperand MCOp = LowerOperand(MO); in Lower() local
114 if (MCOp.isValid()) in Lower()
115 OutMI.addOperand(MCOp); in Lower()
/external/swiftshader/third_party/LLVM/lib/Target/Mips/
DMipsMCInstLower.cpp121 MCOperand MCOp = LowerOperand(MO); in Lower() local
123 if (MCOp.isValid()) in Lower()
124 OutMI.addOperand(MCOp); in Lower()
/external/llvm/lib/Target/NVPTX/
DNVPTXAsmPrinter.cpp171 unsigned OpNo, MCOperand &MCOp) { in lowerImageHandleOperand() argument
179 lowerImageHandleSymbol(MO.getImm(), MCOp); in lowerImageHandleOperand()
183 lowerImageHandleSymbol(MO.getImm(), MCOp); in lowerImageHandleOperand()
194 lowerImageHandleSymbol(MO.getImm(), MCOp); in lowerImageHandleOperand()
202 lowerImageHandleSymbol(MO.getImm(), MCOp); in lowerImageHandleOperand()
210 lowerImageHandleSymbol(MO.getImm(), MCOp); in lowerImageHandleOperand()
220 void NVPTXAsmPrinter::lowerImageHandleSymbol(unsigned Index, MCOperand &MCOp) { in lowerImageHandleSymbol() argument
228 MCOp = GetSymbolRef(OutContext.getOrCreateSymbol( in lowerImageHandleSymbol()
245 MCOperand MCOp; in lowerToMCInst() local
247 if (lowerImageHandleOperand(MI, i, MCOp)) { in lowerToMCInst()
[all …]
DNVPTXAsmPrinter.h211 bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp);
290 MCOperand &MCOp);
291 void lowerImageHandleSymbol(unsigned Index, MCOperand &MCOp);
/external/swiftshader/third_party/LLVM/lib/Target/X86/
DX86MCInstLower.cpp307 MCOperand MCOp; in Lower() local
315 MCOp = MCOperand::CreateReg(MO.getReg()); in Lower()
318 MCOp = MCOperand::CreateImm(MO.getImm()); in Lower()
321 MCOp = MCOperand::CreateExpr(MCSymbolRefExpr::Create( in Lower()
326 MCOp = LowerSymbolOperand(MO, GetSymbolFromOperand(MO)); in Lower()
329 MCOp = LowerSymbolOperand(MO, AsmPrinter.GetJTISymbol(MO.getIndex())); in Lower()
332 MCOp = LowerSymbolOperand(MO, AsmPrinter.GetCPISymbol(MO.getIndex())); in Lower()
335 MCOp = LowerSymbolOperand(MO, in Lower()
340 OutMI.addOperand(MCOp); in Lower()
/external/llvm/lib/Target/Mips/
DMipsMCInstLower.cpp275 MCOperand MCOp = LowerOperand(MO); in Lower() local
277 if (MCOp.isValid()) in Lower()
278 OutMI.addOperand(MCOp); in Lower()

12