Home
last modified time | relevance | path

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

12345678910>>...17

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DMachineOperand.h50 class MachineOperand {
182 MachineOperand *Prev; // Access list for register. See MRI.
183 MachineOperand *Next;
200 explicit MachineOperand(MachineOperandType K) in MachineOperand() function
203 static_assert(alignof(MachineOperand) <= alignof(int64_t), in MachineOperand()
207 static_assert(sizeof(MachineOperand) <= in MachineOperand()
257 static void printTargetFlags(raw_ostream& OS, const MachineOperand &Op);
713 bool isIdenticalTo(const MachineOperand &Other) const;
721 friend hash_code hash_value(const MachineOperand &MO);
761 static MachineOperand CreateImm(int64_t Val) { in CreateImm()
[all …]
DMachineInstrBuilder.h92 MI->addOperand(*MF, MachineOperand::CreateReg(RegNo,
123 MI->addOperand(*MF, MachineOperand::CreateImm(Val)); in addImm()
128 MI->addOperand(*MF, MachineOperand::CreateCImm(Val)); in addCImm()
133 MI->addOperand(*MF, MachineOperand::CreateFPImm(Val)); in addFPImm()
139 MI->addOperand(*MF, MachineOperand::CreateMBB(MBB, TargetFlags));
144 MI->addOperand(*MF, MachineOperand::CreateFI(Idx)); in addFrameIndex()
151 MI->addOperand(*MF, MachineOperand::CreateCPI(Idx, Offset, TargetFlags));
157 MI->addOperand(*MF, MachineOperand::CreateTargetIndex(Idx, Offset,
164 MI->addOperand(*MF, MachineOperand::CreateJTI(Idx, TargetFlags));
171 MI->addOperand(*MF, MachineOperand::CreateGA(GV, Offset, TargetFlags));
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DMachineOperand.cpp41 static const MachineFunction *getMFIfAvailable(const MachineOperand &MO) { in getMFIfAvailable()
48 static MachineFunction *getMFIfAvailable(MachineOperand &MO) { in getMFIfAvailable()
50 getMFIfAvailable(const_cast<const MachineOperand &>(MO))); in getMFIfAvailable()
53 void MachineOperand::setReg(Register Reg) { in setReg()
75 void MachineOperand::substVirtReg(Register Reg, unsigned SubIdx, in substVirtReg()
85 void MachineOperand::substPhysReg(MCRegister Reg, const TargetRegisterInfo &TRI) { in substPhysReg()
99 void MachineOperand::setIsDef(bool Val) { in setIsDef()
116 bool MachineOperand::isRenamable() const { in isRenamable()
134 void MachineOperand::setIsRenamable(bool Val) { in setIsRenamable()
143 void MachineOperand::removeRegFromUses() { in removeRegFromUses()
[all …]
DMIRVRegNamerUtils.cpp54 auto GetHashableMO = [this](const MachineOperand &MO) -> unsigned { in getInstructionOpcodeHash()
56 case MachineOperand::MO_CImmediate: in getInstructionOpcodeHash()
59 case MachineOperand::MO_FPImmediate: in getInstructionOpcodeHash()
63 case MachineOperand::MO_Register: in getInstructionOpcodeHash()
67 case MachineOperand::MO_Immediate: in getInstructionOpcodeHash()
69 case MachineOperand::MO_TargetIndex: in getInstructionOpcodeHash()
71 case MachineOperand::MO_FrameIndex: in getInstructionOpcodeHash()
82 case MachineOperand::MO_ConstantPoolIndex: in getInstructionOpcodeHash()
83 case MachineOperand::MO_JumpTableIndex: in getInstructionOpcodeHash()
84 case MachineOperand::MO_CFIIndex: in getInstructionOpcodeHash()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARC/
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 …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/XCore/
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 …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Sparc/
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 …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Lanai/
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()
97 const MachineOperand &MO = MI->getOperand(I); in Lower()
101 case MachineOperand::MO_Register: in Lower()
107 case MachineOperand::MO_Immediate: in Lower()
110 case MachineOperand::MO_MachineBasicBlock: in Lower()
[all …]
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()
190 bool InstrUsesReg(const MbbIterator &Instr, const MachineOperand *Reg) { in InstrUsesReg()
241 MachineOperand Dest = MemInstr->getOperand(0); in insertMergedInstruction()
242 MachineOperand Base = MemInstr->getOperand(1); in insertMergedInstruction()
243 MachineOperand MemOffset = MemInstr->getOperand(2); in insertMergedInstruction()
244 MachineOperand AluOffset = AluInstr->getOperand(2); in insertMergedInstruction()
286 const MachineOperand &Base, in isSuitableAluInstr()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/MSP430/
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()
119 const MachineOperand &MO = MI->getOperand(i); in Lower()
126 case MachineOperand::MO_Register: in Lower()
131 case MachineOperand::MO_Immediate: in Lower()
134 case MachineOperand::MO_MachineBasicBlock: in Lower()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUInstructionSelector.h39 class MachineOperand; variable
80 MachineOperand getSubOperand64(MachineOperand &MO,
126 selectVCSRC(MachineOperand &Root) const;
129 selectVSRC0(MachineOperand &Root) const;
132 selectVOP3Mods0(MachineOperand &Root) const;
134 selectVOP3OMods(MachineOperand &Root) const;
136 selectVOP3Mods(MachineOperand &Root) const;
138 selectVOP3Mods_nnan(MachineOperand &Root) const;
141 selectVOP3OpSelMods0(MachineOperand &Root) const;
143 selectVOP3OpSelMods(MachineOperand &Root) const;
[all …]
DSIPeepholeSDWA.cpp81 Optional<int64_t> foldToImm(const MachineOperand &Op) const;
109 MachineOperand *Target; // Operand that would be used in converted instruction
110 MachineOperand *Replaced; // Operand that would be replace by Target
113 SDWAOperand(MachineOperand *TargetOp, MachineOperand *ReplacedOp) in SDWAOperand()
124 MachineOperand *getTargetOperand() const { return Target; } in getTargetOperand()
125 MachineOperand *getReplacedOperand() const { return Replaced; } in getReplacedOperand()
148 SDWASrcOperand(MachineOperand *TargetOp, MachineOperand *ReplacedOp, in SDWASrcOperand()
163 const MachineOperand *SrcOp) const;
177 SDWADstOperand(MachineOperand *TargetOp, MachineOperand *ReplacedOp, in SDWADstOperand()
194 MachineOperand *Preserve;
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86AsmPrinter.cpp111 void X86AsmPrinter::PrintSymbolOperand(const MachineOperand &MO, in PrintSymbolOperand()
115 case MachineOperand::MO_ConstantPoolIndex: in PrintSymbolOperand()
119 case MachineOperand::MO_GlobalAddress: { in PrintSymbolOperand()
204 const MachineOperand &MO = MI->getOperand(OpNo); in PrintOperand()
208 case MachineOperand::MO_Register: { in PrintOperand()
215 case MachineOperand::MO_Immediate: in PrintOperand()
221 case MachineOperand::MO_ConstantPoolIndex: in PrintOperand()
222 case MachineOperand::MO_GlobalAddress: { in PrintOperand()
234 case MachineOperand::MO_BlockAddress: { in PrintOperand()
247 const MachineOperand &MO = MI->getOperand(OpNo); in PrintModifiedOperand()
[all …]
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 …]
DX86FixupLEAs.cpp43 void seekLEAFixup(MachineOperand &p, MachineBasicBlock::iterator &I,
81 RegUsageState usesRegister(MachineOperand &p, MachineBasicBlock::iterator I);
86 MachineBasicBlock::iterator searchBackwards(MachineOperand &p,
132 const MachineOperand &Src = MI.getOperand(1); in INITIALIZE_PASS()
133 const MachineOperand &Dest = MI.getOperand(0); in INITIALIZE_PASS()
239 FixupLEAPass::usesRegister(MachineOperand &p, MachineBasicBlock::iterator I) { in usesRegister()
244 MachineOperand &opnd = MI.getOperand(i); in usesRegister()
272 FixupLEAPass::searchBackwards(MachineOperand &p, MachineBasicBlock::iterator &I, in searchBackwards()
304 static inline bool hasInefficientLEABaseReg(const MachineOperand &Base, in hasInefficientLEABaseReg()
305 const MachineOperand &Index) { in hasInefficientLEABaseReg()
[all …]
DX86InstrBuilder.h65 void getFullAddress(SmallVectorImpl<MachineOperand> &MO) { in getFullAddress()
69 MO.push_back(MachineOperand::CreateReg(Base.Reg, false, false, false, in getFullAddress()
73 MO.push_back(MachineOperand::CreateFI(Base.FrameIndex)); in getFullAddress()
76 MO.push_back(MachineOperand::CreateImm(Scale)); in getFullAddress()
77 MO.push_back(MachineOperand::CreateReg(IndexReg, false, false, false, false, in getFullAddress()
81 MO.push_back(MachineOperand::CreateGA(GV, Disp, GVOpFlags)); in getFullAddress()
83 MO.push_back(MachineOperand::CreateImm(Disp)); in getFullAddress()
85 MO.push_back(MachineOperand::CreateReg(0, false, false, false, false, false, in getFullAddress()
95 const MachineOperand &Op0 = MI->getOperand(Operand); in getAddressFromInstr()
104 const MachineOperand &Op1 = MI->getOperand(Operand + 1); in getAddressFromInstr()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/
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 …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/BPF/
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()
51 const MachineOperand &MO = MI->getOperand(i); in Lower()
58 case MachineOperand::MO_Register: in Lower()
64 case MachineOperand::MO_Immediate: in Lower()
67 case MachineOperand::MO_MachineBasicBlock: in Lower()
71 case MachineOperand::MO_RegisterMask: in Lower()
73 case MachineOperand::MO_ExternalSymbol: in Lower()
76 case MachineOperand::MO_GlobalAddress: in Lower()
DBPFAsmPrinter.cpp74 const MachineOperand &MO = MI->getOperand(OpNum); in printOperand()
77 case MachineOperand::MO_Register: in printOperand()
81 case MachineOperand::MO_Immediate: in printOperand()
85 case MachineOperand::MO_MachineBasicBlock: in printOperand()
89 case MachineOperand::MO_GlobalAddress: in printOperand()
93 case MachineOperand::MO_BlockAddress: { in printOperand()
99 case MachineOperand::MO_ExternalSymbol: in printOperand()
103 case MachineOperand::MO_JumpTableIndex: in printOperand()
104 case MachineOperand::MO_ConstantPoolIndex: in printOperand()
123 const MachineOperand &BaseMO = MI->getOperand(OpNum); in PrintAsmMemoryOperand()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/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 …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AVR/
DAVRMCInstLower.cpp26 MCOperand AVRMCInstLower::lowerSymbolOperand(const MachineOperand &MO, in lowerSymbolOperand()
65 for (MachineOperand const &MO : MI.operands()) { in lowerInstruction()
72 case MachineOperand::MO_Register: in lowerInstruction()
78 case MachineOperand::MO_Immediate: in lowerInstruction()
81 case MachineOperand::MO_GlobalAddress: in lowerInstruction()
84 case MachineOperand::MO_ExternalSymbol: in lowerInstruction()
88 case MachineOperand::MO_MachineBasicBlock: in lowerInstruction()
92 case MachineOperand::MO_RegisterMask: in lowerInstruction()
94 case MachineOperand::MO_BlockAddress: in lowerInstruction()
98 case MachineOperand::MO_JumpTableIndex: in lowerInstruction()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64MCInstLower.h24 class MachineOperand; variable
37 bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const;
40 MCOperand lowerSymbolOperandDarwin(const MachineOperand &MO,
42 MCOperand lowerSymbolOperandELF(const MachineOperand &MO,
44 MCOperand lowerSymbolOperandCOFF(const MachineOperand &MO,
46 MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const;
48 MCSymbol *GetGlobalAddressSymbol(const MachineOperand &MO) const;
49 MCSymbol *GetExternalSymbolSymbol(const MachineOperand &MO) const;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/
DRISCVMCInstLower.cpp28 static MCOperand lowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym, in lowerSymbolOperand()
89 bool llvm::LowerRISCVMachineOperandToMCOperand(const MachineOperand &MO, in LowerRISCVMachineOperandToMCOperand()
95 case MachineOperand::MO_Register: in LowerRISCVMachineOperandToMCOperand()
101 case MachineOperand::MO_RegisterMask: in LowerRISCVMachineOperandToMCOperand()
104 case MachineOperand::MO_Immediate: in LowerRISCVMachineOperandToMCOperand()
107 case MachineOperand::MO_MachineBasicBlock: in LowerRISCVMachineOperandToMCOperand()
110 case MachineOperand::MO_GlobalAddress: in LowerRISCVMachineOperandToMCOperand()
113 case MachineOperand::MO_BlockAddress: in LowerRISCVMachineOperandToMCOperand()
117 case MachineOperand::MO_ExternalSymbol: in LowerRISCVMachineOperandToMCOperand()
121 case MachineOperand::MO_ConstantPoolIndex: in LowerRISCVMachineOperandToMCOperand()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
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 …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonPeephole.cpp137 MachineOperand &Dst = MI.getOperand(0); in runOnMachineFunction()
138 MachineOperand &Src = MI.getOperand(1); in runOnMachineFunction()
155 MachineOperand &Dst = MI.getOperand(0); in runOnMachineFunction()
156 MachineOperand &Src1 = MI.getOperand(1); in runOnMachineFunction()
157 MachineOperand &Src2 = MI.getOperand(2); in runOnMachineFunction()
172 MachineOperand &Dst = MI.getOperand(0); in runOnMachineFunction()
173 MachineOperand &Src1 = MI.getOperand(1); in runOnMachineFunction()
174 MachineOperand &Src2 = MI.getOperand(2); in runOnMachineFunction()
186 MachineOperand &Dst = MI.getOperand(0); in runOnMachineFunction()
187 MachineOperand &Src = MI.getOperand(1); in runOnMachineFunction()
[all …]

12345678910>>...17