Home
last modified time | relevance | path

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

12345678910>>...16

/freebsd-12.1/contrib/llvm/include/llvm/CodeGen/
H A DMachineOperand.h739 MachineOperand Op(MachineOperand::MO_Immediate); in CreateImm()
745 MachineOperand Op(MachineOperand::MO_CImmediate); in CreateCImm()
751 MachineOperand Op(MachineOperand::MO_FPImmediate); in CreateFPImm()
765 MachineOperand Op(MachineOperand::MO_Register);
789 MachineOperand Op(MachineOperand::MO_FrameIndex); in CreateFI()
803 MachineOperand Op(MachineOperand::MO_TargetIndex);
864 MachineOperand Op(MachineOperand::MO_Metadata); in CreateMetadata()
871 MachineOperand Op(MachineOperand::MO_MCSymbol);
879 MachineOperand Op(MachineOperand::MO_CFIIndex); in CreateCFIIndex()
885 MachineOperand Op(MachineOperand::MO_IntrinsicID); in CreateIntrinsicID()
[all …]
H A DMachineInstrBuilder.h88 MI->addOperand(*MF, MachineOperand::CreateReg(RegNo,
119 MI->addOperand(*MF, MachineOperand::CreateImm(Val)); in addImm()
124 MI->addOperand(*MF, MachineOperand::CreateCImm(Val)); in addCImm()
129 MI->addOperand(*MF, MachineOperand::CreateFPImm(Val)); in addFPImm()
140 MI->addOperand(*MF, MachineOperand::CreateFI(Idx)); in addFrameIndex()
217 for (const MachineOperand &MO : MOs) { in add()
224 MI->addOperand(*MF, MachineOperand::CreateMetadata(MD)); in addMetadata()
278 case MachineOperand::MO_Immediate:
280 case MachineOperand::MO_ConstantPoolIndex:
283 case MachineOperand::MO_GlobalAddress:
[all …]
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DMachineOperand.cpp261 bool MachineOperand::isIdenticalTo(const MachineOperand &Other) const { in isIdenticalTo()
267 case MachineOperand::MO_Register: in isIdenticalTo()
270 case MachineOperand::MO_Immediate: in isIdenticalTo()
313 case MachineOperand::MO_MCSymbol: in isIdenticalTo()
315 case MachineOperand::MO_CFIIndex: in isIdenticalTo()
317 case MachineOperand::MO_Metadata: in isIdenticalTo()
321 case MachineOperand::MO_Predicate: in isIdenticalTo()
330 case MachineOperand::MO_Register: in hash_value()
361 case MachineOperand::MO_Metadata: in hash_value()
363 case MachineOperand::MO_MCSymbol: in hash_value()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/ARC/
H A DARCMCInstLower.cpp40 case MachineOperand::MO_GlobalAddress: in LowerSymbolOperand()
44 case MachineOperand::MO_BlockAddress: in LowerSymbolOperand()
48 case MachineOperand::MO_ExternalSymbol: in LowerSymbolOperand()
52 case MachineOperand::MO_JumpTableIndex: in LowerSymbolOperand()
84 case MachineOperand::MO_Register: in LowerOperand()
89 case MachineOperand::MO_Immediate: in LowerOperand()
92 case MachineOperand::MO_GlobalAddress: in LowerOperand()
93 case MachineOperand::MO_ExternalSymbol: in LowerOperand()
94 case MachineOperand::MO_JumpTableIndex: in LowerOperand()
96 case MachineOperand::MO_BlockAddress: in LowerOperand()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/XCore/
H A DXCoreMCInstLower.cpp42 case MachineOperand::MO_GlobalAddress: in LowerSymbolOperand()
46 case MachineOperand::MO_BlockAddress: in LowerSymbolOperand()
50 case MachineOperand::MO_ExternalSymbol: in LowerSymbolOperand()
54 case MachineOperand::MO_JumpTableIndex: in LowerSymbolOperand()
84 case MachineOperand::MO_Register: in LowerOperand()
88 case MachineOperand::MO_Immediate: in LowerOperand()
91 case MachineOperand::MO_GlobalAddress: in LowerOperand()
92 case MachineOperand::MO_ExternalSymbol: in LowerOperand()
93 case MachineOperand::MO_JumpTableIndex: in LowerOperand()
95 case MachineOperand::MO_BlockAddress: in LowerOperand()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/Sparc/
H A DSparcMCInstLower.cpp40 case MachineOperand::MO_MachineBasicBlock: in LowerSymbolOperand()
44 case MachineOperand::MO_GlobalAddress: in LowerSymbolOperand()
48 case MachineOperand::MO_BlockAddress: in LowerSymbolOperand()
52 case MachineOperand::MO_ExternalSymbol: in LowerSymbolOperand()
56 case MachineOperand::MO_ConstantPoolIndex: in LowerSymbolOperand()
73 case MachineOperand::MO_Register: in LowerOperand()
78 case MachineOperand::MO_Immediate: in LowerOperand()
81 case MachineOperand::MO_MachineBasicBlock: in LowerOperand()
82 case MachineOperand::MO_GlobalAddress: in LowerOperand()
83 case MachineOperand::MO_BlockAddress: in LowerOperand()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/MSP430/
H A DMSP430MCInstLower.cpp52 GetJumpTableSymbol(const MachineOperand &MO) const { in GetJumpTableSymbol()
120 const MachineOperand &MO = MI->getOperand(i); in Lower()
127 case MachineOperand::MO_Register: in Lower()
132 case MachineOperand::MO_Immediate: in Lower()
135 case MachineOperand::MO_MachineBasicBlock: in Lower()
139 case MachineOperand::MO_GlobalAddress: in Lower()
142 case MachineOperand::MO_ExternalSymbol: in Lower()
145 case MachineOperand::MO_JumpTableIndex: in Lower()
148 case MachineOperand::MO_ConstantPoolIndex: in Lower()
151 case MachineOperand::MO_BlockAddress: in Lower()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/Lanai/
H A DLanaiMCInstLower.cpp39 LanaiMCInstLower::GetBlockAddressSymbol(const MachineOperand &MO) const { in GetBlockAddressSymbol()
98 const MachineOperand &MO = MI->getOperand(I); in Lower()
102 case MachineOperand::MO_Register: in Lower()
108 case MachineOperand::MO_Immediate: in Lower()
111 case MachineOperand::MO_MachineBasicBlock: in Lower()
115 case MachineOperand::MO_RegisterMask: in Lower()
117 case MachineOperand::MO_GlobalAddress: in Lower()
120 case MachineOperand::MO_BlockAddress: in Lower()
123 case MachineOperand::MO_ExternalSymbol: in Lower()
126 case MachineOperand::MO_JumpTableIndex: in Lower()
[all …]
H A DLanaiMemAluCombiner.cpp170 bool isSameOperand(const MachineOperand &Op1, const MachineOperand &Op2) { in isSameOperand()
175 case MachineOperand::MO_Register: in isSameOperand()
177 case MachineOperand::MO_Immediate: in isSameOperand()
184 bool isZeroOperand(const MachineOperand &Op) { in isZeroOperand()
241 MachineOperand Dest = MemInstr->getOperand(0); in insertMergedInstruction()
242 MachineOperand Base = MemInstr->getOperand(1); in insertMergedInstruction()
286 const MachineOperand &Base, in isSuitableAluInstr()
292 MachineOperand &Dest = AluIter->getOperand(0); in isSuitableAluInstr()
293 MachineOperand &Op1 = AluIter->getOperand(1); in isSuitableAluInstr()
294 MachineOperand &Op2 = AluIter->getOperand(2); in isSuitableAluInstr()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DSIPeepholeSDWA.cpp113 SDWAOperand(MachineOperand *TargetOp, MachineOperand *ReplacedOp) in SDWAOperand()
148 SDWASrcOperand(MachineOperand *TargetOp, MachineOperand *ReplacedOp, in SDWASrcOperand()
177 SDWADstOperand(MachineOperand *TargetOp, MachineOperand *ReplacedOp, in SDWADstOperand()
194 MachineOperand *Preserve;
197 SDWADstPreserveOperand(MachineOperand *TargetOp, MachineOperand *ReplacedOp, in SDWADstPreserveOperand()
276 static void copyRegOperand(MachineOperand &To, const MachineOperand &From) { in copyRegOperand()
288 static bool isSameReg(const MachineOperand &LHS, const MachineOperand &RHS) { in isSameReg()
295 static MachineOperand *findSingleRegUse(const MachineOperand *Reg, in findSingleRegUse()
317 static MachineOperand *findSingleRegDef(const MachineOperand *Reg, in findSingleRegDef()
725 using CheckRetType = Optional<std::pair<MachineOperand *, MachineOperand *>>; in matchSDWAOperand()
[all …]
H A DSIFoldOperands.cpp34 MachineOperand *OpToFold;
40 MachineOperand::MachineOperandType Kind;
68 return Kind == MachineOperand::MO_Register; in isReg()
92 void foldOperand(MachineOperand &OpToFold,
258 MachineOperand *New = Fold.OpToFold; in updateOperand()
397 MachineOperand &OpToFold, in foldOperand()
547 MachineOperand ImmOp = MachineOperand::CreateImm(Imm.getSExtValue()); in foldOperand()
798 MachineOperand &Dst = MI.getOperand(0); in foldInstOperand()
1021 std::pair<const MachineOperand *, int>
1032 const MachineOperand *RegOp = nullptr; in isOMod()
[all …]
H A DSIFixWWMLiveness.cpp103 std::vector<MachineOperand *> ThenDefs;
132 void processDef(MachineOperand &DefOpnd);
133 bool processThenDef(MachineOperand *DefOpnd);
135 bool processLoopPhiDef(MachineOperand *DefOpnd, MachineLoop *Loop);
178 for (MachineOperand &DefOpnd : MI.defs()) { in runOnMachineFunction()
209 void SIFixWWMLiveness::processDef(MachineOperand &DefOpnd) { in processDef()
307 std::pair<MachineOperand *, MachineLoop *>(&DefOpnd, Loop)); in processDef()
314 bool SIFixWWMLiveness::processThenDef(MachineOperand *DefOpnd) { in processThenDef()
353 bool SIFixWWMLiveness::processLoopExitDef(MachineOperand *DefOpnd, in processLoopExitDef()
378 DefOpnd->getParent()->addOperand(MachineOperand::CreateReg( in processLoopExitDef()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/X86/
H A DX86AsmPrinter.cpp118 case MachineOperand::MO_GlobalAddress: { in printSymbolOperand()
214 case MachineOperand::MO_Register: in printPCRelImm()
218 case MachineOperand::MO_Immediate: in printPCRelImm()
221 case MachineOperand::MO_GlobalAddress: in printPCRelImm()
233 case MachineOperand::MO_Register: { in printOperand()
247 case MachineOperand::MO_Immediate: in printOperand()
279 case MachineOperand::MO_Immediate: { in printLeaMemReference()
285 case MachineOperand::MO_GlobalAddress: in printLeaMemReference()
437 case MachineOperand::MO_Immediate: in PrintAsmOperand()
449 case MachineOperand::MO_Register: in PrintAsmOperand()
[all …]
H A DX86FixupLEAs.cpp92 MachineBasicBlock::iterator searchBackwards(MachineOperand &p,
142 const MachineOperand &Src = MI.getOperand(1); in INITIALIZE_PASS()
143 const MachineOperand &Dest = MI.getOperand(0); in INITIALIZE_PASS()
231 MachineOperand &opnd = MI.getOperand(i); in usesRegister()
292 static inline bool isRegOperand(const MachineOperand &Op) { in isRegOperand()
406 void FixupLEAPass::seekLEAFixup(MachineOperand &p, in seekLEAFixup()
432 const MachineOperand &Dst = MI.getOperand(0); in processInstructionForSlowLEA()
455 const MachineOperand &Src = SrcR1 == DstR ? Index : Base; in processInstructionForSlowLEA()
464 const MachineOperand &SrcR = SrcR1 == DstR ? Base : Index; in processInstructionForSlowLEA()
484 const MachineOperand &Dst = MI.getOperand(0); in processInstrForSlow3OpLEA()
[all …]
H A DX86OptimizeLEAs.cpp81 MemOpKey(const MachineOperand *Base, const MachineOperand *Scale, in MemOpKey()
82 const MachineOperand *Index, const MachineOperand *Segment, in MemOpKey()
83 const MachineOperand *Disp) in MemOpKey()
105 const MachineOperand *Operands[4];
108 const MachineOperand *Disp;
146 case MachineOperand::MO_Immediate: in getHashValue()
149 case MachineOperand::MO_JumpTableIndex: in getHashValue()
155 case MachineOperand::MO_GlobalAddress: in getHashValue()
158 case MachineOperand::MO_BlockAddress: in getHashValue()
161 case MachineOperand::MO_MCSymbol: in getHashValue()
[all …]
H A DX86InstrBuilder.h66 void getFullAddress(SmallVectorImpl<MachineOperand> &MO) { in getFullAddress()
70 MO.push_back(MachineOperand::CreateReg(Base.Reg, false, false, false, in getFullAddress()
74 MO.push_back(MachineOperand::CreateFI(Base.FrameIndex)); in getFullAddress()
77 MO.push_back(MachineOperand::CreateImm(Scale)); in getFullAddress()
82 MO.push_back(MachineOperand::CreateGA(GV, Disp, GVOpFlags)); in getFullAddress()
84 MO.push_back(MachineOperand::CreateImm(Disp)); in getFullAddress()
96 const MachineOperand &Op0 = MI->getOperand(Operand); in getAddressFromInstr()
105 const MachineOperand &Op1 = MI->getOperand(Operand + 1); in getAddressFromInstr()
108 const MachineOperand &Op2 = MI->getOperand(Operand + 2); in getAddressFromInstr()
111 const MachineOperand &Op3 = MI->getOperand(Operand + 3); in getAddressFromInstr()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/Mips/
H A DMipsMCInstLower.cpp129 case MachineOperand::MO_GlobalAddress: in LowerSymbolOperand()
134 case MachineOperand::MO_BlockAddress: in LowerSymbolOperand()
139 case MachineOperand::MO_ExternalSymbol: in LowerSymbolOperand()
144 case MachineOperand::MO_MCSymbol: in LowerSymbolOperand()
149 case MachineOperand::MO_JumpTableIndex: in LowerSymbolOperand()
186 case MachineOperand::MO_Register: in LowerOperand()
190 case MachineOperand::MO_Immediate: in LowerOperand()
193 case MachineOperand::MO_GlobalAddress: in LowerOperand()
195 case MachineOperand::MO_MCSymbol: in LowerOperand()
198 case MachineOperand::MO_BlockAddress: in LowerOperand()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/BPF/
H A DBPFMCInstLower.cpp28 BPFMCInstLower::GetGlobalAddressSymbol(const MachineOperand &MO) const { in GetGlobalAddressSymbol()
33 BPFMCInstLower::GetExternalSymbolSymbol(const MachineOperand &MO) const { in GetExternalSymbolSymbol()
37 MCOperand BPFMCInstLower::LowerSymbolOperand(const MachineOperand &MO, in LowerSymbolOperand()
52 const MachineOperand &MO = MI->getOperand(i); in Lower()
59 case MachineOperand::MO_Register: in Lower()
65 case MachineOperand::MO_Immediate: in Lower()
68 case MachineOperand::MO_MachineBasicBlock: in Lower()
72 case MachineOperand::MO_RegisterMask: in Lower()
74 case MachineOperand::MO_ExternalSymbol: in Lower()
77 case MachineOperand::MO_GlobalAddress: in Lower()
H A DBPFAsmPrinter.cpp71 const MachineOperand &MO = MI->getOperand(OpNum); in printOperand()
74 case MachineOperand::MO_Register: in printOperand()
78 case MachineOperand::MO_Immediate: in printOperand()
82 case MachineOperand::MO_MachineBasicBlock: in printOperand()
86 case MachineOperand::MO_GlobalAddress: in printOperand()
90 case MachineOperand::MO_BlockAddress: { in printOperand()
96 case MachineOperand::MO_ExternalSymbol: in printOperand()
100 case MachineOperand::MO_JumpTableIndex: in printOperand()
101 case MachineOperand::MO_ConstantPoolIndex: in printOperand()
122 const MachineOperand &BaseMO = MI->getOperand(OpNum); in PrintAsmMemoryOperand()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/RISCV/
H A DRISCVMCInstLower.cpp29 static MCOperand lowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym, in lowerSymbolOperand()
60 bool llvm::LowerRISCVMachineOperandToMCOperand(const MachineOperand &MO, in LowerRISCVMachineOperandToMCOperand()
66 case MachineOperand::MO_Register: in LowerRISCVMachineOperandToMCOperand()
72 case MachineOperand::MO_RegisterMask: in LowerRISCVMachineOperandToMCOperand()
75 case MachineOperand::MO_Immediate: in LowerRISCVMachineOperandToMCOperand()
78 case MachineOperand::MO_MachineBasicBlock: in LowerRISCVMachineOperandToMCOperand()
81 case MachineOperand::MO_GlobalAddress: in LowerRISCVMachineOperandToMCOperand()
84 case MachineOperand::MO_BlockAddress: in LowerRISCVMachineOperandToMCOperand()
88 case MachineOperand::MO_ExternalSymbol: in LowerRISCVMachineOperandToMCOperand()
92 case MachineOperand::MO_ConstantPoolIndex: in LowerRISCVMachineOperandToMCOperand()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/SystemZ/
H A 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 …]
/freebsd-12.1/contrib/llvm/lib/Target/AVR/
H A DAVRMCInstLower.cpp27 MCOperand AVRMCInstLower::lowerSymbolOperand(const MachineOperand &MO, in lowerSymbolOperand()
66 for (MachineOperand const &MO : MI.operands()) { in lowerInstruction()
73 case MachineOperand::MO_Register: in lowerInstruction()
79 case MachineOperand::MO_Immediate: in lowerInstruction()
82 case MachineOperand::MO_GlobalAddress: in lowerInstruction()
85 case MachineOperand::MO_ExternalSymbol: in lowerInstruction()
89 case MachineOperand::MO_MachineBasicBlock: in lowerInstruction()
93 case MachineOperand::MO_RegisterMask: in lowerInstruction()
95 case MachineOperand::MO_BlockAddress: in lowerInstruction()
99 case MachineOperand::MO_JumpTableIndex: in lowerInstruction()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/AArch64/
H A 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 lowerSymbolOperandCOFF(const MachineOperand &MO,
47 MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const;
49 MCSymbol *GetGlobalAddressSymbol(const MachineOperand &MO) const;
50 MCSymbol *GetExternalSymbolSymbol(const MachineOperand &MO) const;
/freebsd-12.1/contrib/llvm/lib/Target/ARM/
H A DARMMCInstLower.cpp77 case MachineOperand::MO_Register: in lowerOperand()
84 case MachineOperand::MO_Immediate: in lowerOperand()
87 case MachineOperand::MO_MachineBasicBlock: in lowerOperand()
91 case MachineOperand::MO_GlobalAddress: in lowerOperand()
95 case MachineOperand::MO_ExternalSymbol: in lowerOperand()
99 case MachineOperand::MO_JumpTableIndex: in lowerOperand()
102 case MachineOperand::MO_ConstantPoolIndex: in lowerOperand()
107 case MachineOperand::MO_BlockAddress: in lowerOperand()
110 case MachineOperand::MO_FPImmediate: { in lowerOperand()
117 case MachineOperand::MO_RegisterMask: in lowerOperand()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/Hexagon/
H A DHexagonPeephole.cpp138 MachineOperand &Dst = MI.getOperand(0); in runOnMachineFunction()
139 MachineOperand &Src = MI.getOperand(1); in runOnMachineFunction()
156 MachineOperand &Dst = MI.getOperand(0); in runOnMachineFunction()
157 MachineOperand &Src1 = MI.getOperand(1); in runOnMachineFunction()
158 MachineOperand &Src2 = MI.getOperand(2); in runOnMachineFunction()
173 MachineOperand &Dst = MI.getOperand(0); in runOnMachineFunction()
174 MachineOperand &Src1 = MI.getOperand(1); in runOnMachineFunction()
187 MachineOperand &Dst = MI.getOperand(0); in runOnMachineFunction()
188 MachineOperand &Src = MI.getOperand(1); in runOnMachineFunction()
205 MachineOperand &Dst = MI.getOperand(0); in runOnMachineFunction()
[all …]

12345678910>>...16