Home
last modified time | relevance | path

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

1234567891011

/external/llvm/include/llvm/CodeGen/
DMachineOperand.h44 class MachineOperand {
166 MachineOperand *Prev; // Access list for register. See MRI.
167 MachineOperand *Next;
184 explicit MachineOperand(MachineOperandType K) in MachineOperand() function
543 bool isIdenticalTo(const MachineOperand &Other) const;
550 friend hash_code hash_value(const MachineOperand &MO);
579 static MachineOperand CreateImm(int64_t Val) { in CreateImm()
580 MachineOperand Op(MachineOperand::MO_Immediate); in CreateImm()
585 static MachineOperand CreateCImm(const ConstantInt *CI) { in CreateCImm()
586 MachineOperand Op(MachineOperand::MO_CImmediate); in CreateCImm()
[all …]
DMachineInstrBuilder.h69 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 …]
DMachineInstrBundle.h131 MachineOperand &deref() const { return *OpI; } in deref()
220 MachineOperand &operator* () const { return deref(); }
221 MachineOperand *operator->() const { return &deref(); }
230 const MachineOperand &operator* () const { return deref(); }
231 const MachineOperand *operator->() const { return &deref(); }
240 MachineOperand &operator* () const { return deref(); }
241 MachineOperand *operator->() const { return &deref(); }
251 const MachineOperand &operator* () const { return deref(); }
252 const MachineOperand *operator->() const { return &deref(); }
/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/Target/Hexagon/
DHexagonPeephole.cpp105 void ChangeOpInto(MachineOperand &Dst, MachineOperand &Src);
139 MachineOperand &Dst = MI->getOperand(0); in runOnMachineFunction()
140 MachineOperand &Src = MI->getOperand(1); in runOnMachineFunction()
158 MachineOperand &Dst = MI->getOperand(0); in runOnMachineFunction()
159 MachineOperand &Src1 = MI->getOperand(1); in runOnMachineFunction()
160 MachineOperand &Src2 = MI->getOperand(2); in runOnMachineFunction()
175 MachineOperand &Dst = MI->getOperand(0); in runOnMachineFunction()
176 MachineOperand &Src1 = MI->getOperand(1); in runOnMachineFunction()
177 MachineOperand &Src2 = MI->getOperand(2); in runOnMachineFunction()
190 MachineOperand &Dst = MI->getOperand(0); in runOnMachineFunction()
[all …]
DHexagonMCInstLower.cpp34 static MCOperand GetSymbolRef(const MachineOperand &MO, const MCSymbol *Symbol, in GetSymbolRef()
90 const MachineOperand &MO = MI->getOperand(i); in HexagonLowerToMC()
99 case MachineOperand::MO_Register: in HexagonLowerToMC()
104 case MachineOperand::MO_FPImmediate: { in HexagonLowerToMC()
113 case MachineOperand::MO_Immediate: in HexagonLowerToMC()
117 case MachineOperand::MO_MachineBasicBlock: in HexagonLowerToMC()
122 case MachineOperand::MO_GlobalAddress: in HexagonLowerToMC()
125 case MachineOperand::MO_ExternalSymbol: in HexagonLowerToMC()
129 case MachineOperand::MO_JumpTableIndex: in HexagonLowerToMC()
132 case MachineOperand::MO_ConstantPoolIndex: in HexagonLowerToMC()
[all …]
DHexagonExpandPredSpillCode.cpp101 MachineOperand &Op0 = MI->getOperand(0); in runOnMachineFunction()
102 MachineOperand &Op1 = MI->getOperand(1); in runOnMachineFunction()
103 MachineOperand &Op2 = MI->getOperand(2); in runOnMachineFunction()
104 MachineOperand &Op3 = MI->getOperand(3); // Modifier value. in runOnMachineFunction()
105 MachineOperand &Op4 = MI->getOperand(4); in runOnMachineFunction()
115 NewMI->addOperand(MachineOperand::CreateReg(Hexagon::M0, in runOnMachineFunction()
144 MachineOperand &Op0 = MI->getOperand(0); in runOnMachineFunction()
145 MachineOperand &Op1 = MI->getOperand(1); in runOnMachineFunction()
146 MachineOperand &Op2 = MI->getOperand(2); in runOnMachineFunction()
147 MachineOperand &Op4 = MI->getOperand(4); // Modifier value. in runOnMachineFunction()
[all …]
DHexagonHardwareLoops.cpp161 MachineOperand *InitialValue,
162 const MachineOperand *Endvalue,
178 CountValue *computeCount(MachineLoop *Loop, const MachineOperand *Start,
179 const MachineOperand *End, unsigned IVReg,
212 const MachineOperand *MO,
217 bool phiMayWrapOrUnderflow(MachineInstr *Phi, const MachineOperand *EndVal,
223 bool loopCountMayWrapOrUnderFlow(const MachineOperand *InitVal,
224 const MachineOperand *EndVal,
231 bool checkForImmediate(const MachineOperand &MO, int64_t &Val) const;
234 bool isImmediate(const MachineOperand &MO) const { in isImmediate()
[all …]
DHexagonCopyToCombine.cpp95 MachineOperand &HiOperand, MachineOperand &LoOperand);
98 MachineOperand &HiOperand, MachineOperand &LoOperand);
101 MachineOperand &HiOperand, MachineOperand &LoOperand);
104 MachineOperand &HiOperand, MachineOperand &LoOperand);
120 const MachineOperand &Op0 = MI->getOperand(0); in isCombinableInstType()
121 const MachineOperand &Op1 = MI->getOperand(1); in isCombinableInstType()
133 const MachineOperand &Op0 = MI->getOperand(0); in isCombinableInstType()
134 const MachineOperand &Op1 = MI->getOperand(1); in isCombinableInstType()
161 const MachineOperand &Op = I->getOperand(1); in isGreaterThanNBitTFRI()
196 MachineOperand &Op = MI->getOperand(I); in removeKillInfo()
[all …]
/external/llvm/lib/CodeGen/
DMachineInstr.cpp56 void MachineOperand::setReg(unsigned Reg) { in setReg()
76 void MachineOperand::substVirtReg(unsigned Reg, unsigned SubIdx, in substVirtReg()
86 void MachineOperand::substPhysReg(unsigned Reg, const TargetRegisterInfo &TRI) { in substPhysReg()
98 void MachineOperand::setIsDef(bool Val) { in setIsDef()
118 void MachineOperand::removeRegFromUses() { in removeRegFromUses()
133 void MachineOperand::ChangeToImmediate(int64_t ImmVal) { in ChangeToImmediate()
142 void MachineOperand::ChangeToFPImmediate(const ConstantFP *FPImm) { in ChangeToFPImmediate()
151 void MachineOperand::ChangeToES(const char *SymName, unsigned char TargetFlags) { in ChangeToES()
163 void MachineOperand::ChangeToMCSymbol(MCSymbol *Sym) { in ChangeToMCSymbol()
176 void MachineOperand::ChangeToRegister(unsigned Reg, bool isDef, bool isImp, in ChangeToRegister()
[all …]
DMachineRegisterInfo.cpp34 PhysRegUseDefLists.reset(new MachineOperand*[NumRegs]()); in MachineRegisterInfo()
74 for (MachineOperand &MO : reg_nodbg_operands(Reg)) { in recomputeRegClass()
125 for (MachineOperand &M : reg_operands(Reg)) { in verifyUseList()
126 MachineOperand *MO = &M; in verifyUseList()
135 MachineOperand *MO0 = &MI->getOperand(0); in verifyUseList()
170 void MachineRegisterInfo::addRegOperandToUseList(MachineOperand *MO) { in addRegOperandToUseList()
172 MachineOperand *&HeadRef = getRegUseDefListHead(MO->getReg()); in addRegOperandToUseList()
173 MachineOperand *const Head = HeadRef; in addRegOperandToUseList()
189 MachineOperand *Last = Head->Contents.Reg.Prev; in addRegOperandToUseList()
209 void MachineRegisterInfo::removeRegOperandFromUseList(MachineOperand *MO) { in removeRegOperandFromUseList()
[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_MCSymbol: in LowerSymbolOperand()
96 case MachineOperand::MO_JumpTableIndex: in LowerSymbolOperand()
100 case MachineOperand::MO_ConstantPoolIndex: in LowerSymbolOperand()
134 MCOperand MipsMCInstLower::LowerOperand(const MachineOperand &MO, in LowerOperand()
140 case MachineOperand::MO_Register: in LowerOperand()
[all …]
/external/llvm/lib/Target/SystemZ/
DSystemZMCInstLower.cpp37 SystemZMCInstLower::getExpr(const MachineOperand &MO, in getExpr()
42 case MachineOperand::MO_MachineBasicBlock: in getExpr()
47 case MachineOperand::MO_GlobalAddress: in getExpr()
51 case MachineOperand::MO_ExternalSymbol: in getExpr()
55 case MachineOperand::MO_JumpTableIndex: in getExpr()
60 case MachineOperand::MO_ConstantPoolIndex: in getExpr()
64 case MachineOperand::MO_BlockAddress: in getExpr()
80 MCOperand SystemZMCInstLower::lowerOperand(const MachineOperand &MO) const { in lowerOperand()
82 case MachineOperand::MO_Register: in lowerOperand()
85 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/WebAssembly/
DWebAssemblyMCInstLower.cpp31 WebAssemblyMCInstLower::GetGlobalAddressSymbol(const MachineOperand &MO) const { in GetGlobalAddressSymbol()
36 const MachineOperand &MO) const { in GetExternalSymbolSymbol()
40 MCOperand WebAssemblyMCInstLower::LowerSymbolOperand(const MachineOperand &MO, in LowerSymbolOperand()
61 const MachineOperand &MO = MI->getOperand(i); in Lower()
68 case MachineOperand::MO_Register: { in Lower()
78 case MachineOperand::MO_Immediate: in Lower()
81 case MachineOperand::MO_FPImmediate: { in Lower()
93 case MachineOperand::MO_MachineBasicBlock: in Lower()
97 case MachineOperand::MO_GlobalAddress: in Lower()
100 case MachineOperand::MO_ExternalSymbol: in Lower()
/external/llvm/lib/Target/AArch64/
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 …]
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;
/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()
193 const MachineOperand &MO = MI->getOperand(OpNo); in printPCRelImm()
196 case MachineOperand::MO_Register: in printPCRelImm()
200 case MachineOperand::MO_Immediate: in printPCRelImm()
203 case MachineOperand::MO_GlobalAddress: in printPCRelImm()
212 const MachineOperand &MO = MI->getOperand(OpNo); in printOperand()
215 case MachineOperand::MO_Register: { in printOperand()
229 case MachineOperand::MO_Immediate: in printOperand()
[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/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 …]

1234567891011