Lines Matching defs:PPCOperand

318 struct PPCOperand : public MCParsedAsmOperand {  struct
319 enum KindTy {
325 } Kind;
327 SMLoc StartLoc, EndLoc;
328 bool IsPPC64;
330 struct TokOp {
335 struct ImmOp {
339 struct ExprOp {
344 struct TLSRegOp {
348 union {
355 PPCOperand(KindTy K) : MCParsedAsmOperand(), Kind(K) {} in PPCOperand() function
357 PPCOperand(const PPCOperand &o) : MCParsedAsmOperand() { in PPCOperand() function
381 void operator delete(void *p) { ::operator delete(p); } in operator delete()
384 SMLoc getStartLoc() const override { return StartLoc; } in getStartLoc()
387 SMLoc getEndLoc() const override { return EndLoc; } in getEndLoc()
390 bool isPPC64() const { return IsPPC64; } in isPPC64()
392 int64_t getImm() const { in getImm()
396 int64_t getImmS16Context() const { in getImmS16Context()
403 int64_t getImmU16Context() const { in getImmU16Context()
409 const MCExpr *getExpr() const { in getExpr()
414 int64_t getExprCRVal() const { in getExprCRVal()
419 const MCExpr *getTLSReg() const { in getTLSReg()
424 unsigned getReg() const override { in getReg()
429 unsigned getVSReg() const { in getVSReg()
434 unsigned getCCReg() const { in getCCReg()
439 unsigned getCRBit() const { in getCRBit()
444 unsigned getCRBitMask() const { in getCRBitMask()
449 bool isToken() const override { return Kind == Token; } in isToken()
450 bool isImm() const override { in isImm()
453 bool isU1Imm() const { return Kind == Immediate && isUInt<1>(getImm()); } in isU1Imm()
454 bool isU2Imm() const { return Kind == Immediate && isUInt<2>(getImm()); } in isU2Imm()
455 bool isU3Imm() const { return Kind == Immediate && isUInt<3>(getImm()); } in isU3Imm()
456 bool isU4Imm() const { return Kind == Immediate && isUInt<4>(getImm()); } in isU4Imm()
457 bool isU5Imm() const { return Kind == Immediate && isUInt<5>(getImm()); } in isU5Imm()
458 bool isS5Imm() const { return Kind == Immediate && isInt<5>(getImm()); } in isS5Imm()
459 bool isU6Imm() const { return Kind == Immediate && isUInt<6>(getImm()); } in isU6Imm()
460 bool isU6ImmX2() const { return Kind == Immediate && in isU6ImmX2()
463 bool isU7Imm() const { return Kind == Immediate && isUInt<7>(getImm()); } in isU7Imm()
464 bool isU7ImmX4() const { return Kind == Immediate && in isU7ImmX4()
467 bool isU8Imm() const { return Kind == Immediate && isUInt<8>(getImm()); } in isU8Imm()
468 bool isU8ImmX8() const { return Kind == Immediate && in isU8ImmX8()
472 bool isU10Imm() const { return Kind == Immediate && isUInt<10>(getImm()); } in isU10Imm()
473 bool isU12Imm() const { return Kind == Immediate && isUInt<12>(getImm()); } in isU12Imm()
474 bool isU16Imm() const { in isU16Imm()
485 bool isS16Imm() const { in isS16Imm()
496 bool isS16ImmX4() const { return Kind == Expression || in isS16ImmX4()
499 bool isS16ImmX16() const { return Kind == Expression || in isS16ImmX16()
502 bool isS17Imm() const { in isS17Imm()
513 bool isTLSReg() const { return Kind == TLSRegister; } in isTLSReg()
514 bool isDirectBr() const { in isDirectBr()
531 bool isCondBr() const { return Kind == Expression || in isCondBr()
534 bool isRegNumber() const { return Kind == Immediate && isUInt<5>(getImm()); } in isRegNumber()
535 bool isVSRegNumber() const { in isVSRegNumber()
538 bool isCCRegNumber() const { return (Kind == Expression in isCCRegNumber()
542 bool isCRBitNumber() const { return (Kind == Expression in isCRBitNumber()
546 bool isCRBitMask() const { return Kind == Immediate && isUInt<8>(getImm()) && in isCRBitMask()
548 bool isMem() const override { return false; } in isMem()
549 bool isReg() const override { return false; } in isReg()
551 void addRegOperands(MCInst &Inst, unsigned N) const { in addRegOperands()
555 void addRegGPRCOperands(MCInst &Inst, unsigned N) const { in addRegGPRCOperands()
560 void addRegGPRCNoR0Operands(MCInst &Inst, unsigned N) const { in addRegGPRCNoR0Operands()
565 void addRegG8RCOperands(MCInst &Inst, unsigned N) const { in addRegG8RCOperands()
570 void addRegG8RCNoX0Operands(MCInst &Inst, unsigned N) const { in addRegG8RCNoX0Operands()
575 void addRegGxRCOperands(MCInst &Inst, unsigned N) const { in addRegGxRCOperands()
582 void addRegGxRCNoR0Operands(MCInst &Inst, unsigned N) const { in addRegGxRCNoR0Operands()
589 void addRegF4RCOperands(MCInst &Inst, unsigned N) const { in addRegF4RCOperands()
594 void addRegF8RCOperands(MCInst &Inst, unsigned N) const { in addRegF8RCOperands()
599 void addRegVRRCOperands(MCInst &Inst, unsigned N) const { in addRegVRRCOperands()
604 void addRegVSRCOperands(MCInst &Inst, unsigned N) const { in addRegVSRCOperands()
609 void addRegVSFRCOperands(MCInst &Inst, unsigned N) const { in addRegVSFRCOperands()
614 void addRegVSSRCOperands(MCInst &Inst, unsigned N) const { in addRegVSSRCOperands()
619 void addRegQFRCOperands(MCInst &Inst, unsigned N) const { in addRegQFRCOperands()
624 void addRegQSRCOperands(MCInst &Inst, unsigned N) const { in addRegQSRCOperands()
629 void addRegQBRCOperands(MCInst &Inst, unsigned N) const { in addRegQBRCOperands()
634 void addRegCRBITRCOperands(MCInst &Inst, unsigned N) const { in addRegCRBITRCOperands()
639 void addRegCRRCOperands(MCInst &Inst, unsigned N) const { in addRegCRRCOperands()
644 void addCRBitMaskOperands(MCInst &Inst, unsigned N) const { in addCRBitMaskOperands()
649 void addImmOperands(MCInst &Inst, unsigned N) const { in addImmOperands()
657 void addS16ImmOperands(MCInst &Inst, unsigned N) const { in addS16ImmOperands()
672 void addU16ImmOperands(MCInst &Inst, unsigned N) const { in addU16ImmOperands()
687 void addBranchTargetOperands(MCInst &Inst, unsigned N) const { in addBranchTargetOperands()
695 void addTLSRegOperands(MCInst &Inst, unsigned N) const { in addTLSRegOperands()
700 StringRef getToken() const { in getToken()
707 static std::unique_ptr<PPCOperand> CreateToken(StringRef Str, SMLoc S, in CreateToken()
719 CreateTokenWithStringCopy(StringRef Str, SMLoc S, bool IsPPC64) { in CreateTokenWithStringCopy()
736 static std::unique_ptr<PPCOperand> CreateImm(int64_t Val, SMLoc S, SMLoc E, in CreateImm()
746 static std::unique_ptr<PPCOperand> CreateExpr(const MCExpr *Val, SMLoc S, in CreateExpr()
758 CreateTLSReg(const MCSymbolRefExpr *Sym, SMLoc S, SMLoc E, bool IsPPC64) { in CreateTLSReg()
768 CreateContextImm(int64_t Val, SMLoc S, SMLoc E, bool IsPPC64) { in CreateContextImm()
778 CreateFromMCExpr(const MCExpr *Val, SMLoc S, SMLoc E, bool IsPPC64) { in CreateFromMCExpr()