/openbsd/gnu/llvm/llvm/lib/Target/CSKY/ |
H A D | CSKYMCInstLower.cpp | 31 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 D | CSKYInstrInfo.td | 217 return MCOp.isBareSymbolRef(); 226 return MCOp.isBareSymbolRef(); 242 return MCOp.isBareSymbolRef(); 250 return MCOp.isBareSymbolRef(); 258 return MCOp.isBareSymbolRef(); 281 return MCOp.isBareSymbolRef(); 293 return MCOp.isBareSymbolRef(); 301 return MCOp.isBareSymbolRef(); 312 return MCOp.isBareSymbolRef(); 321 return MCOp.isBareSymbolRef(); [all …]
|
/openbsd/gnu/llvm/llvm/lib/Target/ARM/ |
H A D | ARMMCInstLower.cpp | 73 MCOperand &MCOp) { in lowerOperand() argument 81 MCOp = MCOperand::createReg(MO.getReg()); in lowerOperand() 84 MCOp = MCOperand::createImm(MO.getImm()); in lowerOperand() 87 MCOp = MCOperand::createExpr(MCSymbolRefExpr::create( in lowerOperand() 91 MCOp = GetSymbolRef(MO, in lowerOperand() 95 MCOp = GetSymbolRef(MO, in lowerOperand() 156 MCOperand MCOp; in LowerARMMachineInstrToMCInst() local 157 if (AP.lowerOperand(MO, MCOp)) { in LowerARMMachineInstrToMCInst() 158 if (MCOp.isImm() && EncodeImms) { in LowerARMMachineInstrToMCInst() 161 MCOp.setImm(Enc); in LowerARMMachineInstrToMCInst() [all …]
|
/openbsd/gnu/llvm/llvm/lib/Target/LoongArch/ |
H A D | LoongArchMCInstLower.cpp | 90 MCOperand &MCOp, in lowerLoongArchMachineOperandToMCOperand() argument 100 MCOp = MCOperand::createReg(MO.getReg()); in lowerLoongArchMachineOperandToMCOperand() 106 MCOp = MCOperand::createImm(MO.getImm()); in lowerLoongArchMachineOperandToMCOperand() 109 MCOp = lowerSymbolOperand(MO, AP.GetCPISymbol(MO.getIndex()), AP); in lowerLoongArchMachineOperandToMCOperand() 115 MCOp = lowerSymbolOperand(MO, MO.getMBB()->getSymbol(), AP); in lowerLoongArchMachineOperandToMCOperand() 118 MCOp = lowerSymbolOperand( in lowerLoongArchMachineOperandToMCOperand() 122 MCOp = lowerSymbolOperand( in lowerLoongArchMachineOperandToMCOperand() 126 MCOp = lowerSymbolOperand(MO, AP.GetJTISymbol(MO.getIndex()), AP); in lowerLoongArchMachineOperandToMCOperand() 137 MCOperand MCOp; in lowerLoongArchMachineInstrToMCInst() local 138 if (lowerLoongArchMachineOperandToMCOperand(MO, MCOp, AP)) in lowerLoongArchMachineInstrToMCInst() [all …]
|
H A D | LoongArchAsmPrinter.h | 48 bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const { in lowerOperand() argument 49 return lowerLoongArchMachineOperandToMCOperand(MO, MCOp, *this); in lowerOperand()
|
/openbsd/gnu/llvm/llvm/lib/Target/RISCV/ |
H A D | RISCVMCInstLower.cpp | 100 MCOp = MCOperand::createReg(MO.getReg()); in lowerRISCVMachineOperandToMCOperand() 106 MCOp = MCOperand::createImm(MO.getImm()); in lowerRISCVMachineOperandToMCOperand() 115 MCOp = lowerSymbolOperand( in lowerRISCVMachineOperandToMCOperand() 119 MCOp = lowerSymbolOperand( in lowerRISCVMachineOperandToMCOperand() 129 MCOp = lowerSymbolOperand(MO, MO.getMCSymbol(), AP); in lowerRISCVMachineOperandToMCOperand() 178 MCOperand MCOp; in lowerRISCVVMachineInstrToMCInst() local 198 MCOp = MCOperand::createReg(Reg); in lowerRISCVVMachineInstrToMCInst() 202 MCOp = MCOperand::createImm(MO.getImm()); in lowerRISCVVMachineInstrToMCInst() 205 OutMI.addOperand(MCOp); in lowerRISCVVMachineInstrToMCInst() 224 MCOperand MCOp; in lowerRISCVMachineInstrToMCInst() local [all …]
|
/openbsd/gnu/llvm/llvm/lib/Target/MSP430/ |
H A D | MSP430MCInstLower.cpp | 119 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()
|
/openbsd/gnu/llvm/llvm/lib/Target/AVR/ |
H A D | AVRMCInstLower.cpp | 74 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()
|
/openbsd/gnu/llvm/llvm/lib/Target/SPIRV/ |
H A D | SPIRVMCInstLower.cpp | 29 MCOperand MCOp; in lower() local 36 MCOp = MCOperand::createReg(FuncReg); in lower() 40 MCOp = MCOperand::createReg(MAI->getOrCreateMBBRegister(*MO.getMBB())); in lower() 44 MCOp = MCOperand::createReg(NewReg.isValid() ? NewReg : MO.getReg()); in lower() 50 MCOp = MCOperand::createReg(Reg); in lower() 52 MCOp = MCOperand::createImm(MO.getImm()); in lower() 56 MCOp = MCOperand::createDFPImm( in lower() 61 OutMI.addOperand(MCOp); in lower()
|
/openbsd/gnu/llvm/llvm/lib/Target/Lanai/ |
H A D | LanaiMCInstLower.cpp | 97 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()
|
/openbsd/gnu/llvm/llvm/lib/Target/BPF/ |
H A D | BPFMCInstLower.cpp | 51 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() 79 OutMI.addOperand(MCOp); in Lower()
|
/openbsd/gnu/llvm/llvm/lib/Target/Lanai/MCTargetDesc/ |
H A D | LanaiMCCodeEmitter.cpp | 57 unsigned getMachineOpValue(const MCInst &Inst, const MCOperand &MCOp, 112 if (MCOp.isReg()) in getMachineOpValue() 113 return getLanaiRegisterNumbering(MCOp.getReg()); in getMachineOpValue() 114 if (MCOp.isImm()) in getMachineOpValue() 115 return static_cast<unsigned>(MCOp.getImm()); in getMachineOpValue() 118 assert(MCOp.isExpr()); in getMachineOpValue() 119 const MCExpr *Expr = MCOp.getExpr(); in getMachineOpValue() 130 MCFixup::create(0, MCOp.getExpr(), MCFixupKind(FixupKind(Expr)))); in getMachineOpValue() 291 const MCOperand &MCOp = Inst.getOperand(OpNo); in getBranchTargetOpValue() local 292 if (MCOp.isReg() || MCOp.isImm()) in getBranchTargetOpValue() [all …]
|
/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUMCInstLower.cpp | 67 MCOperand &MCOp) const { in lowerOperand() 72 MCOp = MCOperand::createImm(MO.getImm()); in lowerOperand() 78 MCOp = MCOperand::createExpr( in lowerOperand() 93 MCOp = MCOperand::createExpr(Expr); in lowerOperand() 100 MCOp = MCOperand::createExpr(Expr); in lowerOperand() 109 MCOp = MCOperand::createExpr(Sym->getVariableValue()); in lowerOperand() 151 MCOperand MCOp; in lower() local 152 lowerOperand(MO, MCOp); in lower() 153 OutMI.addOperand(MCOp); in lower() 162 MCOperand &MCOp) const { in lowerOperand() [all …]
|
H A D | R600MCInstLower.cpp | 41 MCOperand MCOp; in lower() local 42 lowerOperand(MO, MCOp); in lower() 43 OutMI.addOperand(MCOp); in lower()
|
/openbsd/gnu/llvm/llvm/lib/Target/AArch64/ |
H A D | AArch64MCInstLower.cpp | 283 MCOperand &MCOp) const { in lowerOperand() 291 MCOp = MCOperand::createReg(MO.getReg()); in lowerOperand() 297 MCOp = MCOperand::createImm(MO.getImm()); in lowerOperand() 300 MCOp = MCOperand::createExpr( in lowerOperand() 304 MCOp = LowerSymbolOperand(MO, GetGlobalAddressSymbol(MO)); in lowerOperand() 307 MCOp = LowerSymbolOperand(MO, GetExternalSymbolSymbol(MO)); in lowerOperand() 310 MCOp = LowerSymbolOperand(MO, MO.getMCSymbol()); in lowerOperand() 319 MCOp = LowerSymbolOperand( in lowerOperand() 330 MCOperand MCOp; in Lower() local 331 if (lowerOperand(MO, MCOp)) in Lower() [all …]
|
/openbsd/gnu/llvm/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyMCInstLower.cpp | 176 MCOperand MCOp; in lower() local 191 MCOp = MCOperand::createReg(WAReg); in lower() 222 MCOp = lowerTypeIndexOperand(std::move(Returns), std::move(Params)); in lower() 230 MCOp = lowerTypeIndexOperand(std::move(Returns), in lower() 236 MCOp = MCOperand::createImm(MO.getImm()); in lower() 244 MCOp = MCOperand::createSFPImm(static_cast<uint32_t>(BitPattern)); in lower() 246 MCOp = MCOperand::createDFPImm(BitPattern); in lower() 252 MCOp = lowerSymbolOperand(MO, GetGlobalAddressSymbol(MO)); in lower() 255 MCOp = lowerSymbolOperand(MO, GetExternalSymbolSymbol(MO)); in lower() 260 MCOp = lowerSymbolOperand(MO, MO.getMCSymbol()); in lower() [all …]
|
/openbsd/gnu/llvm/llvm/lib/Target/Sparc/ |
H A D | SparcMCInstLower.cpp | 101 MCOperand MCOp = LowerOperand(MI, MO, AP); in LowerSparcMachineInstrToMCInst() local 103 if (MCOp.isValid()) in LowerSparcMachineInstrToMCInst() 104 OutMI.addOperand(MCOp); in LowerSparcMachineInstrToMCInst()
|
/openbsd/gnu/llvm/llvm/lib/Target/M68k/ |
H A D | M68kMCInstLower.cpp | 151 std::optional<MCOperand> MCOp = LowerOperand(MI, MO); in Lower() local 153 if (MCOp.has_value() && MCOp.value().isValid()) in Lower() 154 OutMI.addOperand(MCOp.value()); in Lower()
|
/openbsd/gnu/llvm/llvm/lib/Target/VE/ |
H A D | VEMCInstLower.cpp | 82 MCOperand MCOp = LowerOperand(MI, MO, AP); in LowerVEMachineInstrToMCInst() local 84 if (MCOp.isValid()) in LowerVEMachineInstrToMCInst() 85 OutMI.addOperand(MCOp); in LowerVEMachineInstrToMCInst()
|
/openbsd/gnu/llvm/llvm/lib/Target/ARC/ |
H A D | ARCMCInstLower.cpp | 108 MCOperand MCOp = LowerOperand(MO); in Lower() local 110 if (MCOp.isValid()) in Lower() 111 OutMI.addOperand(MCOp); in Lower()
|
/openbsd/gnu/llvm/llvm/lib/Target/XCore/ |
H A D | XCoreMCInstLower.cpp | 107 MCOperand MCOp = LowerOperand(MO); in Lower() local 109 if (MCOp.isValid()) in Lower() 110 OutMI.addOperand(MCOp); in Lower()
|
/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/MCA/ |
H A D | AMDGPUCustomBehaviour.cpp | 49 const MCOperand &MCOp = MCI.getOperand(Idx); in processWaitCnt() local 50 if (MCOp.isReg()) { in processWaitCnt() 51 Op = MCAOperand::createReg(MCOp.getReg()); in processWaitCnt() 52 } else if (MCOp.isImm()) { in processWaitCnt() 53 Op = MCAOperand::createImm(MCOp.getImm()); in processWaitCnt()
|
/openbsd/gnu/llvm/llvm/lib/Target/NVPTX/ |
H A D | NVPTXAsmPrinter.cpp | 162 lowerImageHandleSymbol(MO.getImm(), MCOp); in lowerImageHandleOperand() 166 lowerImageHandleSymbol(MO.getImm(), MCOp); in lowerImageHandleOperand() 177 lowerImageHandleSymbol(MO.getImm(), MCOp); in lowerImageHandleOperand() 227 MCOperand MCOp; in lowerToMCInst() local 230 OutMI.addOperand(MCOp); in lowerToMCInst() 235 if (lowerOperand(MO, MCOp)) in lowerToMCInst() 236 OutMI.addOperand(MCOp); in lowerToMCInst() 248 MCOp = MCOperand::createImm(MO.getImm()); in lowerOperand() 267 MCOp = MCOperand::createExpr( in lowerOperand() 271 MCOp = MCOperand::createExpr( in lowerOperand() [all …]
|
H A D | NVPTXAsmPrinter.h | 168 bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp); 230 MCOperand &MCOp); 231 void lowerImageHandleSymbol(unsigned Index, MCOperand &MCOp);
|
/openbsd/gnu/llvm/llvm/tools/llvm-exegesis/lib/ |
H A D | ParallelSnippetGenerator.cpp | 235 MCOperand MCOp; in generateSingleSnippetForInstrAvoidingDefUseOverlap() local 237 MCOp = std::get<MCOperand>(R); in generateSingleSnippetForInstrAvoidingDefUseOverlap() 244 MCOp = MCOperand::createReg(RandomReg); in generateSingleSnippetForInstrAvoidingDefUseOverlap() 246 IT.getValueFor(Op) = MCOp; in generateSingleSnippetForInstrAvoidingDefUseOverlap()
|