Lines Matching refs:instr
501 std::ostream& operator<<(std::ostream& os, const Instruction& instr) {
506 if (instr.parallel_moves()[i] != nullptr) {
507 os << *instr.parallel_moves()[i];
513 if (instr.OutputCount() == 1) {
514 os << *instr.OutputAt(0) << " = ";
515 } else if (instr.OutputCount() > 1) {
516 os << "(" << *instr.OutputAt(0);
517 for (size_t i = 1; i < instr.OutputCount(); i++) {
518 os << ", " << *instr.OutputAt(i);
523 os << ArchOpcodeField::decode(instr.opcode());
524 AddressingMode am = AddressingModeField::decode(instr.opcode());
526 os << " : " << AddressingModeField::decode(instr.opcode());
528 FlagsMode fm = FlagsModeField::decode(instr.opcode());
530 os << " && " << fm << " if " << FlagsConditionField::decode(instr.opcode());
532 for (size_t i = 0; i < instr.InputCount(); i++) {
533 os << " " << *instr.InputAt(i);
905 int InstructionSequence::AddInstruction(Instruction* instr) {
908 instr->set_block(current_block_);
909 instructions_.push_back(instr);
910 if (instr->NeedsReferenceMap()) {
911 DCHECK_NULL(instr->reference_map());
914 instr->set_reference_map(reference_map);
989 RpoNumber InstructionSequence::InputRpo(Instruction* instr, size_t index) {
990 InstructionOperand* operand = instr->InputAt(index);
998 bool InstructionSequence::GetSourcePosition(const Instruction* instr,
1000 auto it = source_positions_.find(instr);
1006 void InstructionSequence::SetSourcePosition(const Instruction* instr,
1008 source_positions_.insert(std::make_pair(instr, value));