• Home
  • Raw
  • Download

Lines Matching refs:lir

59 void Mir2Lir::NopLIR(LIR* lir) {  in NopLIR()  argument
60 lir->flags.is_nop = true; in NopLIR()
63 void Mir2Lir::SetMemRefType(LIR* lir, bool is_load, int mem_type) { in SetMemRefType() argument
66 DCHECK(GetTargetInstFlags(lir->opcode) & (IS_LOAD | IS_STORE)); in SetMemRefType()
68 mask_ptr = &lir->use_mask; in SetMemRefType()
70 mask_ptr = &lir->def_mask; in SetMemRefType()
88 DCHECK(!(GetTargetInstFlags(lir->opcode) & IS_STORE)); in SetMemRefType()
99 void Mir2Lir::AnnotateDalvikRegAccess(LIR* lir, int reg_id, bool is_load, in AnnotateDalvikRegAccess() argument
101 SetMemRefType(lir, is_load, kDalvikReg); in AnnotateDalvikRegAccess()
107 lir->alias_info = ENCODE_ALIAS_INFO(reg_id, is64bit); in AnnotateDalvikRegAccess()
116 void Mir2Lir::DumpLIRInsn(LIR* lir, unsigned char* base_addr) { in DumpLIRInsn() argument
117 int offset = lir->offset; in DumpLIRInsn()
118 int dest = lir->operands[0]; in DumpLIRInsn()
122 switch (lir->opcode) { in DumpLIRInsn()
137 if (lir->operands[0] == 0) { in DumpLIRInsn()
138 lir->operands[0] = reinterpret_cast<uintptr_t>("No instruction string"); in DumpLIRInsn()
141 << lir->dalvik_offset << " @ " << reinterpret_cast<char*>(lir->operands[0]); in DumpLIRInsn()
155 LOG(INFO) << "L" << reinterpret_cast<void*>(lir) << ":"; in DumpLIRInsn()
158 LOG(INFO) << "LT" << reinterpret_cast<void*>(lir) << ":"; in DumpLIRInsn()
161 LOG(INFO) << "IR" << reinterpret_cast<void*>(lir) << ":"; in DumpLIRInsn()
164 LOG(INFO) << "LS" << reinterpret_cast<void*>(lir) << ":"; in DumpLIRInsn()
167 LOG(INFO) << "LsafepointPC_0x" << std::hex << lir->offset << "_" << lir->dalvik_offset << ":"; in DumpLIRInsn()
170 LOG(INFO) << "LexportedPC_0x" << std::hex << lir->offset << "_" << lir->dalvik_offset << ":"; in DumpLIRInsn()
173 LOG(INFO) << "LC" << reinterpret_cast<void*>(lir) << ": Case target 0x" in DumpLIRInsn()
174 << std::hex << lir->operands[0] << "|" << std::dec << in DumpLIRInsn()
175 lir->operands[0]; in DumpLIRInsn()
178 if (lir->flags.is_nop && !dump_nop) { in DumpLIRInsn()
181 std::string op_name(BuildInsnString(GetTargetInstName(lir->opcode), in DumpLIRInsn()
182 lir, base_addr)); in DumpLIRInsn()
183 std::string op_operands(BuildInsnString(GetTargetInstFmt(lir->opcode), in DumpLIRInsn()
184 lir, base_addr)); in DumpLIRInsn()
188 lir->flags.is_nop ? "(nop)" : ""); in DumpLIRInsn()
193 if (lir->use_mask && (!lir->flags.is_nop || dump_nop)) { in DumpLIRInsn()
194 DUMP_RESOURCE_MASK(DumpResourceMask(lir, lir->use_mask, "use")); in DumpLIRInsn()
196 if (lir->def_mask && (!lir->flags.is_nop || dump_nop)) { in DumpLIRInsn()
197 DUMP_RESOURCE_MASK(DumpResourceMask(lir, lir->def_mask, "def")); in DumpLIRInsn()
466 static int AssignLiteralOffsetCommon(LIR* lir, int offset) { in AssignLiteralOffsetCommon() argument
467 for (; lir != NULL; lir = lir->next) { in AssignLiteralOffsetCommon()
468 lir->offset = offset; in AssignLiteralOffsetCommon()
696 LIR* lir; in AssignInsnOffsets() local
699 for (lir = first_lir_insn_; lir != NULL; lir = NEXT_LIR(lir)) { in AssignInsnOffsets()
700 lir->offset = offset; in AssignInsnOffsets()
701 if (lir->opcode >= 0) { in AssignInsnOffsets()
702 if (!lir->flags.is_nop) { in AssignInsnOffsets()
703 offset += lir->flags.size; in AssignInsnOffsets()
705 } else if (lir->opcode == kPseudoPseudoAlign4) { in AssignInsnOffsets()
708 lir->operands[0] = 1; in AssignInsnOffsets()
710 lir->operands[0] = 0; in AssignInsnOffsets()
1052 void Mir2Lir::AppendLIR(LIR* lir) { in AppendLIR() argument
1055 last_lir_insn_ = first_lir_insn_ = lir; in AppendLIR()
1056 lir->prev = lir->next = NULL; in AppendLIR()
1058 last_lir_insn_->next = lir; in AppendLIR()
1059 lir->prev = last_lir_insn_; in AppendLIR()
1060 lir->next = NULL; in AppendLIR()
1061 last_lir_insn_ = lir; in AppendLIR()