Lines Matching full:op
22 typedef DWARFExpression::Operation Op;
23 typedef Op::Description Desc;
28 Descriptions[DW_OP_addr] = Desc(Op::Dwarf2, Op::SizeAddr);
29 Descriptions[DW_OP_deref] = Desc(Op::Dwarf2);
30 Descriptions[DW_OP_const1u] = Desc(Op::Dwarf2, Op::Size1);
31 Descriptions[DW_OP_const1s] = Desc(Op::Dwarf2, Op::SignedSize1);
32 Descriptions[DW_OP_const2u] = Desc(Op::Dwarf2, Op::Size2);
33 Descriptions[DW_OP_const2s] = Desc(Op::Dwarf2, Op::SignedSize2);
34 Descriptions[DW_OP_const4u] = Desc(Op::Dwarf2, Op::Size4);
35 Descriptions[DW_OP_const4s] = Desc(Op::Dwarf2, Op::SignedSize4);
36 Descriptions[DW_OP_const8u] = Desc(Op::Dwarf2, Op::Size8);
37 Descriptions[DW_OP_const8s] = Desc(Op::Dwarf2, Op::SignedSize8);
38 Descriptions[DW_OP_constu] = Desc(Op::Dwarf2, Op::SizeLEB);
39 Descriptions[DW_OP_consts] = Desc(Op::Dwarf2, Op::SignedSizeLEB);
40 Descriptions[DW_OP_dup] = Desc(Op::Dwarf2);
41 Descriptions[DW_OP_drop] = Desc(Op::Dwarf2);
42 Descriptions[DW_OP_over] = Desc(Op::Dwarf2);
43 Descriptions[DW_OP_pick] = Desc(Op::Dwarf2, Op::Size1);
44 Descriptions[DW_OP_swap] = Desc(Op::Dwarf2);
45 Descriptions[DW_OP_rot] = Desc(Op::Dwarf2);
46 Descriptions[DW_OP_xderef] = Desc(Op::Dwarf2);
47 Descriptions[DW_OP_abs] = Desc(Op::Dwarf2);
48 Descriptions[DW_OP_and] = Desc(Op::Dwarf2);
49 Descriptions[DW_OP_div] = Desc(Op::Dwarf2);
50 Descriptions[DW_OP_minus] = Desc(Op::Dwarf2);
51 Descriptions[DW_OP_mod] = Desc(Op::Dwarf2);
52 Descriptions[DW_OP_mul] = Desc(Op::Dwarf2);
53 Descriptions[DW_OP_neg] = Desc(Op::Dwarf2);
54 Descriptions[DW_OP_not] = Desc(Op::Dwarf2);
55 Descriptions[DW_OP_or] = Desc(Op::Dwarf2);
56 Descriptions[DW_OP_plus] = Desc(Op::Dwarf2);
57 Descriptions[DW_OP_plus_uconst] = Desc(Op::Dwarf2, Op::SizeLEB);
58 Descriptions[DW_OP_shl] = Desc(Op::Dwarf2);
59 Descriptions[DW_OP_shr] = Desc(Op::Dwarf2);
60 Descriptions[DW_OP_shra] = Desc(Op::Dwarf2);
61 Descriptions[DW_OP_xor] = Desc(Op::Dwarf2);
62 Descriptions[DW_OP_bra] = Desc(Op::Dwarf2, Op::SignedSize2);
63 Descriptions[DW_OP_eq] = Desc(Op::Dwarf2);
64 Descriptions[DW_OP_ge] = Desc(Op::Dwarf2);
65 Descriptions[DW_OP_gt] = Desc(Op::Dwarf2);
66 Descriptions[DW_OP_le] = Desc(Op::Dwarf2);
67 Descriptions[DW_OP_lt] = Desc(Op::Dwarf2);
68 Descriptions[DW_OP_ne] = Desc(Op::Dwarf2);
69 Descriptions[DW_OP_skip] = Desc(Op::Dwarf2, Op::SignedSize2);
71 Descriptions[LA] = Desc(Op::Dwarf2);
73 Descriptions[LA] = Desc(Op::Dwarf2);
75 Descriptions[LA] = Desc(Op::Dwarf2, Op::SignedSizeLEB);
76 Descriptions[DW_OP_regx] = Desc(Op::Dwarf2, Op::SizeLEB);
77 Descriptions[DW_OP_fbreg] = Desc(Op::Dwarf2, Op::SignedSizeLEB);
78 Descriptions[DW_OP_bregx] = Desc(Op::Dwarf2, Op::SizeLEB, Op::SignedSizeLEB);
79 Descriptions[DW_OP_piece] = Desc(Op::Dwarf2, Op::SizeLEB);
80 Descriptions[DW_OP_deref_size] = Desc(Op::Dwarf2, Op::Size1);
81 Descriptions[DW_OP_xderef_size] = Desc(Op::Dwarf2, Op::Size1);
82 Descriptions[DW_OP_nop] = Desc(Op::Dwarf2);
83 Descriptions[DW_OP_push_object_address] = Desc(Op::Dwarf3);
84 Descriptions[DW_OP_call2] = Desc(Op::Dwarf3, Op::Size2);
85 Descriptions[DW_OP_call4] = Desc(Op::Dwarf3, Op::Size4);
86 Descriptions[DW_OP_call_ref] = Desc(Op::Dwarf3, Op::SizeRefAddr);
87 Descriptions[DW_OP_form_tls_address] = Desc(Op::Dwarf3);
88 Descriptions[DW_OP_call_frame_cfa] = Desc(Op::Dwarf3);
89 Descriptions[DW_OP_bit_piece] = Desc(Op::Dwarf3, Op::SizeLEB, Op::SizeLEB);
91 Desc(Op::Dwarf4, Op::SizeLEB, Op::SizeBlock);
92 Descriptions[DW_OP_stack_value] = Desc(Op::Dwarf4);
94 Desc(Op::Dwarf5, Op::SizeRefAddr, Op::SignedSizeLEB);
95 Descriptions[DW_OP_addrx] = Desc(Op::Dwarf5, Op::SizeLEB);
96 Descriptions[DW_OP_constx] = Desc(Op::Dwarf5, Op::SizeLEB);
97 Descriptions[DW_OP_entry_value] = Desc(Op::Dwarf5, Op::SizeLEB);
98 Descriptions[DW_OP_convert] = Desc(Op::Dwarf5, Op::BaseTypeRef);
100 Desc(Op::Dwarf5, Op::SizeLEB, Op::BaseTypeRef);
102 Desc(Op::Dwarf4, Op::SizeLEB, Op::WasmLocationArg);
103 Descriptions[DW_OP_GNU_push_tls_address] = Desc(Op::Dwarf3);
104 Descriptions[DW_OP_GNU_addr_index] = Desc(Op::Dwarf4, Op::SizeLEB);
105 Descriptions[DW_OP_GNU_const_index] = Desc(Op::Dwarf4, Op::SizeLEB);
106 Descriptions[DW_OP_GNU_entry_value] = Desc(Op::Dwarf4, Op::SizeLEB);
110 Descriptions[DW_OP_LLVM_user] = Desc(Op::Dwarf5, Op::SizeSubOpLEB);
133 Descriptions[DW_OP_LLVM_nop] = Desc(Op::Dwarf5, Op::SizeSubOpLEB);
153 Operands.resize(Desc.Op.size());
154 OperandEndOffsets.resize(Desc.Op.size());
155 for (unsigned Operand = 0; Operand < Desc.Op.size(); ++Operand) {
156 unsigned Size = Desc.Op[Operand];
166 assert(Desc.Op[Operand] == Operation::SizeSubOpLEB &&
230 llvm_unreachable("Unknown DWARFExpression Op size");
297 if (!Desc.Op.size() || Desc.Op[0] != Operation::SizeSubOpLEB)
321 for (unsigned Operand = 0; Operand < Desc.Op.size(); ++Operand) {
322 unsigned Size = Desc.Op[Operand];
371 for (auto &Op : *this) {
373 if (!Op.print(OS, DumpOpts, this, U)) {
374 uint64_t FailOffset = Op.getEndOffset();
380 if (Op.getCode() == DW_OP_entry_value ||
381 Op.getCode() == DW_OP_GNU_entry_value) {
383 EntryValExprSize = Op.getRawOperand(0);
384 EntryValStartOffset = Op.getEndOffset();
389 EntryValExprSize -= Op.getEndOffset() - EntryValStartOffset;
394 if (Op.getEndOffset() < Data.getData().size())
399 bool DWARFExpression::Operation::verify(const Operation &Op, DWARFUnit *U) {
400 for (unsigned Operand = 0; Operand < Op.Desc.Op.size(); ++Operand) {
401 unsigned Size = Op.Desc.Op[Operand];
408 if (Op.Opcode == DW_OP_convert && Op.Operands[Operand] == 0)
410 auto Die = U->getDIEForOffset(U->getOffset() + Op.Operands[Operand]);
420 for (auto &Op : *this)
421 if (!Operation::verify(Op, U))
449 const DWARFExpression::Operation &Op = *I;
450 uint8_t Opcode = Op.getCode();
455 uint64_t DwarfRegNum = Op.getRawOperand(0);
464 int DwarfRegNum = Op.getRawOperand(0);
465 int64_t Offset = Op.getRawOperand(1);
479 uint64_t SubExprLength = Op.getRawOperand(0);
500 assert(Op.getSubCode() && *Op.getSubCode() == dwarf::DW_OP_LLVM_nop);
516 int64_t Offset = Op.getRawOperand(0);
527 OS << "<unknown op " << dwarf::OperationEncodingString(Opcode) << " ("