Home
last modified time | relevance | path

Searched refs:CallImm (Results 1 – 10 of 10) sorted by relevance

/frameworks/libs/binary_translation/backend/include/berberis/backend/x86_64/
Dmachine_ir_builder.h80 std::enable_if_t<std::is_same_v<std::decay_t<CallImmType>, CallImm> &&
85 /*may_discard*/ CallImm* GenCallImm(uint64_t imm, MachineReg flag_register) { in GenCallImm()
86 return GenCallImm(imm, flag_register, std::array<CallImm::Arg, 0>{}); in GenCallImm()
90 /*may_discard*/ CallImm* GenCallImm(uint64_t imm, in GenCallImm()
92 const std::array<CallImm::Arg, kNumberOfArguments>& args) { in GenCallImm()
93 auto* call = ir()->NewInsn<CallImm>(imm); in GenCallImm()
99 call->SetRegAt(x86_64::CallImm::GetFlagsArgIndex(), flag_register); in GenCallImm()
115 void GenCallImmArg(CallImm* call, const std::array<CallImm::Arg, kNumberOfArgumens>& args) { in GenCallImmArg()
120 CallImm::RegType reg_type = arg.reg_type; in GenCallImmArg()
126 renamed_arg_reg, arg_reg, (reg_type == CallImm::kIntRegType) ? 8 : 16); in GenCallImmArg()
[all …]
Dmachine_ir.h225 class CallImm : public MachineInsnX86_64 {
241 explicit CallImm(uint64_t imm);
260 explicit CallImmArg(MachineReg arg, CallImm::RegType reg_type);
/frameworks/libs/binary_translation/backend/x86_64/
Dcode.cc84 CallImm::CallImm(uint64_t imm) : MachineInsnX86_64(&kCallImmInfo) { in CallImm() function in berberis::x86_64::CallImm
88 int CallImm::GetIntArgIndex(int i) { in GetIntArgIndex()
102 int CallImm::GetXmmArgIndex(int i) { in GetXmmArgIndex()
118 int CallImm::GetFlagsArgIndex() { in GetFlagsArgIndex()
122 MachineReg CallImm::IntResultAt(int i) const { in IntResultAt()
132 MachineReg CallImm::XmmResultAt(int i) const { in XmmResultAt()
142 CallImmArg::CallImmArg(MachineReg arg, CallImm::RegType reg_type) in CallImmArg()
143 : MachineInsnX86_64((reg_type == CallImm::kIntRegType) ? &kCallImmIntArgInfo in CallImmArg()
Dmachine_ir_exec_test.cc148 TEST(ExecMachineIR, CallImm) { in TEST() argument
197 std::array<x86_64::CallImm::Arg, 6> args = {{ in TEST()
198 {data_reg, x86_64::CallImm::kIntRegType}, in TEST()
199 {data_reg, x86_64::CallImm::kIntRegType}, in TEST()
200 {data_reg, x86_64::CallImm::kIntRegType}, in TEST()
201 {data_reg, x86_64::CallImm::kIntRegType}, in TEST()
202 {data_reg, x86_64::CallImm::kIntRegType}, in TEST()
203 {data_reg, x86_64::CallImm::kIntRegType}, in TEST()
241 std::array<x86_64::CallImm::Arg, 6> args = {{ in TEST()
242 {result_ptr_reg, x86_64::CallImm::kIntRegType}, in TEST()
[all …]
Dcode_debug.cc102 string CallImm::GetDebugString() const { in GetDebugString()
Drename_copy_uses_test.cc180 auto* call_arg_insn = builder.ir()->NewInsn<CallImmArg>(vreg1, CallImm::RegType::kIntType); in TEST()
Dcode_emit.cc222 void CallImm::Emit(CodeEmitter* as) const { in Emit()
Dmachine_ir_opt_test.cc233 std::array<x86_64::CallImm::Arg, 1>{ in TEST()
234 {{machine_ir.AllocVReg(), x86_64::CallImm::kIntRegType}}}); in TEST()
/frameworks/libs/binary_translation/heavy_optimizer/riscv64/
Dcall_intrinsic.h78 x86_64::CallImm::Arg GenPrepareCallImmArg(x86_64::MachineIRBuilder* builder, AssemblerType val) { in GenPrepareCallImmArg()
86 return {reg, x86_64::CallImm::kIntRegType}; in GenPrepareCallImmArg()
96 x86_64::CallImm::Arg GenPrepareCallImmArg(x86_64::MachineIRBuilder* /*builder*/, in GenPrepareCallImmArg()
98 return {reg, x86_64::CallImm::kIntRegType}; in GenPrepareCallImmArg()
107 x86_64::CallImm::Arg GenPrepareCallImmArg(x86_64::MachineIRBuilder* builder, AssemblerType reg) { in GenPrepareCallImmArg()
110 return {new_reg, x86_64::CallImm::kIntRegType}; in GenPrepareCallImmArg()
116 x86_64::CallImm::Arg GenPrepareCallImmArg(x86_64::MachineIRBuilder* /*builder*/, in GenPrepareCallImmArg()
118 return {reg.machine_reg(), x86_64::CallImm::kXmmRegType}; in GenPrepareCallImmArg()
205 std::array<x86_64::CallImm::Arg, kArgumentArraySize> args_for_call_imm; in CallIntrinsicImpl()
233 std::array<x86_64::CallImm::Arg, kArgumentArraySize> args_for_call_imm; in CallIntrinsicImpl()
[all …]
Dfrontend.cc864 std::array<x86_64::CallImm::Arg, 2>{{ in MemoryRegionReservationLoad()
865 {aligned_addr, x86_64::CallImm::kIntRegType}, in MemoryRegionReservationLoad()
866 {x86_64::kMachineRegRBP, x86_64::CallImm::kIntRegType}, in MemoryRegionReservationLoad()
938 std::array<x86_64::CallImm::Arg, 2>{{ in MemoryRegionReservationSwapWithLockedOwner()
939 {aligned_addr, x86_64::CallImm::kIntRegType}, in MemoryRegionReservationSwapWithLockedOwner()
940 {x86_64::kMachineRegRBP, x86_64::CallImm::kIntRegType}, in MemoryRegionReservationSwapWithLockedOwner()