Home
last modified time | relevance | path

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

12345678910

/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
538 bool isIdenticalTo(const MachineOperand &Other) const;
545 friend hash_code hash_value(const MachineOperand &MO);
568 static MachineOperand CreateImm(int64_t Val) { in CreateImm()
569 MachineOperand Op(MachineOperand::MO_Immediate); in CreateImm()
574 static MachineOperand CreateCImm(const ConstantInt *CI) { in CreateCImm()
575 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.h72 MI->addOperand(*MF, MachineOperand::CreateReg(RegNo,
88 MI->addOperand(*MF, MachineOperand::CreateImm(Val)); in addImm()
93 MI->addOperand(*MF, MachineOperand::CreateCImm(Val)); in addCImm()
98 MI->addOperand(*MF, MachineOperand::CreateFPImm(Val)); in addFPImm()
104 MI->addOperand(*MF, MachineOperand::CreateMBB(MBB, TargetFlags));
109 MI->addOperand(*MF, MachineOperand::CreateFI(Idx)); in addFrameIndex()
116 MI->addOperand(*MF, MachineOperand::CreateCPI(Idx, Offset, TargetFlags));
122 MI->addOperand(*MF, MachineOperand::CreateTargetIndex(Idx, Offset,
129 MI->addOperand(*MF, MachineOperand::CreateJTI(Idx, TargetFlags));
136 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;
/external/llvm/lib/CodeGen/
DMachineInstr.cpp49 void MachineOperand::setReg(unsigned Reg) { in setReg()
69 void MachineOperand::substVirtReg(unsigned Reg, unsigned SubIdx, in substVirtReg()
79 void MachineOperand::substPhysReg(unsigned Reg, const TargetRegisterInfo &TRI) { in substPhysReg()
91 void MachineOperand::setIsDef(bool Val) { in setIsDef()
111 void MachineOperand::removeRegFromUses() { in removeRegFromUses()
126 void MachineOperand::ChangeToImmediate(int64_t ImmVal) { in ChangeToImmediate()
135 void MachineOperand::ChangeToFPImmediate(const ConstantFP *FPImm) { in ChangeToFPImmediate()
147 void MachineOperand::ChangeToRegister(unsigned Reg, bool isDef, bool isImp, in ChangeToRegister()
188 bool MachineOperand::isIdenticalTo(const MachineOperand &Other) const { in isIdenticalTo()
194 case MachineOperand::MO_Register: in isIdenticalTo()
[all …]
DMachineRegisterInfo.cpp75 for (MachineOperand &MO : reg_nodbg_operands(Reg)) { in recomputeRegClass()
124 for (MachineOperand &M : reg_operands(Reg)) { in verifyUseList()
125 MachineOperand *MO = &M; in verifyUseList()
134 MachineOperand *MO0 = &MI->getOperand(0); in verifyUseList()
169 void MachineRegisterInfo::addRegOperandToUseList(MachineOperand *MO) { in addRegOperandToUseList()
171 MachineOperand *&HeadRef = getRegUseDefListHead(MO->getReg()); in addRegOperandToUseList()
172 MachineOperand *const Head = HeadRef; in addRegOperandToUseList()
188 MachineOperand *Last = Head->Contents.Reg.Prev; in addRegOperandToUseList()
208 void MachineRegisterInfo::removeRegOperandFromUseList(MachineOperand *MO) { in removeRegOperandFromUseList()
210 MachineOperand *&HeadRef = getRegUseDefListHead(MO->getReg()); in removeRegOperandFromUseList()
[all …]
/external/llvm/lib/Target/Hexagon/
DHexagonPeephole.cpp104 void ChangeOpInto(MachineOperand &Dst, MachineOperand &Src);
138 MachineOperand &Dst = MI->getOperand(0); in runOnMachineFunction()
139 MachineOperand &Src = MI->getOperand(1); in runOnMachineFunction()
157 MachineOperand &Dst = MI->getOperand(0); in runOnMachineFunction()
158 MachineOperand &Src1 = MI->getOperand(1); in runOnMachineFunction()
159 MachineOperand &Src2 = MI->getOperand(2); in runOnMachineFunction()
174 MachineOperand &Dst = MI->getOperand(0); in runOnMachineFunction()
175 MachineOperand &Src1 = MI->getOperand(1); in runOnMachineFunction()
176 MachineOperand &Src2 = MI->getOperand(2); in runOnMachineFunction()
189 MachineOperand &Dst = MI->getOperand(0); in runOnMachineFunction()
[all …]
DHexagonMCInstLower.cpp26 static MCOperand GetSymbolRef(const MachineOperand& MO, const MCSymbol* Symbol, in GetSymbolRef()
46 const MachineOperand &MO = MI->getOperand(i); in HexagonLowerToMC()
53 case MachineOperand::MO_Register: in HexagonLowerToMC()
58 case MachineOperand::MO_FPImmediate: { in HexagonLowerToMC()
65 case MachineOperand::MO_Immediate: in HexagonLowerToMC()
68 case MachineOperand::MO_MachineBasicBlock: in HexagonLowerToMC()
73 case MachineOperand::MO_GlobalAddress: in HexagonLowerToMC()
76 case MachineOperand::MO_ExternalSymbol: in HexagonLowerToMC()
80 case MachineOperand::MO_JumpTableIndex: in HexagonLowerToMC()
83 case MachineOperand::MO_ConstantPoolIndex: in HexagonLowerToMC()
[all …]
DHexagonExpandPredSpillCode.cpp100 MachineOperand &Op0 = MI->getOperand(0); in runOnMachineFunction()
101 MachineOperand &Op1 = MI->getOperand(1); in runOnMachineFunction()
102 MachineOperand &Op2 = MI->getOperand(2); in runOnMachineFunction()
103 MachineOperand &Op3 = MI->getOperand(3); // Modifier value. in runOnMachineFunction()
104 MachineOperand &Op4 = MI->getOperand(4); in runOnMachineFunction()
114 NewMI->addOperand(MachineOperand::CreateReg(Hexagon::M0, in runOnMachineFunction()
143 MachineOperand &Op0 = MI->getOperand(0); in runOnMachineFunction()
144 MachineOperand &Op1 = MI->getOperand(1); in runOnMachineFunction()
145 MachineOperand &Op2 = MI->getOperand(2); in runOnMachineFunction()
146 MachineOperand &Op4 = MI->getOperand(4); // Modifier value. in runOnMachineFunction()
[all …]
DHexagonCopyToCombine.cpp94 MachineOperand &HiOperand, MachineOperand &LoOperand);
97 MachineOperand &HiOperand, MachineOperand &LoOperand);
100 MachineOperand &HiOperand, MachineOperand &LoOperand);
103 MachineOperand &HiOperand, MachineOperand &LoOperand);
130 const MachineOperand &Op0 = MI->getOperand(0); in isCombinableInstType()
131 const MachineOperand &Op1 = MI->getOperand(1); in isCombinableInstType()
209 MachineOperand &Op = MI->getOperand(I); in removeKillInfo()
364 MachineOperand &Op = MI->getOperand(OpdIdx); in findPotentialNewifiableTFRs()
396 MachineOperand &Op = MI->getOperand(I); in findPotentialNewifiableTFRs()
530 MachineOperand &LoOperand = IsI1Loreg ? I1->getOperand(1) : in combine()
[all …]
/external/llvm/lib/Target/Mips/
DMipsMCInstLower.cpp36 MCOperand MipsMCInstLower::LowerSymbolOperand(const MachineOperand &MO, in LowerSymbolOperand()
72 case MachineOperand::MO_MachineBasicBlock: in LowerSymbolOperand()
76 case MachineOperand::MO_GlobalAddress: in LowerSymbolOperand()
81 case MachineOperand::MO_BlockAddress: in LowerSymbolOperand()
86 case MachineOperand::MO_ExternalSymbol: in LowerSymbolOperand()
91 case MachineOperand::MO_JumpTableIndex: in LowerSymbolOperand()
95 case MachineOperand::MO_ConstantPoolIndex: in LowerSymbolOperand()
129 MCOperand MipsMCInstLower::LowerOperand(const MachineOperand &MO, in LowerOperand()
135 case MachineOperand::MO_Register: in LowerOperand()
139 case MachineOperand::MO_Immediate: in LowerOperand()
[all …]
/external/llvm/lib/Target/SystemZ/
DSystemZMCInstLower.cpp36 SystemZMCInstLower::getExpr(const MachineOperand &MO, in getExpr()
41 case MachineOperand::MO_MachineBasicBlock: in getExpr()
46 case MachineOperand::MO_GlobalAddress: in getExpr()
50 case MachineOperand::MO_ExternalSymbol: in getExpr()
54 case MachineOperand::MO_JumpTableIndex: in getExpr()
59 case MachineOperand::MO_ConstantPoolIndex: in getExpr()
63 case MachineOperand::MO_BlockAddress: in getExpr()
79 MCOperand SystemZMCInstLower::lowerOperand(const MachineOperand &MO) const { in lowerOperand()
81 case MachineOperand::MO_Register: in lowerOperand()
84 case MachineOperand::MO_Immediate: in lowerOperand()
[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/X86/
DX86AsmPrinter.cpp76 static void printSymbolOperand(X86AsmPrinter &P, const MachineOperand &MO, in printSymbolOperand()
80 case MachineOperand::MO_ConstantPoolIndex: in printSymbolOperand()
84 case MachineOperand::MO_GlobalAddress: { in printSymbolOperand()
186 const MachineOperand &MO = MI->getOperand(OpNo); in printPCRelImm()
189 case MachineOperand::MO_Register: in printPCRelImm()
193 case MachineOperand::MO_Immediate: in printPCRelImm()
196 case MachineOperand::MO_GlobalAddress: in printPCRelImm()
205 const MachineOperand &MO = MI->getOperand(OpNo); in printOperand()
208 case MachineOperand::MO_Register: { in printOperand()
222 case MachineOperand::MO_Immediate: in printOperand()
[all …]
DX86FixupLEAs.cpp49 void seekLEAFixup(MachineOperand &p, MachineBasicBlock::iterator &I,
66 RegUsageState usesRegister(MachineOperand &p, MachineBasicBlock::iterator I);
71 MachineBasicBlock::iterator searchBackwards(MachineOperand &p,
104 const MachineOperand &Src = MI->getOperand(1); in postRAConvertToLEA()
105 const MachineOperand &Dest = MI->getOperand(0); in postRAConvertToLEA()
168 FixupLEAPass::usesRegister(MachineOperand &p, MachineBasicBlock::iterator I) { in usesRegister()
173 MachineOperand &opnd = MI->getOperand(i); in usesRegister()
201 FixupLEAPass::searchBackwards(MachineOperand &p, MachineBasicBlock::iterator &I, in searchBackwards()
234 MachineOperand &p = MI->getOperand(AddrOffset + X86::AddrBaseReg); in processInstruction()
238 MachineOperand &q = MI->getOperand(AddrOffset + X86::AddrIndexReg); in processInstruction()
[all …]
/external/llvm/lib/Target/BPF/
DBPFMCInstLower.cpp29 BPFMCInstLower::GetGlobalAddressSymbol(const MachineOperand &MO) const { in GetGlobalAddressSymbol()
33 MCOperand BPFMCInstLower::LowerSymbolOperand(const MachineOperand &MO, in LowerSymbolOperand()
48 const MachineOperand &MO = MI->getOperand(i); in Lower()
55 case MachineOperand::MO_Register: in Lower()
61 case MachineOperand::MO_Immediate: in Lower()
64 case MachineOperand::MO_MachineBasicBlock: in Lower()
68 case MachineOperand::MO_RegisterMask: in Lower()
70 case MachineOperand::MO_GlobalAddress: in Lower()
/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.cpp35 AArch64MCInstLower::GetGlobalAddressSymbol(const MachineOperand &MO) const { in GetGlobalAddressSymbol()
40 AArch64MCInstLower::GetExternalSymbolSymbol(const MachineOperand &MO) const { in GetExternalSymbolSymbol()
44 MCOperand AArch64MCInstLower::lowerSymbolOperandDarwin(const MachineOperand &MO, in lowerSymbolOperandDarwin()
79 MCOperand AArch64MCInstLower::lowerSymbolOperandELF(const MachineOperand &MO, in lowerSymbolOperandELF()
154 MCOperand AArch64MCInstLower::LowerSymbolOperand(const MachineOperand &MO, in LowerSymbolOperand()
163 bool AArch64MCInstLower::lowerOperand(const MachineOperand &MO, in lowerOperand()
168 case MachineOperand::MO_Register: in lowerOperand()
174 case MachineOperand::MO_RegisterMask: in lowerOperand()
177 case MachineOperand::MO_Immediate: in lowerOperand()
180 case MachineOperand::MO_MachineBasicBlock: in lowerOperand()
[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.cpp38 static MCSymbol *GetSymbolFromOperand(const MachineOperand &MO, AsmPrinter &AP){ in GetSymbolFromOperand()
114 static MCOperand GetSymbolRef(const MachineOperand &MO, const MCSymbol *Symbol, in GetSymbolRef()
178 const MachineOperand &MO = MI->getOperand(i); in LowerPPCMachineInstrToMCInst()
185 case MachineOperand::MO_Register: in LowerPPCMachineInstrToMCInst()
192 case MachineOperand::MO_Immediate: in LowerPPCMachineInstrToMCInst()
195 case MachineOperand::MO_MachineBasicBlock: in LowerPPCMachineInstrToMCInst()
199 case MachineOperand::MO_GlobalAddress: in LowerPPCMachineInstrToMCInst()
200 case MachineOperand::MO_ExternalSymbol: in LowerPPCMachineInstrToMCInst()
203 case MachineOperand::MO_JumpTableIndex: in LowerPPCMachineInstrToMCInst()
206 case MachineOperand::MO_ConstantPoolIndex: in LowerPPCMachineInstrToMCInst()
[all …]
/external/llvm/lib/Target/NVPTX/
DNVPTXReplaceImageHandles.cpp44 void replaceImageHandle(MachineOperand &Op, MachineFunction &MF);
45 bool findIndexForHandle(MachineOperand &Op, MachineFunction &MF,
86 MachineOperand &TexHandle = MI.getOperand(4); in processInstr()
90 MachineOperand &SampHandle = MI.getOperand(5); in processInstr()
100 MachineOperand &SurfHandle = MI.getOperand(VecSize); in processInstr()
107 MachineOperand &SurfHandle = MI.getOperand(0); in processInstr()
114 MachineOperand &Handle = MI.getOperand(1); in processInstr()
125 replaceImageHandle(MachineOperand &Op, MachineFunction &MF) { in replaceImageHandle()
133 findIndexForHandle(MachineOperand &Op, MachineFunction &MF, unsigned &Idx) { in findIndexForHandle()

12345678910