Lines Matching refs:Opcode
112 static Desc getDescImpl(ArrayRef<Desc> Descriptions, unsigned Opcode) { in getDescImpl() argument
114 if (Opcode >= Descriptions.size()) in getDescImpl()
116 return Descriptions[Opcode]; in getDescImpl()
119 static Desc getOpDesc(unsigned Opcode) { in getOpDesc() argument
121 return getDescImpl(Descriptions, Opcode); in getOpDesc()
135 static Desc getSubOpDesc(unsigned Opcode, unsigned SubOpcode) { in getSubOpDesc() argument
136 assert(Opcode == DW_OP_LLVM_user); in getSubOpDesc()
145 Opcode = Data.getU8(&Offset); in extract()
147 Desc = getOpDesc(Opcode); in extract()
161 Desc = getSubOpDesc(Opcode, Operands[Operand]); in extract()
259 uint8_t Opcode, in prettyPrintRegisterOp() argument
267 if (Opcode == DW_OP_bregx || Opcode == DW_OP_regx || in prettyPrintRegisterOp()
268 Opcode == DW_OP_regval_type) in prettyPrintRegisterOp()
270 else if (Opcode >= DW_OP_breg0 && Opcode < DW_OP_bregx) in prettyPrintRegisterOp()
271 DwarfRegNum = Opcode - DW_OP_breg0; in prettyPrintRegisterOp()
273 DwarfRegNum = Opcode - DW_OP_reg0; in prettyPrintRegisterOp()
277 if ((Opcode >= DW_OP_breg0 && Opcode <= DW_OP_breg31) || in prettyPrintRegisterOp()
278 Opcode == DW_OP_bregx) in prettyPrintRegisterOp()
283 if (Opcode == DW_OP_regval_type) in prettyPrintRegisterOp()
305 StringRef Name = OperationEncodingString(Opcode); in print()
309 if ((Opcode >= DW_OP_breg0 && Opcode <= DW_OP_breg31) || in print()
310 (Opcode >= DW_OP_reg0 && Opcode <= DW_OP_reg31) || in print()
311 Opcode == DW_OP_bregx || Opcode == DW_OP_regx || in print()
312 Opcode == DW_OP_regval_type) in print()
313 if (prettyPrintRegisterOp(U, OS, DumpOpts, Opcode, Operands)) in print()
321 StringRef SubName = SubOperationEncodingString(Opcode, Operands[Operand]); in print()
328 if (Opcode == DW_OP_convert && Operands[Operand] == 0) in print()
351 else if (Opcode != DW_OP_entry_value && in print()
352 Opcode != DW_OP_GNU_entry_value) in print()
403 if (Op.Opcode == DW_OP_convert && Op.Operands[Operand] == 0) in verify()
445 uint8_t Opcode = Op.getCode(); in printCompactDWARFExpr() local
446 switch (Opcode) { in printCompactDWARFExpr()
499 if (Opcode >= dwarf::DW_OP_reg0 && Opcode <= dwarf::DW_OP_reg31) { in printCompactDWARFExpr()
502 uint64_t DwarfRegNum = Opcode - dwarf::DW_OP_reg0; in printCompactDWARFExpr()
508 } else if (Opcode >= dwarf::DW_OP_breg0 && in printCompactDWARFExpr()
509 Opcode <= dwarf::DW_OP_breg31) { in printCompactDWARFExpr()
510 int DwarfRegNum = Opcode - dwarf::DW_OP_breg0; in printCompactDWARFExpr()
522 OS << "<unknown op " << dwarf::OperationEncodingString(Opcode) << " (" in printCompactDWARFExpr()
523 << (int)Opcode << ")>"; in printCompactDWARFExpr()