/art/compiler/dex/quick/ |
resource_mask.h | 34 class ResourceMask { 36 constexpr ResourceMask(uint64_t mask1, uint64_t mask2) 58 constexpr ResourceMask() 63 ResourceMask(const ResourceMask& other) = default; 64 ResourceMask& operator=(const ResourceMask& other) = default; 67 bool operator==(const ResourceMask& other) { 71 static constexpr ResourceMask RawMask(uint64_t mask1, uint64_t mask2) { 72 return ResourceMask(mask1, mask2) [all...] |
resource_mask.cc | 27 constexpr ResourceMask kNoRegMasks[] = { 32 ResourceMask::Bit(ResourceMask::kFPStatus), 33 ResourceMask::Bit(ResourceMask::kCCode), 35 // The 127-bit is the same as CLZ(masks_[1]) for a ResourceMask with only that bit set. 36 COMPILE_ASSERT(kNoRegMasks[127-ResourceMask::kHeapRef].Equals( 38 COMPILE_ASSERT(kNoRegMasks[127-ResourceMask::kLiteral].Equals( 40 COMPILE_ASSERT(kNoRegMasks[127-ResourceMask::kDalvikReg].Equals( 42 COMPILE_ASSERT(kNoRegMasks[127-ResourceMask::kFPStatus].Equals [all...] |
local_optimizations.cc | 177 ResourceMask this_mem_mask = kEncodeMem.Intersection(this_lir->u.m.use_mask->Union( 191 ResourceMask stop_def_reg_mask = this_lir->u.m.def_mask->Without(kEncodeMem); 192 ResourceMask stop_use_reg_mask = this_lir->u.m.use_mask->Without(kEncodeMem); 195 ResourceMask uses_pc = GetPCUseDefEncoding(); 202 ResourceMask alias_reg_list_mask = kEncodeNone; 218 ResourceMask check_mem_mask = kEncodeMem.Intersection(check_lir->u.m.use_mask->Union( 220 ResourceMask alias_mem_mask = this_mem_mask.Intersection(check_mem_mask); 291 ResourceMask alias_reg_mask = kEncodeNone; 301 ResourceMask stop_search_mask = stop_def_reg_mask.Union(stop_use_reg_mask); 346 ResourceMask stop_use_all_mask = *this_lir->u.m.use_mask [all...] |
mir_to_lir-inl.h | 143 inline void Mir2Lir::SetupRegMask(ResourceMask* mask, int reg) { 152 inline void Mir2Lir::ClearRegMask(ResourceMask* mask, int reg) { 184 ResourceMask use_mask; 185 ResourceMask def_mask; 193 DCHECK(mem_ref_type_ != ResourceMask::kMustNotAlias); 197 DCHECK(mem_ref_type_ != ResourceMask::kLiteral); 244 def_mask.SetBit(ResourceMask::kCCode); 248 use_mask.SetBit(ResourceMask::kCCode);
|
gen_loadstore.cc | 68 ScopedMemRefType mem_ref_type(this, ResourceMask::kDalvikReg); 94 ScopedMemRefType mem_ref_type(this, ResourceMask::kDalvikReg); 128 ScopedMemRefType mem_ref_type(this, ResourceMask::kDalvikReg); 216 ScopedMemRefType mem_ref_type(this, ResourceMask::kDalvikReg); 307 ScopedMemRefType mem_ref_type(this, ResourceMask::kDalvikReg); 335 ScopedMemRefType mem_ref_type(this, ResourceMask::kDalvikReg); 371 ScopedMemRefType mem_ref_type(this, ResourceMask::kDalvikReg);
|
mir_to_lir.h | 160 const ResourceMask* use_mask; // Resource mask for use. 161 const ResourceMask* def_mask; // Resource mask for def. 341 RegisterInfo(RegStorage r, const ResourceMask& mask = kEncodeAll); 392 const ResourceMask& DefUseMask() { return def_use_mask_; } 393 void SetDefUseMask(const ResourceMask& def_use_mask) { def_use_mask_ = def_use_mask; } 431 ResourceMask def_use_mask_; // Resources for this element. 556 ScopedMemRefType(Mir2Lir* m2l, ResourceMask::ResourceBit new_mem_ref_type) 568 ResourceMask::ResourceBit old_mem_ref_type_; 669 void SetupRegMask(ResourceMask* mask, int reg); 670 void ClearRegMask(ResourceMask* mask, int reg) [all...] |
codegen_util.cc | 135 const ResourceMask** mask_ptr; 136 ResourceMask mask; 147 case ResourceMask::kLiteral: 149 mask.SetBit(ResourceMask::kLiteral); 151 case ResourceMask::kDalvikReg: 152 mask.SetBit(ResourceMask::kDalvikReg); 154 case ResourceMask::kHeapRef: 155 mask.SetBit(ResourceMask::kHeapRef); 157 case ResourceMask::kMustNotAlias: 160 mask.SetBit(ResourceMask::kMustNotAlias) [all...] |
gen_invoke.cc | 403 ScopedMemRefType mem_ref_type(this, ResourceMask::kDalvikReg); [all...] |
ralloc_util.cc | 41 Mir2Lir::RegisterInfo::RegisterInfo(RegStorage r, const ResourceMask& mask) 762 ScopedMemRefType mem_ref_type(this, ResourceMask::kDalvikReg); 770 ScopedMemRefType mem_ref_type(this, ResourceMask::kDalvikReg); 782 ScopedMemRefType mem_ref_type(this, ResourceMask::kDalvikReg); [all...] |
/art/compiler/dex/quick/mips/ |
target_mips.cc | 130 ResourceMask MipsMir2Lir::GetRegMaskCommon(const RegStorage& reg) const { 134 ? ResourceMask::TwoBits((reg.GetRegNum() & ~1) + kMipsFPReg0) 136 ? ResourceMask::TwoBits(reg.GetRegNum() * 2 + kMipsFPReg0) 138 : ResourceMask::Bit(reg.IsSingle() ? reg.GetRegNum() + kMipsFPReg0 : reg.GetRegNum()); 141 ResourceMask MipsMir2Lir::GetPCUseDefEncoding() const { 142 return ResourceMask::Bit(kMipsRegPC); 147 ResourceMask* use_mask, ResourceMask* def_mask) { 287 void MipsMir2Lir::DumpResourceMask(LIR *mips_lir, const ResourceMask& mask, const char *prefix) { 304 if (mask.HasBit(ResourceMask::kCCode)) [all...] |
codegen_mips.h | 60 ResourceMask GetRegMaskCommon(const RegStorage& reg) const OVERRIDE; 72 void DumpResourceMask(LIR* lir, const ResourceMask& mask, const char* prefix) OVERRIDE; 74 ResourceMask* use_mask, ResourceMask* def_mask) OVERRIDE; 78 ResourceMask GetPCUseDefEncoding() const OVERRIDE;
|
utility_mips.cc | 540 if (mem_ref_type_ == ResourceMask::kDalvikReg) { 642 if (mem_ref_type_ == ResourceMask::kDalvikReg) {
|
/art/compiler/dex/quick/arm/ |
target_arm.cc | 138 ResourceMask ArmMir2Lir::GetRegMaskCommon(const RegStorage& reg) const { 142 constexpr ResourceMask ArmMir2Lir::GetRegMaskArm(RegStorage reg) { 145 ? ResourceMask::TwoBits(reg.GetRegNum() * 2 + kArmFPReg0) 146 : ResourceMask::Bit(reg.IsSingle() ? reg.GetRegNum() + kArmFPReg0 : reg.GetRegNum()); 149 constexpr ResourceMask ArmMir2Lir::EncodeArmRegList(int reg_list) { 150 return ResourceMask::RawMask(static_cast<uint64_t >(reg_list), 0u); 153 constexpr ResourceMask ArmMir2Lir::EncodeArmRegFpcsList(int reg_list) { 154 return ResourceMask::RawMask(static_cast<uint64_t >(reg_list) << kArmFPReg16, 0u); 157 ResourceMask ArmMir2Lir::GetPCUseDefEncoding() const { 158 return ResourceMask::Bit(kArmRegPC) [all...] |
codegen_arm.h | 57 ResourceMask GetRegMaskCommon(const RegStorage& reg) const OVERRIDE; 72 void DumpResourceMask(LIR* lir, const ResourceMask& mask, const char* prefix) OVERRIDE; 74 ResourceMask* use_mask, ResourceMask* def_mask) OVERRIDE; 78 ResourceMask GetPCUseDefEncoding() const OVERRIDE; 214 static constexpr ResourceMask GetRegMaskArm(RegStorage reg); 215 static constexpr ResourceMask EncodeArmRegList(int reg_list); 216 static constexpr ResourceMask EncodeArmRegFpcsList(int reg_list);
|
utility_arm.cc | 91 ScopedMemRefType mem_ref_type(this, ResourceMask::kLiteral); 674 ScopedMemRefType mem_ref_type(this, ResourceMask::kLiteral); 958 if (mem_ref_type_ == ResourceMask::kDalvikReg) { [all...] |
int_arm.cc | 216 DCHECK(last_lir_insn_->u.m.def_mask->HasBit(ResourceMask::kCCode)); 252 DCHECK(last_lir_insn_->u.m.def_mask->HasBit(ResourceMask::kCCode)); 258 DCHECK(last_lir_insn_->u.m.def_mask->HasBit(ResourceMask::kCCode)); 918 DCHECK(last_lir_insn_->u.m.def_mask->HasBit(ResourceMask::kCCode)); [all...] |
call_arm.cc | 89 DCHECK(last_lir_insn_->u.m.def_mask->HasBit(ResourceMask::kCCode));
|
/art/compiler/dex/quick/arm64/ |
target_arm64.cc | 144 ResourceMask Arm64Mir2Lir::GetRegMaskCommon(const RegStorage& reg) const { 153 return ResourceMask::Bit( 158 ResourceMask Arm64Mir2Lir::GetPCUseDefEncoding() const { 167 ResourceMask* use_mask, ResourceMask* def_mask) { 520 void Arm64Mir2Lir::DumpResourceMask(LIR* arm_lir, const ResourceMask& mask, const char* prefix) { 537 if (mask.HasBit(ResourceMask::kCCode)) { 540 if (mask.HasBit(ResourceMask::kFPStatus)) { 545 if (arm_lir && (mask.HasBit(ResourceMask::kDalvikReg))) { 550 if (mask.HasBit(ResourceMask::kLiteral)) [all...] |
codegen_arm64.h | 116 ResourceMask GetRegMaskCommon(const RegStorage& reg) const OVERRIDE; 125 void DumpResourceMask(LIR* lir, const ResourceMask& mask, const char* prefix) OVERRIDE; 127 ResourceMask* use_mask, ResourceMask* def_mask) OVERRIDE; 131 ResourceMask GetPCUseDefEncoding() const OVERRIDE;
|
utility_arm64.cc | 127 ScopedMemRefType mem_ref_type(this, ResourceMask::kLiteral); 153 ScopedMemRefType mem_ref_type(this, ResourceMask::kLiteral); 530 ScopedMemRefType mem_ref_type(this, ResourceMask::kLiteral); [all...] |
/art/compiler/dex/quick/x86/ |
codegen_x86.h | 119 ResourceMask GetRegMaskCommon(const RegStorage& reg) const OVERRIDE; 131 void DumpResourceMask(LIR* lir, const ResourceMask& mask, const char* prefix) OVERRIDE; 133 ResourceMask* use_mask, ResourceMask* def_mask) OVERRIDE; 137 ResourceMask GetPCUseDefEncoding() const OVERRIDE; [all...] |
target_x86.cc | 242 ResourceMask X86Mir2Lir::GetRegMaskCommon(const RegStorage& reg) const { 244 return ResourceMask::Bit( 249 ResourceMask X86Mir2Lir::GetPCUseDefEncoding() const { 254 ResourceMask* use_mask, ResourceMask* def_mask) { 397 void X86Mir2Lir::DumpResourceMask(LIR *x86LIR, const ResourceMask& mask, const char *prefix) { 414 if (mask.HasBit(ResourceMask::kCCode)) { 418 if (x86LIR && (mask.HasBit(ResourceMask::kDalvikReg))) { 423 if (mask.HasBit(ResourceMask::kLiteral)) { 427 if (mask.HasBit(ResourceMask::kHeapRef)) [all...] |
utility_x86.cc | 385 if (mem_ref_type_ == ResourceMask::kDalvikReg) { 413 if (mem_ref_type_ == ResourceMask::kDalvikReg) { 439 if (mem_ref_type_ == ResourceMask::kDalvikReg) { 590 ScopedMemRefType mem_ref_type(this, ResourceMask::kLiteral); 705 if (mem_ref_type_ == ResourceMask::kDalvikReg) { 840 if (mem_ref_type_ == ResourceMask::kDalvikReg) { [all...] |
fp_x86.cc | 134 ScopedMemRefType mem_ref_type(this, ResourceMask::kDalvikReg); 353 ScopedMemRefType mem_ref_type(this, ResourceMask::kDalvikReg); 629 ScopedMemRefType mem_ref_type(this, ResourceMask::kDalvikReg); 693 ScopedMemRefType mem_ref_type(this, ResourceMask::kDalvikReg);
|
int_x86.cc | 252 DCHECK(!last_lir_insn_->u.m.def_mask->HasBit(ResourceMask::kCCode)); [all...] |