Lines Matching refs:Opcode
114 static Desc getDescImpl(ArrayRef<Desc> Descriptions, unsigned Opcode) {
116 if (Opcode >= Descriptions.size())
118 return Descriptions[Opcode];
121 static Desc getOpDesc(unsigned Opcode) {
123 return getDescImpl(Descriptions, Opcode);
137 static Desc getSubOpDesc(unsigned Opcode, unsigned SubOpcode) {
138 assert(Opcode == DW_OP_LLVM_user);
147 Opcode = Data.getU8(&Offset);
149 Desc = getOpDesc(Opcode);
163 Desc = getSubOpDesc(Opcode, Operands[Operand]);
264 uint8_t Opcode,
272 if (Opcode == DW_OP_bregx || Opcode == DW_OP_regx ||
273 Opcode == DW_OP_regval_type)
275 else if (Opcode >= DW_OP_breg0 && Opcode < DW_OP_bregx)
276 DwarfRegNum = Opcode - DW_OP_breg0;
278 DwarfRegNum = Opcode - DW_OP_reg0;
282 if ((Opcode >= DW_OP_breg0 && Opcode <= DW_OP_breg31) ||
283 Opcode == DW_OP_bregx)
288 if (Opcode == DW_OP_regval_type)
310 StringRef Name = OperationEncodingString(Opcode);
314 if ((Opcode >= DW_OP_breg0 && Opcode <= DW_OP_breg31) ||
315 (Opcode >= DW_OP_reg0 && Opcode <= DW_OP_reg31) ||
316 Opcode == DW_OP_bregx || Opcode == DW_OP_regx ||
317 Opcode == DW_OP_regval_type)
318 if (prettyPrintRegisterOp(U, OS, DumpOpts, Opcode, Operands))
326 StringRef SubName = SubOperationEncodingString(Opcode, Operands[Operand]);
333 if (Opcode == DW_OP_convert && Operands[Operand] == 0)
356 else if (Opcode != DW_OP_entry_value &&
357 Opcode != DW_OP_GNU_entry_value)
408 if (Op.Opcode == DW_OP_convert && Op.Operands[Operand] == 0)
450 uint8_t Opcode = Op.getCode();
451 switch (Opcode) {
504 if (Opcode >= dwarf::DW_OP_reg0 && Opcode <= dwarf::DW_OP_reg31) {
507 uint64_t DwarfRegNum = Opcode - dwarf::DW_OP_reg0;
513 } else if (Opcode >= dwarf::DW_OP_breg0 &&
514 Opcode <= dwarf::DW_OP_breg31) {
515 int DwarfRegNum = Opcode - dwarf::DW_OP_breg0;
527 OS << "<unknown op " << dwarf::OperationEncodingString(Opcode) << " ("
528 << (int)Opcode << ")>";