Lines Matching refs:branch

7071 void Riscv64Assembler::EmitBranch(Riscv64Assembler::Branch* branch) {  in EmitBranch()  argument
7073 overwrite_location_ = branch->GetLocation(); in EmitBranch()
7074 const int32_t offset = branch->GetOffset(); in EmitBranch()
7075 BranchCondition condition = branch->GetCondition(); in EmitBranch()
7076 XRegister lhs = branch->GetLeftRegister(); in EmitBranch()
7077 XRegister rhs = branch->GetRightRegister(); in EmitBranch()
7082 CHECK_EQ(overwrite_location_, branch->GetOffsetLocation()); in EmitBranch()
7088 switch (branch->GetType()) { in EmitBranch()
7093 CHECK_EQ(overwrite_location_, branch->GetOffsetLocation()); in EmitBranch()
7094 DCHECK(branch->IsCompressableCondition()); in EmitBranch()
7096 CBeqz(branch->GetNonZeroRegister(), offset); in EmitBranch()
7098 CBnez(branch->GetNonZeroRegister(), offset); in EmitBranch()
7105 CHECK_EQ(overwrite_location_, branch->GetOffsetLocation()); in EmitBranch()
7112 CHECK_EQ(overwrite_location_, branch->GetOffsetLocation()); in EmitBranch()
7117 CHECK_EQ(overwrite_location_, branch->GetOffsetLocation()); in EmitBranch()
7122 CHECK_EQ(overwrite_location_, branch->GetOffsetLocation()); in EmitBranch()
7129 EmitBcond(Branch::OppositeCondition(condition), lhs, rhs, branch->GetLength()); in EmitBranch()
7130 CHECK_EQ(overwrite_location_, branch->GetOffsetLocation()); in EmitBranch()
7134 DCHECK(branch->IsCompressableCondition()); in EmitBranch()
7139 CBeqz(branch->GetNonZeroRegister(), branch->GetLength()); in EmitBranch()
7142 CBnez(branch->GetNonZeroRegister(), branch->GetLength()); in EmitBranch()
7145 CHECK_EQ(overwrite_location_, branch->GetOffsetLocation()); in EmitBranch()
7151 EmitBcond(Branch::OppositeCondition(condition), lhs, rhs, branch->GetLength()); in EmitBranch()
7177 TMP, [&](int32_t short_offset) { FLw(branch->GetFRegister(), TMP, short_offset); }); in EmitBranch()
7181 TMP, [&](int32_t short_offset) { FLd(branch->GetFRegister(), TMP, short_offset); }); in EmitBranch()
7184 CHECK_EQ(overwrite_location_, branch->GetEndLocation()); in EmitBranch()
7185 CHECK_LE(branch->GetLength(), static_cast<uint32_t>(Branch::kMaxBranchLength)); in EmitBranch()
7193 for (auto& branch : branches_) { in EmitBranches() local
7194 EmitBranch(&branch); in EmitBranches()
7284 Branch* branch = GetBranch(branch_id); in Bind() local
7285 branch->Resolve(bound_pc); in Bind()
7287 label->position_ = branch->NextBranchId(); in Bind()
7351 const Branch* branch = GetBranch(last_branch_id_); in GetAdjustedPosition() local
7352 if (branch->GetLocation() >= old_position + last_position_adjustment_) { in GetAdjustedPosition()
7355 last_position_adjustment_ += branch->GetLength() - branch->GetOldLength(); in GetAdjustedPosition()
7398 for (auto& branch : branches_) { in PromoteBranches() local
7399 CHECK(branch.IsResolved()); in PromoteBranches()
7400 uint32_t delta = branch.PromoteIfNeeded(); in PromoteBranches()
7405 uint32_t expand_location = branch.GetLocation(); in PromoteBranches()
7425 Branch& branch = branches_[--i]; in PromoteBranches() local
7426 uint32_t size = end - branch.GetOldEndLocation(); in PromoteBranches()
7427 buffer_.Move(branch.GetEndLocation(), branch.GetOldEndLocation(), size); in PromoteBranches()
7428 end = branch.GetOldLocation(); in PromoteBranches()
7452 for (auto& branch : branches_) { in PromoteBranches() local
7453 uint32_t target = branch.GetTarget(); in PromoteBranches()
7455 branch.Resolve(target + sizeof(uint32_t)); in PromoteBranches()