Home | History | Annotate | Download | only in DebugInfo

Lines Matching defs:Opcode

64   /// opcode and an optional sequence of operands.
67 Instruction(uint8_t Opcode)
68 : Opcode(Opcode)
71 uint8_t Opcode;
77 /// Convenience methods to add a new instruction with the given opcode and
79 void addInstruction(uint8_t Opcode) {
80 Instructions.push_back(Instruction(Opcode));
83 void addInstruction(uint8_t Opcode, uint64_t Operand1) {
84 Instructions.push_back(Instruction(Opcode));
88 void addInstruction(uint8_t Opcode, uint64_t Operand1, uint64_t Operand2) {
89 Instructions.push_back(Instruction(Opcode));
103 uint8_t Opcode = Data.getU8(Offset);
104 // Some instructions have a primary opcode encoded in the top bits.
105 uint8_t Primary = Opcode & DWARF_CFI_PRIMARY_OPCODE_MASK;
108 // If it's a primary opcode, the first operand is encoded in the bottom
109 // bits of the opcode itself.
110 uint64_t Op1 = Opcode & DWARF_CFI_PRIMARY_OPERAND_MASK;
112 default: llvm_unreachable("Impossible primary CFI opcode");
122 // Extended opcode - its value is Opcode itself.
123 switch (Opcode) {
124 default: llvm_unreachable("Invalid extended CFI opcode");
129 addInstruction(Opcode);
133 addInstruction(Opcode, Data.getAddress(Offset));
137 addInstruction(Opcode, Data.getU8(Offset));
141 addInstruction(Opcode, Data.getU16(Offset));
145 addInstruction(Opcode, Data.getU32(Offset));
153 addInstruction(Opcode, Data.getULEB128(Offset));
157 addInstruction(Opcode, Data.getSLEB128(Offset));
164 addInstruction(Opcode, Data.getULEB128(Offset),
171 addInstruction(Opcode, Data.getULEB128(Offset),
191 uint8_t Opcode = I->Opcode;
192 if (Opcode & DWARF_CFI_PRIMARY_OPCODE_MASK)
193 Opcode &= DWARF_CFI_PRIMARY_OPCODE_MASK;
194 OS << " " << CallFrameString(Opcode) << ":\n";