Home
last modified time | relevance | path

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

12345678910>>...21

/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DMachineOperand.h783 MachineOperand Op(MachineOperand::MO_Immediate); in CreateImm()
789 MachineOperand Op(MachineOperand::MO_CImmediate); in CreateCImm()
795 MachineOperand Op(MachineOperand::MO_FPImmediate); in CreateFPImm()
809 MachineOperand Op(MachineOperand::MO_Register);
833 MachineOperand Op(MachineOperand::MO_FrameIndex); in CreateFI()
847 MachineOperand Op(MachineOperand::MO_TargetIndex);
908 MachineOperand Op(MachineOperand::MO_Metadata); in CreateMetadata()
915 MachineOperand Op(MachineOperand::MO_MCSymbol);
923 MachineOperand Op(MachineOperand::MO_CFIIndex); in CreateCFIIndex()
929 MachineOperand Op(MachineOperand::MO_IntrinsicID); in CreateIntrinsicID()
[all …]
H A DMachineInstrBuilder.h101 MI->addOperand(*MF, MachineOperand::CreateReg(RegNo,
132 MI->addOperand(*MF, MachineOperand::CreateImm(Val)); in addImm()
137 MI->addOperand(*MF, MachineOperand::CreateCImm(Val)); in addCImm()
142 MI->addOperand(*MF, MachineOperand::CreateFPImm(Val)); in addFPImm()
153 MI->addOperand(*MF, MachineOperand::CreateFI(Idx)); in addFrameIndex()
230 for (const MachineOperand &MO : MOs) { in add()
296 case MachineOperand::MO_Immediate:
298 case MachineOperand::MO_ConstantPoolIndex:
301 case MachineOperand::MO_GlobalAddress:
304 case MachineOperand::MO_BlockAddress:
[all …]
H A DTileShapeInfo.h32 ShapeT(MachineOperand *Row, MachineOperand *Col,
42 MachineOperand *R = Shape.Row;
43 MachineOperand *C = Shape.Col;
57 MachineOperand *getRow() const { return Row; } in getRow()
59 MachineOperand *getCol() const { return Col; } in getCol()
73 for (const MachineOperand &DefMO : MRI->def_operands(Reg)) { in deduceImm()
88 MachineOperand *Row;
89 MachineOperand *Col;
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstructionSelector.h40 class MachineOperand; variable
83 MachineOperand getSubOperand64(MachineOperand &MO,
156 selectVCSRC(MachineOperand &Root) const;
159 selectVSRC0(MachineOperand &Root) const;
162 selectVOP3Mods0(MachineOperand &Root) const;
166 selectVOP3OMods(MachineOperand &Root) const;
168 selectVOP3Mods(MachineOperand &Root) const;
170 selectVOP3BMods(MachineOperand &Root) const;
182 selectVOP3PMods(MachineOperand &Root) const;
204 selectSmrdImm(MachineOperand &Root) const;
[all …]
H A DSIPeepholeSDWA.cpp87 SDWAOperand(MachineOperand *TargetOp, MachineOperand *ReplacedOp) in SDWAOperand()
122 SDWASrcOperand(MachineOperand *TargetOp, MachineOperand *ReplacedOp, in SDWASrcOperand()
151 SDWADstOperand(MachineOperand *TargetOp, MachineOperand *ReplacedOp, in SDWADstOperand()
168 MachineOperand *Preserve;
171 SDWADstPreserveOperand(MachineOperand *TargetOp, MachineOperand *ReplacedOp, in SDWADstPreserveOperand()
245 static void copyRegOperand(MachineOperand &To, const MachineOperand &From) { in copyRegOperand()
257 static bool isSameReg(const MachineOperand &LHS, const MachineOperand &RHS) { in isSameReg()
264 static MachineOperand *findSingleRegUse(const MachineOperand *Reg, in findSingleRegUse()
286 static MachineOperand *findSingleRegDef(const MachineOperand *Reg, in findSingleRegDef()
694 using CheckRetType = Optional<std::pair<MachineOperand *, MachineOperand *>>; in matchSDWAOperand()
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DMachineOperand.cpp285 bool MachineOperand::isIdenticalTo(const MachineOperand &Other) const { in isIdenticalTo()
291 case MachineOperand::MO_Register: in isIdenticalTo()
294 case MachineOperand::MO_Immediate: in isIdenticalTo()
337 case MachineOperand::MO_MCSymbol: in isIdenticalTo()
339 case MachineOperand::MO_CFIIndex: in isIdenticalTo()
341 case MachineOperand::MO_Metadata: in isIdenticalTo()
345 case MachineOperand::MO_Predicate: in isIdenticalTo()
356 case MachineOperand::MO_Register: in hash_value()
387 case MachineOperand::MO_Metadata: in hash_value()
389 case MachineOperand::MO_MCSymbol: in hash_value()
[all …]
H A DMIRVRegNamerUtils.cpp71 case MachineOperand::MO_CImmediate: in getInstructionOpcodeHash()
74 case MachineOperand::MO_FPImmediate: in getInstructionOpcodeHash()
78 case MachineOperand::MO_Register: in getInstructionOpcodeHash()
82 case MachineOperand::MO_Immediate: in getInstructionOpcodeHash()
84 case MachineOperand::MO_TargetIndex: in getInstructionOpcodeHash()
86 case MachineOperand::MO_FrameIndex: in getInstructionOpcodeHash()
99 case MachineOperand::MO_CFIIndex: in getInstructionOpcodeHash()
100 case MachineOperand::MO_IntrinsicID: in getInstructionOpcodeHash()
101 case MachineOperand::MO_Predicate: in getInstructionOpcodeHash()
112 case MachineOperand::MO_Metadata: in getInstructionOpcodeHash()
[all …]
H A DMachineStableHash.cpp65 case MachineOperand::MO_Register: in stableHashValue()
77 case MachineOperand::MO_Immediate: in stableHashValue()
79 case MachineOperand::MO_CImmediate: in stableHashValue()
94 case MachineOperand::MO_BlockAddress: in stableHashValue()
97 case MachineOperand::MO_Metadata: in stableHashValue()
112 case MachineOperand::MO_FrameIndex: in stableHashValue()
121 case MachineOperand::MO_RegisterMask: in stableHashValue()
136 case MachineOperand::MO_MCSymbol: { in stableHashValue()
141 case MachineOperand::MO_CFIIndex: in stableHashValue()
144 case MachineOperand::MO_IntrinsicID: in stableHashValue()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/ARC/
H A DARCMCInstLower.cpp39 case MachineOperand::MO_GlobalAddress: in LowerSymbolOperand()
43 case MachineOperand::MO_BlockAddress: in LowerSymbolOperand()
47 case MachineOperand::MO_ExternalSymbol: in LowerSymbolOperand()
51 case MachineOperand::MO_JumpTableIndex: in LowerSymbolOperand()
83 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 …]
/llvm-project-15.0.7/llvm/lib/Target/XCore/
H A DXCoreMCInstLower.cpp41 case MachineOperand::MO_GlobalAddress: in LowerSymbolOperand()
45 case MachineOperand::MO_BlockAddress: in LowerSymbolOperand()
49 case MachineOperand::MO_ExternalSymbol: in LowerSymbolOperand()
53 case MachineOperand::MO_JumpTableIndex: in LowerSymbolOperand()
83 case MachineOperand::MO_Register: in LowerOperand()
87 case MachineOperand::MO_Immediate: in LowerOperand()
90 case MachineOperand::MO_GlobalAddress: in LowerOperand()
91 case MachineOperand::MO_ExternalSymbol: in LowerOperand()
92 case MachineOperand::MO_JumpTableIndex: in LowerOperand()
94 case MachineOperand::MO_BlockAddress: in LowerOperand()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/Sparc/
H A DSparcMCInstLower.cpp39 case MachineOperand::MO_MachineBasicBlock: in LowerSymbolOperand()
43 case MachineOperand::MO_GlobalAddress: in LowerSymbolOperand()
47 case MachineOperand::MO_BlockAddress: in LowerSymbolOperand()
51 case MachineOperand::MO_ExternalSymbol: in LowerSymbolOperand()
55 case MachineOperand::MO_ConstantPoolIndex: in LowerSymbolOperand()
72 case MachineOperand::MO_Register: in LowerOperand()
77 case MachineOperand::MO_Immediate: in LowerOperand()
80 case MachineOperand::MO_MachineBasicBlock: in LowerOperand()
81 case MachineOperand::MO_GlobalAddress: in LowerOperand()
82 case MachineOperand::MO_BlockAddress: in LowerOperand()
[all …]
/llvm-project-15.0.7/llvm/unittests/CodeGen/
H A DMachineOperandTest.cpp28 MachineOperand MO = MachineOperand::CreateImm(50); in TEST()
50 MachineOperand MO = MachineOperand::CreateRegMask(&Dummy); in TEST()
67 MachineOperand MO = MachineOperand::CreateReg( in TEST()
92 MachineOperand MO = MachineOperand::CreateCImm(CImm); in TEST()
110 MachineOperand MO = MachineOperand::CreateImm(3); in TEST()
127 MachineOperand MO = MachineOperand::CreateCPI(0, 8); in TEST()
189 MachineOperand MO = MachineOperand::CreateJTI(3); in TEST()
205 MachineOperand MO = MachineOperand::CreateES("foo"); in TEST()
250 MachineOperand MO = MachineOperand::CreateGA(GV, 12); in TEST()
327 MachineOperand MO = MachineOperand::CreateMCSymbol(Sym); in TEST()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/MSP430/
H A DMSP430MCInstLower.cpp51 GetJumpTableSymbol(const MachineOperand &MO) const { in GetJumpTableSymbol()
118 for (const MachineOperand &MO : MI->operands()) { in Lower()
124 case MachineOperand::MO_Register: in Lower()
129 case MachineOperand::MO_Immediate: in Lower()
132 case MachineOperand::MO_MachineBasicBlock: in Lower()
136 case MachineOperand::MO_GlobalAddress: in Lower()
139 case MachineOperand::MO_ExternalSymbol: in Lower()
142 case MachineOperand::MO_JumpTableIndex: in Lower()
145 case MachineOperand::MO_ConstantPoolIndex: in Lower()
148 case MachineOperand::MO_BlockAddress: in Lower()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/Lanai/
H A DLanaiMCInstLower.cpp38 LanaiMCInstLower::GetBlockAddressSymbol(const MachineOperand &MO) const { in GetBlockAddressSymbol()
96 for (const MachineOperand &MO : MI->operands()) { in Lower()
99 case MachineOperand::MO_Register: in Lower()
105 case MachineOperand::MO_Immediate: in Lower()
108 case MachineOperand::MO_MachineBasicBlock: in Lower()
112 case MachineOperand::MO_RegisterMask: in Lower()
114 case MachineOperand::MO_GlobalAddress: in Lower()
117 case MachineOperand::MO_BlockAddress: in Lower()
120 case MachineOperand::MO_ExternalSymbol: in Lower()
123 case MachineOperand::MO_JumpTableIndex: in Lower()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/LoongArch/
H A DLoongArchMCInstLower.cpp25 static MCOperand lowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym, in lowerSymbolOperand()
48 case MachineOperand::MO_Register: in lowerLoongArchMachineOperandToMCOperand()
54 case MachineOperand::MO_RegisterMask: in lowerLoongArchMachineOperandToMCOperand()
57 case MachineOperand::MO_Immediate: in lowerLoongArchMachineOperandToMCOperand()
60 case MachineOperand::MO_ConstantPoolIndex: in lowerLoongArchMachineOperandToMCOperand()
63 case MachineOperand::MO_GlobalAddress: in lowerLoongArchMachineOperandToMCOperand()
66 case MachineOperand::MO_MachineBasicBlock: in lowerLoongArchMachineOperandToMCOperand()
69 case MachineOperand::MO_ExternalSymbol: in lowerLoongArchMachineOperandToMCOperand()
74 case MachineOperand::MO_BlockAddress: in lowerLoongArchMachineOperandToMCOperand()
75 case MachineOperand::MO_JumpTableIndex: in lowerLoongArchMachineOperandToMCOperand()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/CSKY/
H A DCSKYMCInstLower.cpp30 for (const MachineOperand &MO : MI->operands()) { in Lower()
81 case MachineOperand::MO_RegisterMask: in lowerOperand()
83 case MachineOperand::MO_Immediate: in lowerOperand()
86 case MachineOperand::MO_Register: in lowerOperand()
91 case MachineOperand::MO_MachineBasicBlock: in lowerOperand()
95 case MachineOperand::MO_GlobalAddress: in lowerOperand()
98 case MachineOperand::MO_BlockAddress: in lowerOperand()
102 case MachineOperand::MO_ExternalSymbol: in lowerOperand()
106 case MachineOperand::MO_ConstantPoolIndex: in lowerOperand()
109 case MachineOperand::MO_JumpTableIndex: in lowerOperand()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/VE/
H A DVEMCInstLower.cpp29 const MachineOperand &MO, in LowerSymbolOperand()
49 case MachineOperand::MO_Register: in LowerOperand()
54 case MachineOperand::MO_BlockAddress: in LowerOperand()
57 case MachineOperand::MO_ConstantPoolIndex: in LowerOperand()
59 case MachineOperand::MO_ExternalSymbol: in LowerOperand()
62 case MachineOperand::MO_GlobalAddress: in LowerOperand()
64 case MachineOperand::MO_Immediate: in LowerOperand()
66 case MachineOperand::MO_JumpTableIndex: in LowerOperand()
68 case MachineOperand::MO_MachineBasicBlock: in LowerOperand()
71 case MachineOperand::MO_RegisterMask: in LowerOperand()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/BPF/
H A DBPFMCInstLower.cpp27 BPFMCInstLower::GetGlobalAddressSymbol(const MachineOperand &MO) const { in GetGlobalAddressSymbol()
32 BPFMCInstLower::GetExternalSymbolSymbol(const MachineOperand &MO) const { in GetExternalSymbolSymbol()
36 MCOperand BPFMCInstLower::LowerSymbolOperand(const MachineOperand &MO, in LowerSymbolOperand()
50 for (const MachineOperand &MO : MI->operands()) { in Lower()
56 case MachineOperand::MO_Register: in Lower()
62 case MachineOperand::MO_Immediate: in Lower()
65 case MachineOperand::MO_MachineBasicBlock: in Lower()
69 case MachineOperand::MO_RegisterMask: in Lower()
71 case MachineOperand::MO_ExternalSymbol: in Lower()
74 case MachineOperand::MO_GlobalAddress: in Lower()
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A 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 …]
/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMipsMCInstLower.cpp128 case MachineOperand::MO_GlobalAddress: in LowerSymbolOperand()
133 case MachineOperand::MO_BlockAddress: in LowerSymbolOperand()
138 case MachineOperand::MO_ExternalSymbol: in LowerSymbolOperand()
143 case MachineOperand::MO_MCSymbol: in LowerSymbolOperand()
148 case MachineOperand::MO_JumpTableIndex: in LowerSymbolOperand()
183 case MachineOperand::MO_Register: in LowerOperand()
187 case MachineOperand::MO_Immediate: in LowerOperand()
190 case MachineOperand::MO_GlobalAddress: in LowerOperand()
192 case MachineOperand::MO_MCSymbol: in LowerOperand()
195 case MachineOperand::MO_BlockAddress: in LowerOperand()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/M68k/
H A DM68kMCInstLower.cpp119 case MachineOperand::MO_Register: in LowerOperand()
124 case MachineOperand::MO_Immediate: in LowerOperand()
126 case MachineOperand::MO_MachineBasicBlock: in LowerOperand()
127 case MachineOperand::MO_GlobalAddress: in LowerOperand()
128 case MachineOperand::MO_ExternalSymbol: in LowerOperand()
130 case MachineOperand::MO_MCSymbol: in LowerOperand()
132 case MachineOperand::MO_JumpTableIndex: in LowerOperand()
134 case MachineOperand::MO_ConstantPoolIndex: in LowerOperand()
136 case MachineOperand::MO_BlockAddress: in LowerOperand()
139 case MachineOperand::MO_RegisterMask: in LowerOperand()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86OptimizeLEAs.cpp83 MemOpKey(const MachineOperand *Base, const MachineOperand *Scale, in MemOpKey()
84 const MachineOperand *Index, const MachineOperand *Segment, in MemOpKey()
85 const MachineOperand *Disp) in MemOpKey()
107 const MachineOperand *Operands[4];
110 const MachineOperand *Disp;
148 case MachineOperand::MO_Immediate: in getHashValue()
157 case MachineOperand::MO_GlobalAddress: in getHashValue()
160 case MachineOperand::MO_BlockAddress: in getHashValue()
163 case MachineOperand::MO_MCSymbol: in getHashValue()
607 SmallVector<MachineOperand, 4> NewOps; in replaceDebugValue()
[all …]
H A DX86AsmPrinter.cpp122 case MachineOperand::MO_GlobalAddress: { in PrintSymbolOperand()
212 case MachineOperand::MO_Register: { in PrintOperand()
219 case MachineOperand::MO_Immediate: in PrintOperand()
238 case MachineOperand::MO_BlockAddress: { in PrintOperand()
274 case MachineOperand::MO_Register: in PrintPCRelImm()
278 case MachineOperand::MO_Immediate: in PrintPCRelImm()
281 case MachineOperand::MO_GlobalAddress: in PrintPCRelImm()
305 case MachineOperand::MO_Immediate: { in PrintLeaMemReference()
311 case MachineOperand::MO_GlobalAddress: in PrintLeaMemReference()
541 case MachineOperand::MO_Immediate: in PrintAsmOperand()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AVR/
H A DAVRMCInstLower.cpp26 MCOperand AVRMCInstLower::lowerSymbolOperand(const MachineOperand &MO, in lowerSymbolOperand()
68 for (MachineOperand const &MO : MI.operands()) { in lowerInstruction()
75 case MachineOperand::MO_Register: in lowerInstruction()
81 case MachineOperand::MO_Immediate: in lowerInstruction()
84 case MachineOperand::MO_GlobalAddress: in lowerInstruction()
87 case MachineOperand::MO_ExternalSymbol: in lowerInstruction()
91 case MachineOperand::MO_MachineBasicBlock: in lowerInstruction()
95 case MachineOperand::MO_RegisterMask: in lowerInstruction()
97 case MachineOperand::MO_BlockAddress: in lowerInstruction()
101 case MachineOperand::MO_JumpTableIndex: in lowerInstruction()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64MCInstLower.h22 class MachineOperand; variable
34 bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const;
37 MCOperand lowerSymbolOperandDarwin(const MachineOperand &MO,
39 MCOperand lowerSymbolOperandELF(const MachineOperand &MO,
41 MCOperand lowerSymbolOperandCOFF(const MachineOperand &MO,
43 MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const;
45 MCSymbol *GetGlobalAddressSymbol(const MachineOperand &MO) const;
46 MCSymbol *GetExternalSymbolSymbol(const MachineOperand &MO) const;

12345678910>>...21