Home
last modified time | relevance | path

Searched refs:MCOperand (Results 1 – 25 of 49) sorted by relevance

12

/external/llvm/lib/Target/ARM/
DARMAsmPrinter.cpp1035 BrInst.addOperand(MCOperand::CreateExpr(MBBSymbolExpr)); in EmitJump2Table()
1036 BrInst.addOperand(MCOperand::CreateImm(ARMCC::AL)); in EmitJump2Table()
1037 BrInst.addOperand(MCOperand::CreateReg(0)); in EmitJump2Table()
1087 Inst.addOperand(MCOperand::CreateReg(Dest)); in populateADROperands()
1088 Inst.addOperand(MCOperand::CreateExpr(SymbolExpr)); in populateADROperands()
1090 Inst.addOperand(MCOperand::CreateImm(pred)); in populateADROperands()
1091 Inst.addOperand(MCOperand::CreateReg(ccreg)); in populateADROperands()
1312 TmpInst.addOperand(MCOperand::CreateReg(ARM::LR)); in EmitInstruction()
1313 TmpInst.addOperand(MCOperand::CreateReg(ARM::PC)); in EmitInstruction()
1315 TmpInst.addOperand(MCOperand::CreateImm(ARMCC::AL)); in EmitInstruction()
[all …]
DARMInstrInfo.cpp35 NopInst.addOperand(MCOperand::CreateImm(0)); in getNoopForMachoTarget()
36 NopInst.addOperand(MCOperand::CreateImm(ARMCC::AL)); in getNoopForMachoTarget()
37 NopInst.addOperand(MCOperand::CreateReg(0)); in getNoopForMachoTarget()
40 NopInst.addOperand(MCOperand::CreateReg(ARM::R0)); in getNoopForMachoTarget()
41 NopInst.addOperand(MCOperand::CreateReg(ARM::R0)); in getNoopForMachoTarget()
42 NopInst.addOperand(MCOperand::CreateImm(ARMCC::AL)); in getNoopForMachoTarget()
43 NopInst.addOperand(MCOperand::CreateReg(0)); in getNoopForMachoTarget()
44 NopInst.addOperand(MCOperand::CreateReg(0)); in getNoopForMachoTarget()
DARMMCInstLower.cpp26 MCOperand ARMAsmPrinter::GetSymbolRef(const MachineOperand &MO, in GetSymbolRef()
62 return MCOperand::CreateExpr(Expr); in GetSymbolRef()
67 MCOperand &MCOp) { in lowerOperand()
75 MCOp = MCOperand::CreateReg(MO.getReg()); in lowerOperand()
78 MCOp = MCOperand::CreateImm(MO.getImm()); in lowerOperand()
81 MCOp = MCOperand::CreateExpr(MCSymbolRefExpr::Create( in lowerOperand()
104 MCOp = MCOperand::CreateFPImm(Val.convertToDouble()); in lowerOperand()
121 MCOperand MCOp; in LowerARMMachineInstrToMCInst()
/external/llvm/include/llvm/MC/
DMCInst.h33 class MCOperand {
53 MCOperand() : Kind(kInvalid), FPImmVal(0.0) {} in MCOperand() function
111 static MCOperand CreateReg(unsigned Reg) { in CreateReg()
112 MCOperand Op; in CreateReg()
117 static MCOperand CreateImm(int64_t Val) { in CreateImm()
118 MCOperand Op; in CreateImm()
123 static MCOperand CreateFPImm(double Val) { in CreateFPImm()
124 MCOperand Op; in CreateFPImm()
129 static MCOperand CreateExpr(const MCExpr *Val) { in CreateExpr()
130 MCOperand Op; in CreateExpr()
[all …]
/external/llvm/lib/Target/MBlaze/Disassembler/
DMBlazeDisassembler.cpp548 instr.addOperand(MCOperand::CreateReg(RD)); in getInstruction()
549 instr.addOperand(MCOperand::CreateReg(RB)); in getInstruction()
550 instr.addOperand(MCOperand::CreateReg(RA)); in getInstruction()
556 instr.addOperand(MCOperand::CreateReg(RD)); in getInstruction()
557 instr.addOperand(MCOperand::CreateReg(RA)); in getInstruction()
558 instr.addOperand(MCOperand::CreateReg(RB)); in getInstruction()
564 instr.addOperand(MCOperand::CreateReg(RD)); in getInstruction()
565 instr.addOperand(MCOperand::CreateReg(RA)); in getInstruction()
575 instr.addOperand(MCOperand::CreateReg(RD)); in getInstruction()
576 instr.addOperand(MCOperand::CreateImm(insn&0x3FFF)); in getInstruction()
[all …]
/external/llvm/lib/Target/ARM/InstPrinter/
DARMInstPrinter.cpp79 const MCOperand &Dst = MI->getOperand(0); in printInst()
80 const MCOperand &MO1 = MI->getOperand(1); in printInst()
81 const MCOperand &MO2 = MI->getOperand(2); in printInst()
82 const MCOperand &MO3 = MI->getOperand(3); in printInst()
99 const MCOperand &Dst = MI->getOperand(0); in printInst()
100 const MCOperand &MO1 = MI->getOperand(1); in printInst()
101 const MCOperand &MO2 = MI->getOperand(2); in printInst()
224 const MCOperand &Op = MI->getOperand(OpNo); in printOperand()
249 const MCOperand &MO1 = MI->getOperand(OpNum); in printT2LdrLabelOperand()
265 const MCOperand &MO1 = MI->getOperand(OpNum); in printSORegRegOperand()
[all …]
/external/llvm/lib/Target/X86/Disassembler/
DX86Disassembler.cpp174 mcInst.addOperand(MCOperand::CreateReg(llvmRegnum)); in translateRegister()
285 MI.addOperand(MCOperand::CreateExpr(Expr)); in tryAddingSymbolicOperand()
385 mcInst.addOperand(MCOperand::CreateReg(X86::XMM0 + (immediate >> 4))); in translateImmediate()
388 mcInst.addOperand(MCOperand::CreateReg(X86::YMM0 + (immediate >> 4))); in translateImmediate()
420 mcInst.addOperand(MCOperand::CreateImm(immediate)); in translateImmediate()
451 mcInst.addOperand(MCOperand::CreateReg(X86::x)); break; in translateRMRegister()
481 MCOperand baseReg; in translateRMMemory()
482 MCOperand scaleAmount; in translateRMMemory()
483 MCOperand indexReg; in translateRMMemory()
484 MCOperand displacement; in translateRMMemory()
[all …]
/external/llvm/lib/Target/ARM/MCTargetDesc/
DARMMCCodeEmitter.cpp74 unsigned getMachineOpValue(const MCInst &MI,const MCOperand &MO,
406 getMachineOpValue(const MCInst &MI, const MCOperand &MO, in getMachineOpValue()
436 const MCOperand &MO = MI.getOperand(OpIdx); in EncodeAddrModeOpValues()
437 const MCOperand &MO1 = MI.getOperand(OpIdx + 1); in EncodeAddrModeOpValues()
465 const MCOperand &MO = MI.getOperand(OpIdx); in getBranchTargetOpValue()
501 const MCOperand MO = MI.getOperand(OpIdx); in getThumbBLTargetOpValue()
513 const MCOperand MO = MI.getOperand(OpIdx); in getThumbBLXTargetOpValue()
524 const MCOperand MO = MI.getOperand(OpIdx); in getThumbBRTargetOpValue()
535 const MCOperand MO = MI.getOperand(OpIdx); in getThumbBCCTargetOpValue()
546 const MCOperand MO = MI.getOperand(OpIdx); in getThumbCBTargetOpValue()
[all …]
/external/llvm/lib/Target/Mips/Disassembler/
DMipsDisassembler.cpp334 Inst.addOperand(MCOperand::CreateReg(Reg)); in DecodeCPU64RegsRegisterClass()
345 Inst.addOperand(MCOperand::CreateReg(Reg)); in DecodeCPURegsRegisterClass()
357 Inst.addOperand(MCOperand::CreateReg(Reg)); in DecodeFGR64RegisterClass()
369 Inst.addOperand(MCOperand::CreateReg(Reg)); in DecodeFGR32RegisterClass()
377 Inst.addOperand(MCOperand::CreateReg(RegNo)); in DecodeCCRRegisterClass()
393 Inst.addOperand(MCOperand::CreateReg(Reg)); in DecodeMem()
396 Inst.addOperand(MCOperand::CreateReg(Reg)); in DecodeMem()
397 Inst.addOperand(MCOperand::CreateReg(Base)); in DecodeMem()
398 Inst.addOperand(MCOperand::CreateImm(Offset)); in DecodeMem()
414 Inst.addOperand(MCOperand::CreateReg(Reg)); in DecodeFMem()
[all …]
/external/llvm/lib/Target/Hexagon/
DHexagonMCInstLower.cpp26 static MCOperand GetSymbolRef(const MachineOperand& MO, const MCSymbol* Symbol, in GetSymbolRef()
37 return (MCOperand::CreateExpr(ME)); in GetSymbolRef()
47 MCOperand MCO; in HexagonLowerToMC()
56 MCO = MCOperand::CreateReg(MO.getReg()); in HexagonLowerToMC()
62 MCO = MCOperand::CreateImm(*Val.bitcastToAPInt().getRawData()); in HexagonLowerToMC()
66 MCO = MCOperand::CreateImm(MO.getImm()); in HexagonLowerToMC()
69 MCO = MCOperand::CreateExpr in HexagonLowerToMC()
/external/llvm/lib/Target/X86/
DX86MCInstLower.cpp132 MCOperand X86MCInstLower::LowerSymbolOperand(const MachineOperand &MO, in LowerSymbolOperand()
198 return MCOperand::CreateExpr(Expr); in LowerSymbolOperand()
250 MCOperand Saved = Inst.getOperand(ImmOp); in SimplifyShortImmForm()
301 MCOperand Saved = Inst.getOperand(AddrOp); in SimplifyShortMoveForm()
313 MCOperand MCOp; in Lower()
321 MCOp = MCOperand::CreateReg(MO.getReg()); in Lower()
324 MCOp = MCOperand::CreateImm(MO.getImm()); in Lower()
327 MCOp = MCOperand::CreateExpr(MCSymbolRefExpr::Create( in Lower()
397 MCOperand Saved = OutMI.getOperand(0); in Lower()
423 MCOperand Saved = OutMI.getOperand(0); in Lower()
[all …]
/external/llvm/lib/Target/ARM/AsmParser/
DARMAsmParser.cpp1399 Inst.addOperand(MCOperand::CreateImm(0)); in addExpr()
1401 Inst.addOperand(MCOperand::CreateImm(CE->getValue())); in addExpr()
1403 Inst.addOperand(MCOperand::CreateExpr(Expr)); in addExpr()
1408 Inst.addOperand(MCOperand::CreateImm(unsigned(getCondCode()))); in addCondCodeOperands()
1410 Inst.addOperand(MCOperand::CreateReg(RegNum)); in addCondCodeOperands()
1415 Inst.addOperand(MCOperand::CreateImm(getCoproc())); in addCoprocNumOperands()
1420 Inst.addOperand(MCOperand::CreateImm(getCoproc())); in addCoprocRegOperands()
1425 Inst.addOperand(MCOperand::CreateImm(CoprocOption.Val)); in addCoprocOptionOperands()
1430 Inst.addOperand(MCOperand::CreateImm(ITMask.Mask)); in addITMaskOperands()
1435 Inst.addOperand(MCOperand::CreateImm(unsigned(getCondCode()))); in addITCondCodeOperands()
[all …]
/external/llvm/lib/Target/Mips/
DMipsMCInstLower.cpp36 MCOperand MipsMCInstLower::LowerSymbolOperand(const MachineOperand &MO, in LowerSymbolOperand()
103 return MCOperand::CreateExpr(MCSym); in LowerSymbolOperand()
110 return MCOperand::CreateExpr(Add); in LowerSymbolOperand()
125 MCOperand MipsMCInstLower::LowerOperand(const MachineOperand &MO, in LowerOperand()
134 return MCOperand::CreateReg(MO.getReg()); in LowerOperand()
136 return MCOperand::CreateImm(MO.getImm() + offset); in LowerOperand()
148 return MCOperand(); in LowerOperand()
156 MCOperand MCOp = LowerOperand(MO); in Lower()
DMipsMCInstLower.h19 class MCOperand; variable
38 MCOperand LowerSymbolOperand(const MachineOperand &MO,
40 MCOperand LowerOperand(const MachineOperand& MO, unsigned offset = 0) const;
/external/llvm/lib/Target/ARM/Disassembler/
DARMDisassembler.cpp595 MI.addOperand(MCOperand::CreateExpr(ARMMCExpr::CreateUpper16(Expr, *Ctx))); in tryAddingSymbolicOperand()
597 MI.addOperand(MCOperand::CreateExpr(ARMMCExpr::CreateLower16(Expr, *Ctx))); in tryAddingSymbolicOperand()
599 MI.addOperand(MCOperand::CreateExpr(Expr)); in tryAddingSymbolicOperand()
643 MI.insert(I, MCOperand::CreateReg(InITBlock ? 0 : ARM::CPSR)); in AddThumb1SBit()
648 MI.insert(I, MCOperand::CreateReg(InITBlock ? 0 : ARM::CPSR)); in AddThumb1SBit()
707 I = MI.insert(I, MCOperand::CreateImm(CC)); in AddThumbPredicate()
710 MI.insert(I, MCOperand::CreateReg(0)); in AddThumbPredicate()
712 MI.insert(I, MCOperand::CreateReg(ARM::CPSR)); in AddThumbPredicate()
717 I = MI.insert(I, MCOperand::CreateImm(CC)); in AddThumbPredicate()
720 MI.insert(I, MCOperand::CreateReg(0)); in AddThumbPredicate()
[all …]
/external/llvm/lib/Target/MBlaze/
DMBlazeMCInstLower.cpp95 MCOperand MBlazeMCInstLower::
112 return MCOperand::CreateExpr(Expr); in LowerSymbolOperand()
121 MCOperand MCOp; in Lower()
127 MCOp = MCOperand::CreateReg(MO.getReg()); in Lower()
130 MCOp = MCOperand::CreateImm(MO.getImm()); in Lower()
133 MCOp = MCOperand::CreateExpr(MCSymbolRefExpr::Create( in Lower()
158 MCOp = MCOperand::CreateImm(Val); in Lower()
/external/llvm/lib/Target/PowerPC/MCTargetDesc/
DPPCMCCodeEmitter.cpp55 unsigned getMachineOpValue(const MCInst &MI,const MCOperand &MO,
89 const MCOperand &MO = MI.getOperand(OpNo); in getDirectBrEncoding()
100 const MCOperand &MO = MI.getOperand(OpNo); in getCondBrEncoding()
111 const MCOperand &MO = MI.getOperand(OpNo); in getHA16Encoding()
122 const MCOperand &MO = MI.getOperand(OpNo); in getLO16Encoding()
138 const MCOperand &MO = MI.getOperand(OpNo); in getMemRIEncoding()
156 const MCOperand &MO = MI.getOperand(OpNo); in getMemRIXEncoding()
170 const MCOperand &MO = MI.getOperand(OpNo); in get_crbitm_encoding()
178 getMachineOpValue(const MCInst &MI, const MCOperand &MO, in getMachineOpValue()
/external/llvm/lib/Target/MSP430/
DMSP430MCInstLower.cpp91 MCOperand MSP430MCInstLower::
106 return MCOperand::CreateExpr(Expr); in LowerSymbolOperand()
115 MCOperand MCOp; in Lower()
123 MCOp = MCOperand::CreateReg(MO.getReg()); in Lower()
126 MCOp = MCOperand::CreateImm(MO.getImm()); in Lower()
129 MCOp = MCOperand::CreateExpr(MCSymbolRefExpr::Create( in Lower()
/external/llvm/lib/Target/X86/InstPrinter/
DX86IntelInstPrinter.cpp89 const MCOperand &Op = MI->getOperand(OpNo); in print_pcrel_imm()
116 const MCOperand &Op = MI->getOperand(OpNo); in printOperand()
129 const MCOperand &BaseReg = MI->getOperand(Op); in printMemReference()
131 const MCOperand &IndexReg = MI->getOperand(Op+2); in printMemReference()
132 const MCOperand &DispSpec = MI->getOperand(Op+3); in printMemReference()
133 const MCOperand &SegReg = MI->getOperand(Op+4); in printMemReference()
DX86ATTInstPrinter.cpp98 const MCOperand &Op = MI->getOperand(OpNo); in print_pcrel_imm()
120 const MCOperand &Op = MI->getOperand(OpNo); in printOperand()
138 const MCOperand &BaseReg = MI->getOperand(Op); in printMemReference()
139 const MCOperand &IndexReg = MI->getOperand(Op+2); in printMemReference()
140 const MCOperand &DispSpec = MI->getOperand(Op+3); in printMemReference()
141 const MCOperand &SegReg = MI->getOperand(Op+4); in printMemReference()
/external/llvm/lib/Target/X86/AsmParser/
DX86AsmParser.cpp376 Inst.addOperand(MCOperand::CreateImm(CE->getValue())); in addExpr()
378 Inst.addOperand(MCOperand::CreateExpr(Expr)); in addExpr()
383 Inst.addOperand(MCOperand::CreateReg(getReg())); in addRegOperands()
427 Inst.addOperand(MCOperand::CreateReg(getMemBaseReg())); in addMemOperands()
428 Inst.addOperand(MCOperand::CreateImm(getMemScale())); in addMemOperands()
429 Inst.addOperand(MCOperand::CreateReg(getMemIndexReg())); in addMemOperands()
431 Inst.addOperand(MCOperand::CreateReg(getMemSegReg())); in addMemOperands()
438 Inst.addOperand(MCOperand::CreateImm(CE->getValue())); in addAbsMemOperands()
440 Inst.addOperand(MCOperand::CreateExpr(getMemDisp())); in addAbsMemOperands()
1296 TmpInst.addOperand(MCOperand::CreateReg(X86::AX)); in processInstruction()
[all …]
/external/llvm/lib/Target/MSP430/InstPrinter/
DMSP430InstPrinter.cpp36 const MCOperand &Op = MI->getOperand(OpNo); in printPCRelImmOperand()
48 const MCOperand &Op = MI->getOperand(OpNo); in printOperand()
62 const MCOperand &Base = MI->getOperand(OpNo); in printSrcMemOperand()
63 const MCOperand &Disp = MI->getOperand(OpNo+1); in printSrcMemOperand()
/external/llvm/lib/Target/Hexagon/InstPrinter/
DHexagonInstPrinter.cpp90 const MCOperand& MO = MI->getOperand(OpNo); in printOperand()
130 const MCOperand& MO0 = MI->getOperand(OpNo); in printMEMriOperand()
131 const MCOperand& MO1 = MI->getOperand(OpNo + 1); in printMEMriOperand()
139 const MCOperand& MO0 = MI->getOperand(OpNo); in printFrameIndexOperand()
140 const MCOperand& MO1 = MI->getOperand(OpNo + 1); in printFrameIndexOperand()
187 const MCOperand& MO = MI->getOperand(OpNo); in printSymbol()
/external/llvm/lib/Target/MBlaze/MCTargetDesc/
DMBlazeMCCodeEmitter.cpp50 unsigned getMachineOpValue(const MCInst &MI,const MCOperand &MO) const;
55 static unsigned GetMBlazeRegNum(const MCOperand &MO) { in GetMBlazeRegNum()
86 void EmitIMM(const MCOperand &imm, unsigned &CurByte, raw_ostream &OS) const;
110 const MCOperand &MO) const { in getMachineOpValue()
124 EmitIMM(const MCOperand &imm, unsigned &CurByte, raw_ostream &OS) const { in EmitIMM()
154 MCOperand oper = MI.getOperand(opNo); in EmitImmediate()
/external/llvm/lib/Target/PowerPC/
DPPCMCInstLower.cpp97 static MCOperand GetSymbolRef(const MachineOperand &MO, const MCSymbol *Symbol, in GetSymbolRef()
141 return MCOperand::CreateExpr(Expr); in GetSymbolRef()
151 MCOperand MCOp; in LowerPPCMachineInstrToMCInst()
158 MCOp = MCOperand::CreateReg(MO.getReg()); in LowerPPCMachineInstrToMCInst()
161 MCOp = MCOperand::CreateImm(MO.getImm()); in LowerPPCMachineInstrToMCInst()
164 MCOp = MCOperand::CreateExpr(MCSymbolRefExpr::Create( in LowerPPCMachineInstrToMCInst()

12