Home
last modified time | relevance | path

Searched refs:MachineOperand (Results 1 – 25 of 218) sorted by relevance

123456789

/external/llvm/include/llvm/CodeGen/
DMachineOperand.h43 class MachineOperand {
165 MachineOperand *Prev; // Access list for register. See MRI.
166 MachineOperand *Next;
183 explicit MachineOperand(MachineOperandType K) in MachineOperand() function
533 bool isIdenticalTo(const MachineOperand &Other) const;
540 friend hash_code hash_value(const MachineOperand &MO);
558 static MachineOperand CreateImm(int64_t Val) { in CreateImm()
559 MachineOperand Op(MachineOperand::MO_Immediate); in CreateImm()
564 static MachineOperand CreateCImm(const ConstantInt *CI) { in CreateCImm()
565 MachineOperand Op(MachineOperand::MO_CImmediate); in CreateCImm()
[all …]
DMachineInstrBundle.h131 MachineOperand &deref() const { return *OpI; } in deref()
215 MachineOperand &operator* () const { return deref(); }
216 MachineOperand *operator->() const { return &deref(); }
225 const MachineOperand &operator* () const { return deref(); }
226 const MachineOperand *operator->() const { return &deref(); }
235 MachineOperand &operator* () const { return deref(); }
236 MachineOperand *operator->() const { return &deref(); }
246 const MachineOperand &operator* () const { return deref(); }
247 const MachineOperand *operator->() const { return &deref(); }
DMachineInstrBuilder.h68 MI->addOperand(*MF, MachineOperand::CreateReg(RegNo,
84 MI->addOperand(*MF, MachineOperand::CreateImm(Val)); in addImm()
89 MI->addOperand(*MF, MachineOperand::CreateCImm(Val)); in addCImm()
94 MI->addOperand(*MF, MachineOperand::CreateFPImm(Val)); in addFPImm()
100 MI->addOperand(*MF, MachineOperand::CreateMBB(MBB, TargetFlags));
105 MI->addOperand(*MF, MachineOperand::CreateFI(Idx)); in addFrameIndex()
112 MI->addOperand(*MF, MachineOperand::CreateCPI(Idx, Offset, TargetFlags));
118 MI->addOperand(*MF, MachineOperand::CreateTargetIndex(Idx, Offset,
125 MI->addOperand(*MF, MachineOperand::CreateJTI(Idx, TargetFlags));
132 MI->addOperand(*MF, MachineOperand::CreateGA(GV, Offset, TargetFlags));
[all …]
/external/llvm/lib/Target/XCore/
DXCoreMCInstLower.cpp35 MCOperand XCoreMCInstLower::LowerSymbolOperand(const MachineOperand &MO, in LowerSymbolOperand()
42 case MachineOperand::MO_MachineBasicBlock: in LowerSymbolOperand()
45 case MachineOperand::MO_GlobalAddress: in LowerSymbolOperand()
49 case MachineOperand::MO_BlockAddress: in LowerSymbolOperand()
53 case MachineOperand::MO_ExternalSymbol: in LowerSymbolOperand()
57 case MachineOperand::MO_JumpTableIndex: in LowerSymbolOperand()
60 case MachineOperand::MO_ConstantPoolIndex: in LowerSymbolOperand()
81 MCOperand XCoreMCInstLower::LowerOperand(const MachineOperand &MO, in LowerOperand()
87 case MachineOperand::MO_Register: in LowerOperand()
91 case MachineOperand::MO_Immediate: in LowerOperand()
[all …]
/external/llvm/lib/Target/Sparc/
DSparcMCInstLower.cpp32 const MachineOperand &MO, in LowerSymbolOperand()
41 case MachineOperand::MO_MachineBasicBlock: in LowerSymbolOperand()
45 case MachineOperand::MO_GlobalAddress: in LowerSymbolOperand()
49 case MachineOperand::MO_BlockAddress: in LowerSymbolOperand()
53 case MachineOperand::MO_ExternalSymbol: in LowerSymbolOperand()
57 case MachineOperand::MO_ConstantPoolIndex: in LowerSymbolOperand()
70 const MachineOperand &MO, in LowerOperand()
74 case MachineOperand::MO_Register: in LowerOperand()
79 case MachineOperand::MO_Immediate: in LowerOperand()
82 case MachineOperand::MO_MachineBasicBlock: in LowerOperand()
[all …]
/external/llvm/lib/Target/MSP430/
DMSP430MCInstLower.cpp32 GetGlobalAddressSymbol(const MachineOperand &MO) const { in GetGlobalAddressSymbol()
42 GetExternalSymbolSymbol(const MachineOperand &MO) const { in GetExternalSymbolSymbol()
52 GetJumpTableSymbol(const MachineOperand &MO) const { in GetJumpTableSymbol()
69 GetConstantPoolIndexSymbol(const MachineOperand &MO) const { in GetConstantPoolIndexSymbol()
86 GetBlockAddressSymbol(const MachineOperand &MO) const { in GetBlockAddressSymbol()
96 LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const { in LowerSymbolOperand()
117 const MachineOperand &MO = MI->getOperand(i); in Lower()
124 case MachineOperand::MO_Register: in Lower()
129 case MachineOperand::MO_Immediate: in Lower()
132 case MachineOperand::MO_MachineBasicBlock: in Lower()
[all …]
DMSP430MCInstLower.h23 class MachineOperand; variable
36 MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const;
38 MCSymbol *GetGlobalAddressSymbol(const MachineOperand &MO) const;
39 MCSymbol *GetExternalSymbolSymbol(const MachineOperand &MO) const;
40 MCSymbol *GetJumpTableSymbol(const MachineOperand &MO) const;
41 MCSymbol *GetConstantPoolIndexSymbol(const MachineOperand &MO) const;
42 MCSymbol *GetBlockAddressSymbol(const MachineOperand &MO) const;
DMSP430AsmPrinter.cpp66 const MachineOperand &MO = MI->getOperand(OpNum); in printOperand()
69 case MachineOperand::MO_Register: in printOperand()
72 case MachineOperand::MO_Immediate: in printOperand()
77 case MachineOperand::MO_MachineBasicBlock: in printOperand()
80 case MachineOperand::MO_GlobalAddress: { in printOperand()
107 const MachineOperand &Base = MI->getOperand(OpNum); in printSrcMemOperand()
108 const MachineOperand &Disp = MI->getOperand(OpNum+1); in printSrcMemOperand()
/external/llvm/lib/Target/Hexagon/
DHexagonPeephole.cpp104 void ChangeOpInto(MachineOperand &Dst, MachineOperand &Src);
140 MachineOperand &Dst = MI->getOperand(0); in runOnMachineFunction()
141 MachineOperand &Src = MI->getOperand(1); in runOnMachineFunction()
159 MachineOperand &Dst = MI->getOperand(0); in runOnMachineFunction()
160 MachineOperand &Src1 = MI->getOperand(1); in runOnMachineFunction()
161 MachineOperand &Src2 = MI->getOperand(2); in runOnMachineFunction()
176 MachineOperand &Dst = MI->getOperand(0); in runOnMachineFunction()
177 MachineOperand &Src1 = MI->getOperand(1); in runOnMachineFunction()
178 MachineOperand &Src2 = MI->getOperand(2); in runOnMachineFunction()
191 MachineOperand &Dst = MI->getOperand(0); in runOnMachineFunction()
[all …]
DHexagonMCInstLower.cpp27 static MCOperand GetSymbolRef(const MachineOperand& MO, const MCSymbol* Symbol, in GetSymbolRef()
48 const MachineOperand &MO = MI->getOperand(i); in HexagonLowerToMC()
55 case MachineOperand::MO_Register: in HexagonLowerToMC()
60 case MachineOperand::MO_FPImmediate: { in HexagonLowerToMC()
67 case MachineOperand::MO_Immediate: in HexagonLowerToMC()
70 case MachineOperand::MO_MachineBasicBlock: in HexagonLowerToMC()
75 case MachineOperand::MO_GlobalAddress: in HexagonLowerToMC()
78 case MachineOperand::MO_ExternalSymbol: in HexagonLowerToMC()
82 case MachineOperand::MO_JumpTableIndex: in HexagonLowerToMC()
85 case MachineOperand::MO_ConstantPoolIndex: in HexagonLowerToMC()
[all …]
/external/llvm/lib/CodeGen/
DMachineInstr.cpp48 void MachineOperand::setReg(unsigned Reg) { in setReg()
68 void MachineOperand::substVirtReg(unsigned Reg, unsigned SubIdx, in substVirtReg()
78 void MachineOperand::substPhysReg(unsigned Reg, const TargetRegisterInfo &TRI) { in substPhysReg()
90 void MachineOperand::setIsDef(bool Val) { in setIsDef()
111 void MachineOperand::ChangeToImmediate(int64_t ImmVal) { in ChangeToImmediate()
128 void MachineOperand::ChangeToRegister(unsigned Reg, bool isDef, bool isImp, in ChangeToRegister()
169 bool MachineOperand::isIdenticalTo(const MachineOperand &Other) const { in isIdenticalTo()
175 case MachineOperand::MO_Register: in isIdenticalTo()
178 case MachineOperand::MO_Immediate: in isIdenticalTo()
180 case MachineOperand::MO_CImmediate: in isIdenticalTo()
[all …]
DMachineRegisterInfo.cpp34 new MachineOperand*[getTargetRegisterInfo()->getNumRegs()]; in MachineRegisterInfo()
36 sizeof(MachineOperand*)*getTargetRegisterInfo()->getNumRegs()); in MachineRegisterInfo()
80 for (MachineOperand &MO : reg_nodbg_operands(Reg)) { in recomputeRegClass()
129 for (MachineOperand &M : reg_operands(Reg)) { in verifyUseList()
130 MachineOperand *MO = &M; in verifyUseList()
138 MachineOperand *MO0 = &MI->getOperand(0); in verifyUseList()
173 void MachineRegisterInfo::addRegOperandToUseList(MachineOperand *MO) { in addRegOperandToUseList()
175 MachineOperand *&HeadRef = getRegUseDefListHead(MO->getReg()); in addRegOperandToUseList()
176 MachineOperand *const Head = HeadRef; in addRegOperandToUseList()
192 MachineOperand *Last = Head->Contents.Reg.Prev; in addRegOperandToUseList()
[all …]
/external/llvm/lib/Target/ARM/
DARMMCInstLower.cpp27 MCOperand ARMAsmPrinter::GetSymbolRef(const MachineOperand &MO, in GetSymbolRef()
68 bool ARMAsmPrinter::lowerOperand(const MachineOperand &MO, in lowerOperand()
72 case MachineOperand::MO_Register: in lowerOperand()
79 case MachineOperand::MO_Immediate: in lowerOperand()
82 case MachineOperand::MO_MachineBasicBlock: in lowerOperand()
86 case MachineOperand::MO_GlobalAddress: { in lowerOperand()
91 case MachineOperand::MO_ExternalSymbol: in lowerOperand()
95 case MachineOperand::MO_JumpTableIndex: in lowerOperand()
98 case MachineOperand::MO_ConstantPoolIndex: in lowerOperand()
101 case MachineOperand::MO_BlockAddress: in lowerOperand()
[all …]
/external/llvm/lib/Target/SystemZ/
DSystemZMCInstLower.cpp34 SystemZMCInstLower::getExpr(const MachineOperand &MO, in getExpr()
39 case MachineOperand::MO_MachineBasicBlock: in getExpr()
44 case MachineOperand::MO_GlobalAddress: in getExpr()
48 case MachineOperand::MO_ExternalSymbol: in getExpr()
52 case MachineOperand::MO_JumpTableIndex: in getExpr()
57 case MachineOperand::MO_ConstantPoolIndex: in getExpr()
61 case MachineOperand::MO_BlockAddress: in getExpr()
77 MCOperand SystemZMCInstLower::lowerOperand(const MachineOperand &MO) const { in lowerOperand()
79 case MachineOperand::MO_Register: in lowerOperand()
82 case MachineOperand::MO_Immediate: in lowerOperand()
[all …]
/external/llvm/lib/Target/Mips/
DMipsMCInstLower.cpp35 MCOperand MipsMCInstLower::LowerSymbolOperand(const MachineOperand &MO, in LowerSymbolOperand()
71 case MachineOperand::MO_MachineBasicBlock: in LowerSymbolOperand()
75 case MachineOperand::MO_GlobalAddress: in LowerSymbolOperand()
80 case MachineOperand::MO_BlockAddress: in LowerSymbolOperand()
85 case MachineOperand::MO_ExternalSymbol: in LowerSymbolOperand()
90 case MachineOperand::MO_JumpTableIndex: in LowerSymbolOperand()
94 case MachineOperand::MO_ConstantPoolIndex: in LowerSymbolOperand()
128 MCOperand MipsMCInstLower::LowerOperand(const MachineOperand &MO, in LowerOperand()
134 case MachineOperand::MO_Register: in LowerOperand()
138 case MachineOperand::MO_Immediate: in LowerOperand()
[all …]
/external/llvm/lib/Target/X86/
DX86AsmPrinter.cpp73 static void printSymbolOperand(X86AsmPrinter &P, const MachineOperand &MO, in printSymbolOperand()
77 case MachineOperand::MO_ConstantPoolIndex: in printSymbolOperand()
81 case MachineOperand::MO_GlobalAddress: { in printSymbolOperand()
183 const MachineOperand &MO = MI->getOperand(OpNo); in printPCRelImm()
186 case MachineOperand::MO_Register: in printPCRelImm()
190 case MachineOperand::MO_Immediate: in printPCRelImm()
193 case MachineOperand::MO_GlobalAddress: in printPCRelImm()
202 const MachineOperand &MO = MI->getOperand(OpNo); in printOperand()
205 case MachineOperand::MO_Register: { in printOperand()
219 case MachineOperand::MO_Immediate: in printOperand()
[all …]
DX86FixupLEAs.cpp50 void seekLEAFixup(MachineOperand &p, MachineBasicBlock::iterator &I,
67 RegUsageState usesRegister(MachineOperand &p, MachineBasicBlock::iterator I);
72 MachineBasicBlock::iterator searchBackwards(MachineOperand &p,
106 const MachineOperand &Src = MI->getOperand(1); in postRAConvertToLEA()
107 const MachineOperand &Dest = MI->getOperand(0); in postRAConvertToLEA()
171 FixupLEAPass::usesRegister(MachineOperand &p, MachineBasicBlock::iterator I) { in usesRegister()
176 MachineOperand &opnd = MI->getOperand(i); in usesRegister()
204 FixupLEAPass::searchBackwards(MachineOperand &p, MachineBasicBlock::iterator &I, in searchBackwards()
236 MachineOperand &p = MI->getOperand(AddrOffset + X86::AddrBaseReg); in processInstruction()
240 MachineOperand &q = MI->getOperand(AddrOffset + X86::AddrIndexReg); in processInstruction()
[all …]
DX86InstrBuilder.h61 void getFullAddress(SmallVectorImpl<MachineOperand> &MO) { in getFullAddress()
65 MO.push_back(MachineOperand::CreateReg(Base.Reg, false, false, in getFullAddress()
69 MO.push_back(MachineOperand::CreateFI(Base.FrameIndex)); in getFullAddress()
72 MO.push_back(MachineOperand::CreateImm(Scale)); in getFullAddress()
73 MO.push_back(MachineOperand::CreateReg(IndexReg, false, false, in getFullAddress()
77 MO.push_back(MachineOperand::CreateGA(GV, Disp, GVOpFlags)); in getFullAddress()
79 MO.push_back(MachineOperand::CreateImm(Disp)); in getFullAddress()
81 MO.push_back(MachineOperand::CreateReg(0, false, false, in getFullAddress()
/external/llvm/lib/Target/AArch64/
DAArch64MCInstLower.h25 class MachineOperand; variable
38 bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const;
41 MCOperand lowerSymbolOperandDarwin(const MachineOperand &MO,
43 MCOperand lowerSymbolOperandELF(const MachineOperand &MO,
45 MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const;
47 MCSymbol *GetGlobalAddressSymbol(const MachineOperand &MO) const;
48 MCSymbol *GetExternalSymbolSymbol(const MachineOperand &MO) const;
DAArch64MCInstLower.cpp33 AArch64MCInstLower::GetGlobalAddressSymbol(const MachineOperand &MO) const { in GetGlobalAddressSymbol()
38 AArch64MCInstLower::GetExternalSymbolSymbol(const MachineOperand &MO) const { in GetExternalSymbolSymbol()
42 MCOperand AArch64MCInstLower::lowerSymbolOperandDarwin(const MachineOperand &MO, in lowerSymbolOperandDarwin()
77 MCOperand AArch64MCInstLower::lowerSymbolOperandELF(const MachineOperand &MO, in lowerSymbolOperandELF()
144 MCOperand AArch64MCInstLower::LowerSymbolOperand(const MachineOperand &MO, in LowerSymbolOperand()
153 bool AArch64MCInstLower::lowerOperand(const MachineOperand &MO, in lowerOperand()
158 case MachineOperand::MO_Register: in lowerOperand()
164 case MachineOperand::MO_RegisterMask: in lowerOperand()
167 case MachineOperand::MO_Immediate: in lowerOperand()
170 case MachineOperand::MO_MachineBasicBlock: in lowerOperand()
[all …]
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/radeon/
DR600InstrInfo.h37 int getBranchInstr(const MachineOperand &op) const;
66 bool ReverseBranchCondition(SmallVectorImpl<MachineOperand> &Cond) const;
69 SmallVectorImpl<MachineOperand> &Cond, bool AllowModify) const;
71 …achineBasicBlock *TBB, MachineBasicBlock *FBB, const SmallVectorImpl<MachineOperand> &Cond, DebugL…
95 std::vector<MachineOperand> &Pred) const;
97 bool SubsumesPredicate(const SmallVectorImpl<MachineOperand> &Pred1,
98 const SmallVectorImpl<MachineOperand> &Pred2) const;
104 const SmallVectorImpl<MachineOperand> &Pred) const;
124 MachineOperand &getFlagOp(MachineInstr *MI) const;
DR600InstrInfo.cpp180 SmallVectorImpl<MachineOperand> &Cond, in AnalyzeBranch()
218 Cond.push_back(MachineOperand::CreateReg(AMDGPU::PRED_SEL_ONE, false)); in AnalyzeBranch()
242 Cond.push_back(MachineOperand::CreateReg(AMDGPU::PRED_SEL_ONE, false)); in AnalyzeBranch()
250 int R600InstrInfo::getBranchInstr(const MachineOperand &op) const { in getBranchInstr()
264 const SmallVectorImpl<MachineOperand> &Cond, in InsertBranch()
404 R600InstrInfo::ReverseBranchCondition(SmallVectorImpl<MachineOperand> &Cond) const in ReverseBranchCondition()
406 MachineOperand &MO = Cond[1]; in ReverseBranchCondition()
424 MachineOperand &MO2 = Cond[2]; in ReverseBranchCondition()
440 std::vector<MachineOperand> &Pred) const in DefinesPredicate()
447 R600InstrInfo::SubsumesPredicate(const SmallVectorImpl<MachineOperand> &Pred1, in SubsumesPredicate()
[all …]
/external/mesa3d/src/gallium/drivers/radeon/
DR600InstrInfo.h37 int getBranchInstr(const MachineOperand &op) const;
66 bool ReverseBranchCondition(SmallVectorImpl<MachineOperand> &Cond) const;
69 SmallVectorImpl<MachineOperand> &Cond, bool AllowModify) const;
71 …achineBasicBlock *TBB, MachineBasicBlock *FBB, const SmallVectorImpl<MachineOperand> &Cond, DebugL…
95 std::vector<MachineOperand> &Pred) const;
97 bool SubsumesPredicate(const SmallVectorImpl<MachineOperand> &Pred1,
98 const SmallVectorImpl<MachineOperand> &Pred2) const;
104 const SmallVectorImpl<MachineOperand> &Pred) const;
124 MachineOperand &getFlagOp(MachineInstr *MI) const;
DR600InstrInfo.cpp180 SmallVectorImpl<MachineOperand> &Cond, in AnalyzeBranch()
218 Cond.push_back(MachineOperand::CreateReg(AMDGPU::PRED_SEL_ONE, false)); in AnalyzeBranch()
242 Cond.push_back(MachineOperand::CreateReg(AMDGPU::PRED_SEL_ONE, false)); in AnalyzeBranch()
250 int R600InstrInfo::getBranchInstr(const MachineOperand &op) const { in getBranchInstr()
264 const SmallVectorImpl<MachineOperand> &Cond, in InsertBranch()
404 R600InstrInfo::ReverseBranchCondition(SmallVectorImpl<MachineOperand> &Cond) const in ReverseBranchCondition()
406 MachineOperand &MO = Cond[1]; in ReverseBranchCondition()
424 MachineOperand &MO2 = Cond[2]; in ReverseBranchCondition()
440 std::vector<MachineOperand> &Pred) const in DefinesPredicate()
447 R600InstrInfo::SubsumesPredicate(const SmallVectorImpl<MachineOperand> &Pred1, in SubsumesPredicate()
[all …]
/external/llvm/lib/Target/PowerPC/
DPPCMCInstLower.cpp37 static MCSymbol *GetSymbolFromOperand(const MachineOperand &MO, AsmPrinter &AP){ in GetSymbolFromOperand()
111 static MCOperand GetSymbolRef(const MachineOperand &MO, const MCSymbol *Symbol, in GetSymbolRef()
172 const MachineOperand &MO = MI->getOperand(i); in LowerPPCMachineInstrToMCInst()
179 case MachineOperand::MO_Register: in LowerPPCMachineInstrToMCInst()
183 case MachineOperand::MO_Immediate: in LowerPPCMachineInstrToMCInst()
186 case MachineOperand::MO_MachineBasicBlock: in LowerPPCMachineInstrToMCInst()
190 case MachineOperand::MO_GlobalAddress: in LowerPPCMachineInstrToMCInst()
191 case MachineOperand::MO_ExternalSymbol: in LowerPPCMachineInstrToMCInst()
194 case MachineOperand::MO_JumpTableIndex: in LowerPPCMachineInstrToMCInst()
197 case MachineOperand::MO_ConstantPoolIndex: in LowerPPCMachineInstrToMCInst()
[all …]

123456789