Lines Matching defs:X86Operand
22 struct X86Operand : public MCParsedAsmOperand { struct
23 enum KindTy {
28 } Kind;
30 SMLoc StartLoc, EndLoc;
31 SMLoc OffsetOfLoc;
32 StringRef SymName;
33 void *OpDecl;
34 bool AddressOf;
36 struct TokOp {
41 struct RegOp {
66 X86Operand(KindTy K, SMLoc Start, SMLoc End) in X86Operand() argument
69 StringRef getSymName() override { return SymName; } in getSymName()
70 void *getOpDecl() override { return OpDecl; } in getOpDecl()
73 SMLoc getStartLoc() const override { return StartLoc; } in getStartLoc()
75 SMLoc getEndLoc() const override { return EndLoc; } in getEndLoc()
78 SMRange getLocRange() const { return SMRange(StartLoc, EndLoc); } in getLocRange()
80 SMLoc getOffsetOfLoc() const override { return OffsetOfLoc; } in getOffsetOfLoc()
82 void print(raw_ostream &OS) const override {} in print()
84 StringRef getToken() const { in getToken()
88 void setTokenValue(StringRef Value) { in setTokenValue()
94 unsigned getReg() const override { in getReg()
99 const MCExpr *getImm() const { in getImm()
104 const MCExpr *getMemDisp() const { in getMemDisp()
108 unsigned getMemSegReg() const { in getMemSegReg()
112 unsigned getMemBaseReg() const { in getMemBaseReg()
116 unsigned getMemIndexReg() const { in getMemIndexReg()
120 unsigned getMemScale() const { in getMemScale()
124 unsigned getMemModeSize() const { in getMemModeSize()
129 bool isToken() const override {return Kind == Token; } in isToken()
131 bool isImm() const override { return Kind == Immediate; } in isImm()
133 bool isImmSExti16i8() const { in isImmSExti16i8()
147 bool isImmSExti32i8() const { in isImmSExti32i8()
161 bool isImmSExti64i8() const { in isImmSExti64i8()
175 bool isImmSExti64i32() const { in isImmSExti64i32()
190 bool isImmUnsignedi8() const { in isImmUnsignedi8()
197 bool isOffsetOf() const override { in isOffsetOf()
201 bool needAddressOf() const override { in needAddressOf()
205 bool isMem() const override { return Kind == Memory; } in isMem()
206 bool isMemUnsized() const { in isMemUnsized()
209 bool isMem8() const { in isMem8()
212 bool isMem16() const { in isMem16()
215 bool isMem32() const { in isMem32()
218 bool isMem64() const { in isMem64()
221 bool isMem80() const { in isMem80()
224 bool isMem128() const { in isMem128()
227 bool isMem256() const { in isMem256()
230 bool isMem512() const { in isMem512()
234 bool isMemVX32() const { in isMemVX32()
238 bool isMemVY32() const { in isMemVY32()
242 bool isMemVX64() const { in isMemVX64()
246 bool isMemVY64() const { in isMemVY64()
250 bool isMemVZ32() const { in isMemVZ32()
254 bool isMemVZ64() const { in isMemVZ64()
259 bool isAbsMem() const { in isAbsMem()
263 bool isAVX512RC() const{ in isAVX512RC()
267 bool isAbsMem16() const { in isAbsMem16()
271 bool isSrcIdx() const { in isSrcIdx()
277 bool isSrcIdx8() const { in isSrcIdx8()
280 bool isSrcIdx16() const { in isSrcIdx16()
283 bool isSrcIdx32() const { in isSrcIdx32()
286 bool isSrcIdx64() const { in isSrcIdx64()
290 bool isDstIdx() const { in isDstIdx()
297 bool isDstIdx8() const { in isDstIdx8()
300 bool isDstIdx16() const { in isDstIdx16()
303 bool isDstIdx32() const { in isDstIdx32()
306 bool isDstIdx64() const { in isDstIdx64()
310 bool isMemOffs() const { in isMemOffs()
315 bool isMemOffs16_8() const { in isMemOffs16_8()
318 bool isMemOffs16_16() const { in isMemOffs16_16()
321 bool isMemOffs16_32() const { in isMemOffs16_32()
324 bool isMemOffs32_8() const { in isMemOffs32_8()
327 bool isMemOffs32_16() const { in isMemOffs32_16()
330 bool isMemOffs32_32() const { in isMemOffs32_32()
333 bool isMemOffs32_64() const { in isMemOffs32_64()
336 bool isMemOffs64_8() const { in isMemOffs64_8()
339 bool isMemOffs64_16() const { in isMemOffs64_16()
342 bool isMemOffs64_32() const { in isMemOffs64_32()
345 bool isMemOffs64_64() const { in isMemOffs64_64()
349 bool isReg() const override { return Kind == Register; } in isReg()
351 bool isGR32orGR64() const { in isGR32orGR64()
357 void addExpr(MCInst &Inst, const MCExpr *Expr) const { in addExpr()
365 void addRegOperands(MCInst &Inst, unsigned N) const { in addRegOperands()
370 static unsigned getGR32FromGR64(unsigned RegNo) { in getGR32FromGR64()
393 void addGR32orGR64Operands(MCInst &Inst, unsigned N) const { in addGR32orGR64Operands()
400 void addAVX512RCOperands(MCInst &Inst, unsigned N) const { in addAVX512RCOperands()
404 void addImmOperands(MCInst &Inst, unsigned N) const { in addImmOperands()
409 void addMemOperands(MCInst &Inst, unsigned N) const { in addMemOperands()
418 void addAbsMemOperands(MCInst &Inst, unsigned N) const { in addAbsMemOperands()
447 static std::unique_ptr<X86Operand> CreateToken(StringRef Str, SMLoc Loc) { in CreateToken() argument
459 auto Res = llvm::make_unique<X86Operand>(Register, StartLoc, EndLoc); argument
468 static std::unique_ptr<X86Operand> CreateImm(const MCExpr *Val, in CreateImm() argument
480 auto Res = llvm::make_unique<X86Operand>(Memory, StartLoc, EndLoc); argument
507 auto Res = llvm::make_unique<X86Operand>(Memory, StartLoc, EndLoc); argument