Home
last modified time | relevance | path

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

12345678910>>...22

/openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/
H A DMachineOperand.h48 class MachineOperand {
184 MachineOperand *Prev; // Access list for register. See MRI.
185 MachineOperand *Next;
207 explicit MachineOperand(MachineOperandType K) in MachineOperand() function
210 static_assert(alignof(MachineOperand) <= alignof(int64_t), in MachineOperand()
214 static_assert(sizeof(MachineOperand) <= in MachineOperand()
264 static void printTargetFlags(raw_ostream& OS, const MachineOperand &Op);
755 bool isIdenticalTo(const MachineOperand &Other) const;
763 friend hash_code hash_value(const MachineOperand &MO);
812 static MachineOperand CreateImm(int64_t Val) { in CreateImm()
[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;
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstructionSelector.h40 class MachineOperand; variable
83 MachineOperand getSubOperand64(MachineOperand &MO,
150 selectVOP3ModsImpl(MachineOperand &Root, bool AllowAbs = true,
154 MachineOperand Root, MachineInstr *InsertPt,
158 selectVCSRC(MachineOperand &Root) const;
161 selectVSRC0(MachineOperand &Root) const;
164 selectVOP3Mods0(MachineOperand &Root) const;
166 selectVOP3BMods0(MachineOperand &Root) const;
168 selectVOP3OMods(MachineOperand &Root) const;
170 selectVOP3Mods(MachineOperand &Root) const;
[all …]
H A DSIPeepholeSDWA.cpp56 std::optional<int64_t> foldToImm(const MachineOperand &Op) const;
84 MachineOperand *Target; // Operand that would be used in converted instruction
85 MachineOperand *Replaced; // Operand that would be replace by Target
88 SDWAOperand(MachineOperand *TargetOp, MachineOperand *ReplacedOp) in SDWAOperand()
99 MachineOperand *getTargetOperand() const { return Target; } in getTargetOperand()
100 MachineOperand *getReplacedOperand() const { return Replaced; } in getReplacedOperand()
123 SDWASrcOperand(MachineOperand *TargetOp, MachineOperand *ReplacedOp, in SDWASrcOperand()
138 const MachineOperand *SrcOp) const;
152 SDWADstOperand(MachineOperand *TargetOp, MachineOperand *ReplacedOp, in SDWADstOperand()
169 MachineOperand *Preserve;
[all …]
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DMachineOperand.cpp43 static const MachineFunction *getMFIfAvailable(const MachineOperand &MO) { in getMFIfAvailable()
51 static MachineFunction *getMFIfAvailable(MachineOperand &MO) { in getMFIfAvailable()
53 getMFIfAvailable(const_cast<const MachineOperand &>(MO))); in getMFIfAvailable()
56 void MachineOperand::setReg(Register Reg) { in setReg()
78 void MachineOperand::substVirtReg(Register Reg, unsigned SubIdx, in substVirtReg()
88 void MachineOperand::substPhysReg(MCRegister Reg, const TargetRegisterInfo &TRI) { in substPhysReg()
102 void MachineOperand::setIsDef(bool Val) { in setIsDef()
119 bool MachineOperand::isRenamable() const { in isRenamable()
137 void MachineOperand::setIsRenamable(bool Val) { in setIsRenamable()
146 void MachineOperand::removeRegFromUses() { in removeRegFromUses()
[all …]
H A DMIRVRegNamerUtils.cpp70 auto GetHashableMO = [this](const MachineOperand &MO) -> unsigned { in getInstructionOpcodeHash()
72 case MachineOperand::MO_CImmediate: in getInstructionOpcodeHash()
75 case MachineOperand::MO_FPImmediate: in getInstructionOpcodeHash()
79 case MachineOperand::MO_Register: in getInstructionOpcodeHash()
83 case MachineOperand::MO_Immediate: in getInstructionOpcodeHash()
85 case MachineOperand::MO_TargetIndex: in getInstructionOpcodeHash()
87 case MachineOperand::MO_FrameIndex: in getInstructionOpcodeHash()
88 case MachineOperand::MO_ConstantPoolIndex: in getInstructionOpcodeHash()
89 case MachineOperand::MO_JumpTableIndex: in getInstructionOpcodeHash()
100 case MachineOperand::MO_CFIIndex: in getInstructionOpcodeHash()
[all …]
H A DMachineStableHash.cpp63 stable_hash llvm::stableHashValue(const MachineOperand &MO) { in stableHashValue()
65 case MachineOperand::MO_Register: in stableHashValue()
77 case MachineOperand::MO_Immediate: in stableHashValue()
79 case MachineOperand::MO_CImmediate: in stableHashValue()
80 case MachineOperand::MO_FPImmediate: { in stableHashValue()
88 case MachineOperand::MO_MachineBasicBlock: in stableHashValue()
91 case MachineOperand::MO_ConstantPoolIndex: in stableHashValue()
94 case MachineOperand::MO_BlockAddress: in stableHashValue()
97 case MachineOperand::MO_Metadata: in stableHashValue()
100 case MachineOperand::MO_GlobalAddress: in stableHashValue()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/XCore/
H A DXCoreMCInstLower.cpp31 MCOperand XCoreMCInstLower::LowerSymbolOperand(const MachineOperand &MO, in LowerSymbolOperand()
38 case MachineOperand::MO_MachineBasicBlock: in LowerSymbolOperand()
41 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()
56 case MachineOperand::MO_ConstantPoolIndex: in LowerSymbolOperand()
77 MCOperand XCoreMCInstLower::LowerOperand(const MachineOperand &MO, in LowerOperand()
83 case MachineOperand::MO_Register: in LowerOperand()
87 case MachineOperand::MO_Immediate: in LowerOperand()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/ARC/
H A DARCMCInstLower.cpp29 MCOperand ARCMCInstLower::LowerSymbolOperand(const MachineOperand &MO, in LowerSymbolOperand()
36 case MachineOperand::MO_MachineBasicBlock: in LowerSymbolOperand()
39 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()
54 case MachineOperand::MO_ConstantPoolIndex: in LowerSymbolOperand()
76 MCOperand ARCMCInstLower::LowerOperand(const MachineOperand &MO, in LowerOperand()
83 case MachineOperand::MO_Register: in LowerOperand()
88 case MachineOperand::MO_Immediate: in LowerOperand()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/Sparc/
H A DSparcMCInstLower.cpp30 const MachineOperand &MO, in LowerSymbolOperand()
39 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()
68 const MachineOperand &MO, in LowerOperand()
72 case MachineOperand::MO_Register: in LowerOperand()
77 case MachineOperand::MO_Immediate: in LowerOperand()
80 case MachineOperand::MO_MachineBasicBlock: in LowerOperand()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/MSP430/
H A DMSP430MCInstLower.cpp31 GetGlobalAddressSymbol(const MachineOperand &MO) const { in GetGlobalAddressSymbol()
41 GetExternalSymbolSymbol(const MachineOperand &MO) const { in GetExternalSymbolSymbol()
51 GetJumpTableSymbol(const MachineOperand &MO) const { in GetJumpTableSymbol()
68 GetConstantPoolIndexSymbol(const MachineOperand &MO) const { in GetConstantPoolIndexSymbol()
85 GetBlockAddressSymbol(const MachineOperand &MO) const { in GetBlockAddressSymbol()
95 LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const { in LowerSymbolOperand()
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()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/Lanai/
H A DLanaiMCInstLower.cpp33 LanaiMCInstLower::GetGlobalAddressSymbol(const MachineOperand &MO) const { in GetGlobalAddressSymbol()
38 LanaiMCInstLower::GetBlockAddressSymbol(const MachineOperand &MO) const { in GetBlockAddressSymbol()
43 LanaiMCInstLower::GetExternalSymbolSymbol(const MachineOperand &MO) const { in GetExternalSymbolSymbol()
47 MCSymbol *LanaiMCInstLower::GetJumpTableSymbol(const MachineOperand &MO) const { in GetJumpTableSymbol()
57 LanaiMCInstLower::GetConstantPoolIndexSymbol(const MachineOperand &MO) const { in GetConstantPoolIndexSymbol()
66 MCOperand LanaiMCInstLower::LowerSymbolOperand(const MachineOperand &MO, in LowerSymbolOperand()
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()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/CSKY/
H A DCSKYMCInstLower.cpp30 for (const MachineOperand &MO : MI->operands()) { in Lower()
37 MCOperand CSKYMCInstLower::lowerSymbolOperand(const MachineOperand &MO, in lowerSymbolOperand()
76 bool CSKYMCInstLower::lowerOperand(const MachineOperand &MO, in lowerOperand()
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()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/VE/
H A DVEMCInstLower.cpp29 const MachineOperand &MO, in LowerSymbolOperand()
43 static MCOperand LowerOperand(const MachineInstr *MI, const MachineOperand &MO, in LowerOperand()
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()
[all …]
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/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 …]
/openbsd-src/gnu/llvm/llvm/lib/Target/Mips/
H A DMipsMCInstLower.cpp35 MCOperand MipsMCInstLower::LowerSymbolOperand(const MachineOperand &MO, in LowerSymbolOperand()
124 case MachineOperand::MO_MachineBasicBlock: in LowerSymbolOperand()
128 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()
152 case MachineOperand::MO_ConstantPoolIndex: in LowerSymbolOperand()
177 MCOperand MipsMCInstLower::LowerOperand(const MachineOperand &MO, in LowerOperand()
183 case MachineOperand::MO_Register: in LowerOperand()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/M68k/
H A DM68kMCInstLower.cpp39 M68kMCInstLower::GetSymbolFromOperand(const MachineOperand &MO) const { in GetSymbolFromOperand()
73 MCOperand M68kMCInstLower::LowerSymbolOperand(const MachineOperand &MO, in LowerSymbolOperand()
115 const MachineOperand &MO) const { in LowerOperand()
119 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()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86OptimizeLEAs.cpp67 static inline bool isIdenticalOp(const MachineOperand &MO1,
68 const MachineOperand &MO2);
72 static bool isSimilarDispOp(const MachineOperand &MO1,
73 const MachineOperand &MO2);
83 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;
119 using PtrInfo = DenseMapInfo<const MachineOperand *>;
[all …]
H A DX86AsmPrinter.cpp200 void X86AsmPrinter::PrintSymbolOperand(const MachineOperand &MO, in PrintSymbolOperand()
204 case MachineOperand::MO_ConstantPoolIndex: in PrintSymbolOperand()
208 case MachineOperand::MO_GlobalAddress: { in PrintSymbolOperand()
294 const MachineOperand &MO = MI->getOperand(OpNo); in PrintOperand()
298 case MachineOperand::MO_Register: { in PrintOperand()
305 case MachineOperand::MO_Immediate: in PrintOperand()
311 case MachineOperand::MO_ConstantPoolIndex: in PrintOperand()
312 case MachineOperand::MO_GlobalAddress: { in PrintOperand()
324 case MachineOperand::MO_BlockAddress: { in PrintOperand()
337 const MachineOperand &MO = MI->getOperand(OpNo); in PrintModifiedOperand()
[all …]
/openbsd-src/gnu/llvm/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;
/openbsd-src/gnu/llvm/llvm/lib/Target/LoongArch/
H A DLoongArchMCInstLower.cpp27 static MCOperand lowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym, in lowerSymbolOperand()
89 bool llvm::lowerLoongArchMachineOperandToMCOperand(const MachineOperand &MO, in lowerLoongArchMachineOperandToMCOperand()
96 case MachineOperand::MO_Register: in lowerLoongArchMachineOperandToMCOperand()
102 case MachineOperand::MO_RegisterMask: in lowerLoongArchMachineOperandToMCOperand()
105 case MachineOperand::MO_Immediate: in lowerLoongArchMachineOperandToMCOperand()
108 case MachineOperand::MO_ConstantPoolIndex: in lowerLoongArchMachineOperandToMCOperand()
111 case MachineOperand::MO_GlobalAddress: in lowerLoongArchMachineOperandToMCOperand()
114 case MachineOperand::MO_MachineBasicBlock: in lowerLoongArchMachineOperandToMCOperand()
117 case MachineOperand::MO_ExternalSymbol: in lowerLoongArchMachineOperandToMCOperand()
121 case MachineOperand::MO_BlockAddress: in lowerLoongArchMachineOperandToMCOperand()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/AVR/
H A DAVRMCInstLower.cpp26 AVRMCInstLower::lowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym, in lowerSymbolOperand()
73 for (MachineOperand const &MO : MI.operands()) { in lowerInstruction()
80 case MachineOperand::MO_Register: in lowerInstruction()
86 case MachineOperand::MO_Immediate: in lowerInstruction()
89 case MachineOperand::MO_GlobalAddress: in lowerInstruction()
93 case MachineOperand::MO_ExternalSymbol: in lowerInstruction()
97 case MachineOperand::MO_MachineBasicBlock: in lowerInstruction()
101 case MachineOperand::MO_RegisterMask: in lowerInstruction()
103 case MachineOperand::MO_BlockAddress: in lowerInstruction()
107 case MachineOperand::MO_JumpTableIndex: in lowerInstruction()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/ARM/
H A DARMMCInstLower.cpp38 MCOperand ARMAsmPrinter::GetSymbolRef(const MachineOperand &MO, in GetSymbolRef()
72 bool ARMAsmPrinter::lowerOperand(const MachineOperand &MO, in lowerOperand()
76 case MachineOperand::MO_Register: in lowerOperand()
83 case MachineOperand::MO_Immediate: in lowerOperand()
86 case MachineOperand::MO_MachineBasicBlock: in lowerOperand()
90 case MachineOperand::MO_GlobalAddress: in lowerOperand()
94 case MachineOperand::MO_ExternalSymbol: in lowerOperand()
98 case MachineOperand::MO_JumpTableIndex: in lowerOperand()
101 case MachineOperand::MO_ConstantPoolIndex: in lowerOperand()
106 case MachineOperand::MO_BlockAddress: in lowerOperand()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/
H A DRISCVMCInstLower.cpp29 static MCOperand lowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym, in lowerSymbolOperand()
90 bool llvm::lowerRISCVMachineOperandToMCOperand(const MachineOperand &MO, in lowerRISCVMachineOperandToMCOperand()
96 case MachineOperand::MO_Register: in lowerRISCVMachineOperandToMCOperand()
102 case MachineOperand::MO_RegisterMask: in lowerRISCVMachineOperandToMCOperand()
105 case MachineOperand::MO_Immediate: in lowerRISCVMachineOperandToMCOperand()
108 case MachineOperand::MO_MachineBasicBlock: in lowerRISCVMachineOperandToMCOperand()
111 case MachineOperand::MO_GlobalAddress: in lowerRISCVMachineOperandToMCOperand()
114 case MachineOperand::MO_BlockAddress: in lowerRISCVMachineOperandToMCOperand()
118 case MachineOperand::MO_ExternalSymbol: in lowerRISCVMachineOperandToMCOperand()
122 case MachineOperand::MO_ConstantPoolIndex: in lowerRISCVMachineOperandToMCOperand()
[all …]

12345678910>>...22