Home
last modified time | relevance | path

Searched refs:reg_ (Results 1 – 6 of 6) sorted by relevance

/frameworks/libs/binary_translation/lite_translator/riscv64_to_x86_64/
Dregister_maintainer.h29 RegMaintainer() : reg_(std::nullopt), modified_(false) {} in RegMaintainer()
31 RegType GetMapped() const { return reg_.value(); } in GetMapped()
32 void Map(RegType reg) { reg_ = std::optional<RegType>(reg); } in Map()
33 bool IsMapped() const { return reg_.has_value(); } in IsMapped()
38 std::optional<RegType> reg_;
/frameworks/libs/binary_translation/backend/include/berberis/backend/common/
Dmachine_ir.h47 constexpr MachineReg() : reg_{kInvalidMachineVRegNumber} {} in MachineReg()
48 constexpr explicit MachineReg(int reg) : reg_{reg} {} in MachineReg()
55 [[nodiscard]] constexpr int reg() const { return reg_; } in reg()
57 [[nodiscard]] constexpr bool IsSpilledReg() const { return reg_ <= kLastSpilledRegNumber; } in IsSpilledReg()
60 return reg_ > kInvalidMachineVRegNumber && reg_ < kFirstVRegNumber; in IsHardReg()
63 [[nodiscard]] constexpr bool IsInvalidReg() const { return reg_ == kInvalidMachineVRegNumber; } in IsInvalidReg()
65 [[nodiscard]] constexpr bool IsVReg() const { return reg_ >= kFirstVRegNumber; } in IsVReg()
68 CHECK_GE(reg_, kFirstVRegNumber); in GetVRegIndex()
69 return reg_ - kFirstVRegNumber; in GetVRegIndex()
73 CHECK_LE(reg_, kLastSpilledRegNumber); in GetSpilledRegIndex()
[all …]
/frameworks/libs/binary_translation/backend/x86_64/
Dcode.cc205 &reg_, in PseudoDefXReg()
207 reg_{reg} {} in PseudoDefXReg()
213 &reg_, in PseudoDefReg()
215 reg_{reg} {} in PseudoDefReg()
Dliveness_analyzer_test.cc87 : MachineInsn(kMachineOpUndefined, 1, &reg_kind_, &reg_, kMachineInsnDefault), reg_{reg} {} in FakeInsnWithDefEarlyClobber()
95 MachineReg reg_; member in berberis::__anon251d8ff40111::FakeInsnWithDefEarlyClobber
/frameworks/libs/binary_translation/intrinsics/common_to_x86/include/berberis/intrinsics/common_to_x86/
Dtext_assembler_common.h305 explicit RegisterTemplate(Register reg) : reg_(reg) {} in RegisterTemplate()
309 if (reg.reg_.arg_no() == Register::kStackPointer) { in ToGasArgument()
313 return std::string({'%', kRegisterPrefix}) + std::to_string(reg.reg_.arg_no()); in ToGasArgument()
315 return '%' + std::to_string(reg.reg_.arg_no()); in ToGasArgument()
321 Register reg_;
/frameworks/libs/binary_translation/decoder/include/berberis/decoder/riscv64/
Dsemantics_player.h1004 GetCsrProcessor(Register& reg, SemanticsListener* listener) : reg_(reg), listener_(listener) {} in GetCsrProcessor()
1007 reg_ = listener_->template GetCsr<kName>(); in operator()
1011 Register& reg_;
1054 SetCsrProcessor(Register reg, SemanticsListener* listener) : reg_(reg), listener_(listener) {} in SetCsrProcessor()
1060 listener_->template SetCsr<kName>(reg_); in operator()
1065 Register reg_;