Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/
H A DCSKYMCInstLower.cpp31 MCOperand MCOp; in Lower() local
32 if (lowerOperand(MO, MCOp)) in Lower()
33 OutMI.addOperand(MCOp); in Lower()
77 MCOperand &MCOp) const { in lowerOperand()
84 MCOp = MCOperand::createImm(MO.getImm()); in lowerOperand()
89 MCOp = MCOperand::createReg(MO.getReg()); in lowerOperand()
92 MCOp = MCOperand::createExpr( in lowerOperand()
96 MCOp = lowerSymbolOperand(MO, Printer.getSymbol(MO.getGlobal())); in lowerOperand()
99 MCOp = lowerSymbolOperand( in lowerOperand()
103 MCOp = lowerSymbolOperand( in lowerOperand()
[all …]
H A DCSKYInstrInfo.td251 if (MCOp.evaluateAsConstantImm(Imm))
253 return MCOp.isBareSymbolRef();
260 if (MCOp.evaluateAsConstantImm(Imm))
262 return MCOp.isBareSymbolRef();
276 if (MCOp.evaluateAsConstantImm(Imm))
278 return MCOp.isBareSymbolRef();
284 if (MCOp.evaluateAsConstantImm(Imm))
286 return MCOp.isBareSymbolRef();
292 if (MCOp.evaluateAsConstantImm(Imm))
294 return MCOp
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMMCInstLower.cpp89 MCOperand &MCOp) { in lowerOperand() argument
97 MCOp = MCOperand::createReg(MO.getReg()); in lowerOperand()
100 MCOp = MCOperand::createImm(MO.getImm()); in lowerOperand()
103 MCOp = MCOperand::createExpr(MCSymbolRefExpr::create( in lowerOperand()
107 MCOp = GetSymbolRef(MO, in lowerOperand()
111 MCOp = GetSymbolRef(MO, in lowerOperand()
115 MCOp = GetSymbolRef(MO, GetJTISymbol(MO.getIndex())); in lowerOperand()
120 MCOp = GetSymbolRef(MO, GetCPISymbol(MO.getIndex())); in lowerOperand()
123 MCOp = GetSymbolRef(MO, GetBlockAddressSymbol(MO.getBlockAddress())); in lowerOperand()
129 MCOp = MCOperand::createDFPImm(bit_cast<uint64_t>(Val.convertToDouble())); in lowerOperand()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchMCInstLower.cpp135 MCOperand &MCOp, in lowerLoongArchMachineOperandToMCOperand() argument
145 MCOp = MCOperand::createReg(MO.getReg()); in lowerLoongArchMachineOperandToMCOperand()
151 MCOp = MCOperand::createImm(MO.getImm()); in lowerLoongArchMachineOperandToMCOperand()
154 MCOp = lowerSymbolOperand(MO, AP.GetCPISymbol(MO.getIndex()), AP); in lowerLoongArchMachineOperandToMCOperand()
157 MCOp = lowerSymbolOperand(MO, AP.getSymbolPreferLocal(*MO.getGlobal()), AP); in lowerLoongArchMachineOperandToMCOperand()
160 MCOp = lowerSymbolOperand(MO, MO.getMBB()->getSymbol(), AP); in lowerLoongArchMachineOperandToMCOperand()
163 MCOp = lowerSymbolOperand( in lowerLoongArchMachineOperandToMCOperand()
167 MCOp = lowerSymbolOperand( in lowerLoongArchMachineOperandToMCOperand()
171 MCOp = lowerSymbolOperand(MO, AP.GetJTISymbol(MO.getIndex()), AP); in lowerLoongArchMachineOperandToMCOperand()
182 MCOperand MCOp; in lowerLoongArchMachineInstrToMCInst() local
[all …]
H A DLoongArchAsmPrinter.h53 bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const { in lowerOperand() argument
54 return lowerLoongArchMachineOperandToMCOperand(MO, MCOp, *this); in lowerOperand()
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/
H A 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()
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRMCInstLower.cpp74 MCOperand MCOp; in lowerInstruction() local
84 MCOp = MCOperand::createReg(MO.getReg()); in lowerInstruction()
87 MCOp = MCOperand::createImm(MO.getImm()); in lowerInstruction()
90 MCOp = in lowerInstruction()
94 MCOp = lowerSymbolOperand( in lowerInstruction()
98 MCOp = MCOperand::createExpr( in lowerInstruction()
104 MCOp = lowerSymbolOperand( in lowerInstruction()
108 MCOp = lowerSymbolOperand(MO, Printer.GetJTISymbol(MO.getIndex()), in lowerInstruction()
112 MCOp = lowerSymbolOperand(MO, Printer.GetCPISymbol(MO.getIndex()), in lowerInstruction()
117 OutMI.addOperand(MCOp); in lowerInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFMCInstLower.cpp51 MCOperand MCOp; in Lower() local
60 MCOp = MCOperand::createReg(MO.getReg()); in Lower()
63 MCOp = MCOperand::createImm(MO.getImm()); in Lower()
66 MCOp = MCOperand::createExpr( in Lower()
72 MCOp = LowerSymbolOperand(MO, GetExternalSymbolSymbol(MO)); in Lower()
75 MCOp = LowerSymbolOperand(MO, GetGlobalAddressSymbol(MO)); in Lower()
78 MCOp = LowerSymbolOperand(MO, Printer.GetCPISymbol(MO.getIndex())); in Lower()
82 OutMI.addOperand(MCOp); in Lower()
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiMCInstLower.cpp97 MCOperand MCOp; in Lower() local
103 MCOp = MCOperand::createReg(MO.getReg()); in Lower()
106 MCOp = MCOperand::createImm(MO.getImm()); in Lower()
109 MCOp = MCOperand::createExpr( in Lower()
115 MCOp = LowerSymbolOperand(MO, GetGlobalAddressSymbol(MO)); in Lower()
118 MCOp = LowerSymbolOperand(MO, GetBlockAddressSymbol(MO)); in Lower()
121 MCOp = LowerSymbolOperand(MO, GetExternalSymbolSymbol(MO)); in Lower()
124 MCOp = LowerSymbolOperand(MO, GetJumpTableSymbol(MO)); in Lower()
127 MCOp = LowerSymbolOperand(MO, GetConstantPoolIndexSymbol(MO)); in Lower()
134 OutMI.addOperand(MCOp); in Lower()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVMCInstLower.cpp31 MCOperand MCOp; in lower() local
44 MCOp = MCOperand::createReg(FuncReg); in lower()
48 MCOp = MCOperand::createReg(MAI->getOrCreateMBBRegister(*MO.getMBB())); in lower()
52 MCOp = MCOperand::createReg(NewReg.isValid() ? NewReg : MO.getReg()); in lower()
58 MCOp = MCOperand::createReg(Reg); in lower()
60 MCOp = MCOperand::createImm(MO.getImm()); in lower()
64 MCOp = MCOperand::createDFPImm( in lower()
69 OutMI.addOperand(MCOp); in lower()
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/MCTargetDesc/
H A DLanaiMCCodeEmitter.cpp58 unsigned getMachineOpValue(const MCInst &Inst, const MCOperand &MCOp,
111 const MCInst &Inst, const MCOperand &MCOp, SmallVectorImpl<MCFixup> &Fixups, in getMachineOpValue() argument
113 if (MCOp.isReg()) in getMachineOpValue()
114 return getLanaiRegisterNumbering(MCOp.getReg()); in getMachineOpValue()
115 if (MCOp.isImm()) in getMachineOpValue()
116 return static_cast<unsigned>(MCOp.getImm()); in getMachineOpValue()
118 // MCOp must be an expression in getMachineOpValue()
119 assert(MCOp.isExpr()); in getMachineOpValue()
120 const MCExpr *Expr = MCOp.getExpr(); in getMachineOpValue()
131 MCFixup::create(0, MCOp in getMachineOpValue()
291 const MCOperand &MCOp = Inst.getOperand(OpNo); getBranchTargetOpValue() local
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUMCInstLower.cpp68 MCOperand &MCOp) const { in lowerOperand()
73 MCOp = MCOperand::createImm(MO.getImm()); in lowerOperand()
76 MCOp = MCOperand::createReg(AMDGPU::getMCReg(MO.getReg(), ST)); in lowerOperand()
79 MCOp = MCOperand::createExpr( in lowerOperand()
94 MCOp = MCOperand::createExpr(Expr); in lowerOperand()
100 MCOp = MCOperand::createExpr(Expr); in lowerOperand()
109 MCOp = MCOperand::createExpr(Sym->getVariableValue()); in lowerOperand()
152 MCOperand MCOp; in lower() local
153 lowerOperand(MO, MCOp); in lower()
154 OutMI.addOperand(MCOp); in lower()
[all …]
H A DR600MCInstLower.cpp41 MCOperand MCOp; in lower() local
42 lowerOperand(MO, MCOp); in lower()
43 OutMI.addOperand(MCOp); in lower()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyMCInstLower.cpp175 MCOperand MCOp; in lower() local
190 MCOp = MCOperand::createReg(WAReg); in lower()
221 MCOp = lowerTypeIndexOperand(std::move(Returns), std::move(Params)); in lower()
229 MCOp = lowerTypeIndexOperand(std::move(Returns), in lower()
235 MCOp = MCOperand::createImm(MO.getImm()); in lower()
243 MCOp = MCOperand::createSFPImm(static_cast<uint32_t>(BitPattern)); in lower()
245 MCOp = MCOperand::createDFPImm(BitPattern); in lower()
251 MCOp = lowerSymbolOperand(MO, GetGlobalAddressSymbol(MO)); in lower()
254 MCOp = lowerSymbolOperand(MO, GetExternalSymbolSymbol(MO)); in lower()
259 MCOp = lowerSymbolOperand(MO, MO.getMCSymbol()); in lower()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64MCInstLower.cpp329 MCOperand &MCOp) const { in lowerOperand()
337 MCOp = MCOperand::createReg(MO.getReg()); in lowerOperand()
343 MCOp = MCOperand::createImm(MO.getImm()); in lowerOperand()
346 MCOp = MCOperand::createExpr( in lowerOperand()
350 MCOp = LowerSymbolOperand(MO, GetGlobalAddressSymbol(MO)); in lowerOperand()
353 MCOp = LowerSymbolOperand(MO, GetExternalSymbolSymbol(MO)); in lowerOperand()
356 MCOp = LowerSymbolOperand(MO, MO.getMCSymbol()); in lowerOperand()
359 MCOp = LowerSymbolOperand(MO, Printer.GetJTISymbol(MO.getIndex())); in lowerOperand()
362 MCOp = LowerSymbolOperand(MO, Printer.GetCPISymbol(MO.getIndex())); in lowerOperand()
365 MCOp = LowerSymbolOperand( in lowerOperand()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVAsmPrinter.cpp97 bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const;
894 MCOperand &MCOp) const { in lowerOperand()
902 MCOp = MCOperand::createReg(MO.getReg()); in lowerOperand()
908 MCOp = MCOperand::createImm(MO.getImm()); in lowerOperand()
911 MCOp = lowerSymbolOperand(MO, MO.getMBB()->getSymbol(), *this); in lowerOperand()
914 MCOp = lowerSymbolOperand(MO, getSymbolPreferLocal(*MO.getGlobal()), *this); in lowerOperand()
917 MCOp = lowerSymbolOperand(MO, GetBlockAddressSymbol(MO.getBlockAddress()), in lowerOperand()
921 MCOp = lowerSymbolOperand(MO, GetExternalSymbolSymbol(MO.getSymbolName()), in lowerOperand()
925 MCOp = lowerSymbolOperand(MO, GetCPISymbol(MO.getIndex()), *this); in lowerOperand()
928 MCOp = lowerSymbolOperand(MO, GetJTISymbol(MO.getIndex()), *this); in lowerOperand()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/
H A DSparcMCInstLower.cpp101 MCOperand MCOp = LowerOperand(MI, MO, AP); in LowerSparcMachineInstrToMCInst() local
103 if (MCOp.isValid()) in LowerSparcMachineInstrToMCInst()
104 OutMI.addOperand(MCOp); in LowerSparcMachineInstrToMCInst()
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/
H A DVEMCInstLower.cpp82 MCOperand MCOp = LowerOperand(MI, MO, AP); in LowerVEMachineInstrToMCInst() local
84 if (MCOp.isValid()) in LowerVEMachineInstrToMCInst()
85 OutMI.addOperand(MCOp); in LowerVEMachineInstrToMCInst()
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreMCInstLower.cpp107 MCOperand MCOp = LowerOperand(MO); in Lower() local
109 if (MCOp.isValid()) in Lower()
110 OutMI.addOperand(MCOp); in Lower()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARC/
H A DARCMCInstLower.cpp108 MCOperand MCOp = LowerOperand(MO); in Lower() local
110 if (MCOp.isValid()) in Lower()
111 OutMI.addOperand(MCOp); in Lower()
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kMCInstLower.cpp166 std::optional<MCOperand> MCOp = LowerOperand(MI, MO); in Lower() local
168 if (MCOp.has_value() && MCOp.value().isValid()) in Lower()
169 OutMI.addOperand(MCOp.value()); in Lower()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCA/
H A DAMDGPUCustomBehaviour.cpp50 const MCOperand &MCOp = MCI.getOperand(Idx); in processWaitCnt() local
51 if (MCOp.isReg()) { in processWaitCnt()
52 Op = MCAOperand::createReg(MCOp.getReg()); in processWaitCnt()
53 } else if (MCOp.isImm()) { in processWaitCnt()
54 Op = MCAOperand::createImm(MCOp.getImm()); in processWaitCnt()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp161 unsigned OpNo, MCOperand &MCOp) { in lowerImageHandleOperand() argument
169 lowerImageHandleSymbol(MO.getImm(), MCOp); in lowerImageHandleOperand()
173 lowerImageHandleSymbol(MO.getImm(), MCOp); in lowerImageHandleOperand()
184 lowerImageHandleSymbol(MO.getImm(), MCOp); in lowerImageHandleOperand()
192 lowerImageHandleSymbol(MO.getImm(), MCOp); in lowerImageHandleOperand()
200 lowerImageHandleSymbol(MO.getImm(), MCOp); in lowerImageHandleOperand()
210 void NVPTXAsmPrinter::lowerImageHandleSymbol(unsigned Index, MCOperand &MCOp) { in lowerImageHandleSymbol() argument
217 MCOp = GetSymbolRef(OutContext.getOrCreateSymbol(SymName)); in lowerImageHandleSymbol()
234 MCOperand MCOp; in lowerToMCInst() local
236 if (lowerImageHandleOperand(MI, i, MCOp)) { in lowerToMCInst()
[all …]
H A DNVPTXAsmPrinter.h169 bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp);
231 MCOperand &MCOp);
232 void lowerImageHandleSymbol(unsigned Index, MCOperand &MCOp);
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/
H A DXtensaAsmPrinter.cpp254 MCOperand MCOp = lowerOperand(MO); in lowerToMCInst() local
256 if (MCOp.isValid()) in lowerToMCInst()
257 OutMI.addOperand(MCOp); in lowerToMCInst()

123