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()
262 uint8_t Opcode, in prettyPrintRegisterOp() argument
270 if (Opcode == DW_OP_bregx || Opcode == DW_OP_regx || in prettyPrintRegisterOp()
271 Opcode == DW_OP_regval_type) in prettyPrintRegisterOp()
273 else if (Opcode >= DW_OP_breg0 && Opcode < DW_OP_bregx) in prettyPrintRegisterOp()
274 DwarfRegNum = Opcode - DW_OP_breg0; in prettyPrintRegisterOp()
276 DwarfRegNum = Opcode - DW_OP_reg0; in prettyPrintRegisterOp()
280 if ((Opcode >= DW_OP_breg0 && Opcode <= DW_OP_breg31) || in prettyPrintRegisterOp()
281 Opcode == DW_OP_bregx) in prettyPrintRegisterOp()
286 if (Opcode == DW_OP_regval_type) in prettyPrintRegisterOp()
308 StringRef Name = OperationEncodingString(Opcode); in print()
312 if ((Opcode >= DW_OP_breg0 && Opcode <= DW_OP_breg31) || in print()
313 (Opcode >= DW_OP_reg0 && Opcode <= DW_OP_reg31) || in print()
314 Opcode == DW_OP_bregx || Opcode == DW_OP_regx || in print()
315 Opcode == DW_OP_regval_type) in print()
316 if (prettyPrintRegisterOp(U, OS, DumpOpts, Opcode, Operands)) in print()
324 StringRef SubName = SubOperationEncodingString(Opcode, Operands[Operand]); in print()
331 if (Opcode == DW_OP_convert && Operands[Operand] == 0) in print()
354 else if (Opcode != DW_OP_entry_value && in print()
355 Opcode != DW_OP_GNU_entry_value) in print()
406 if (Op.Opcode == DW_OP_convert && Op.Operands[Operand] == 0) in verify()
448 uint8_t Opcode = Op.getCode(); in printCompactDWARFExpr() local
449 switch (Opcode) { in printCompactDWARFExpr()
502 if (Opcode >= dwarf::DW_OP_reg0 && Opcode <= dwarf::DW_OP_reg31) { in printCompactDWARFExpr()
505 uint64_t DwarfRegNum = Opcode - dwarf::DW_OP_reg0; in printCompactDWARFExpr()
511 } else if (Opcode >= dwarf::DW_OP_breg0 && in printCompactDWARFExpr()
512 Opcode <= dwarf::DW_OP_breg31) { in printCompactDWARFExpr()
513 int DwarfRegNum = Opcode - dwarf::DW_OP_breg0; in printCompactDWARFExpr()
525 OS << "<unknown op " << dwarf::OperationEncodingString(Opcode) << " (" in printCompactDWARFExpr()
526 << (int)Opcode << ")>"; in printCompactDWARFExpr()