Home
last modified time | relevance | path

Searched refs:Location (Results 1 - 25 of 104) sorted by relevance

12345

/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
H A Dlocations.h42 class Location { class
53 Location() : Location(Kind::INVALID) {} in Location() function in ark::compiler::Location
54 explicit Location(Kind type, uintptr_t value = 0) : bitFields_(KindField::Encode(type) | ValueField::Encode(value)) in Location() function in ark::compiler::Location
70 bool operator==(Location rhs) const in operator ==()
75 bool operator!=(Location rhs) const in operator !=()
80 bool operator<(Location rhs) const in operator <()
169 static Location MakeRegister(size_t id) in MakeRegister()
171 return Location(Kind::REGISTER, id); in MakeRegister()
174 static Location MakeFpRegiste
[all...]
H A Dspill_fill_data.h25 using LocationType = Location::Kind;
34 SpillFillData(Location src, Location dst, DataType::Type type) : src_(src), dst_(dst), type_(type) {} in SpillFillData()
52 void SetSrc(Location loc) in SetSrc()
56 void SetDst(Location loc) in SetDst()
60 Location GetSrc() const in GetSrc()
64 Location GetDst() const in GetDst()
90 Location src_;
91 Location dst_;
H A Dlocations.cpp22 : locations_(allocator->New<Location[]>(inst->GetInputsCount()), inst->GetInputsCount()) in LocationsInfo()
28 void Location::Dump(std::ostream &stm, Arch arch) in Dump()
55 std::string Location::ToString(Arch arch) in ToString()
/arkcompiler/runtime_core/compiler/optimizer/ir/
H A Dlocations.h41 class Location { class
52 Location() : Location(Kind::INVALID) {} in Location() function in panda::compiler::Location
53 explicit Location(Kind type, uintptr_t value = 0) : bit_fields_(KindField::Encode(type) | ValueField::Encode(value)) in Location() function in panda::compiler::Location
69 bool operator==(Location rhs) const in operator ==()
74 bool operator!=(Location rhs) const in operator !=()
79 bool operator<(Location rhs) const in operator <()
168 static Location MakeRegister(size_t id) in MakeRegister()
170 return Location(Kind::REGISTER, id); in MakeRegister()
173 static Location MakeFpRegiste
[all...]
H A Dspill_fill_data.h25 using LocationType = Location::Kind;
34 SpillFillData(Location src, Location dst, DataType::Type type) : src_(src), dst_(dst), type_(type) {} in SpillFillData()
52 void SetSrc(Location loc) in SetSrc()
56 void SetDst(Location loc) in SetDst()
60 Location GetSrc() const in GetSrc()
64 Location GetDst() const in GetDst()
90 Location src_;
91 Location dst_;
H A Dlocations.cpp22 : locations_(allocator->New<Location[]>(inst->GetInputsCount()), inst->GetInputsCount()) in LocationsInfo()
28 void Location::Dump(std::ostream &stm, [[maybe_unused]] Arch arch) in Dump()
33 std::string Location::ToString(Arch arch) in ToString()
/arkcompiler/runtime_core/static_core/compiler/code_info/
H A Dvreg_info.h25 enum class Location : int8_t { NONE, SLOT, REGISTER, FP_REGISTER, CONSTANT, COUNT = CONSTANT }; class in ark::compiler::final
27 static constexpr size_t INVALID_LOCATION = (1U << MinimumBitsToStore(static_cast<size_t>(Location::COUNT))) - 1;
46 FieldLocation::Set(Location::NONE, &info_); in VRegInfo()
49 VRegInfo(uint32_t value, VRegInfo::Location location, Type type, VRegType vregType) in VRegInfo()
54 VRegInfo(uint32_t value, VRegInfo::Location location, Type type, VRegType vregType, uint32_t index) in VRegInfo()
63 return VRegInfo(0, static_cast<Location>(INVALID_LOCATION), Type::UNDEFINED, VRegType::VREG); in Invalid()
81 Location GetLocation() const in GetLocation()
117 return GetLocation() != Location::NONE; in IsLive()
138 return location == Location::REGISTER || location == Location in IsLocationRegister()
[all...]
/arkcompiler/runtime_core/static_core/compiler/tests/
H A Dreg_alloc_resolver_test.cpp76 param0Interval->SetLocation(Location::MakeRegister(target.GetParamRegId(0U))); in ResolveFixedInputsRunLiveness()
77 param1Interval->SetLocation(Location::MakeRegister(target.GetParamRegId(1U))); in ResolveFixedInputsRunLiveness()
78 param2Interval->SetLocation(Location::MakeRegister(target.GetParamRegId(2U))); in ResolveFixedInputsRunLiveness()
79 addInterval->SetLocation(Location::MakeRegister(target.GetParamRegId(3U))); in ResolveFixedInputsRunLiveness()
82 ->SetLocation(Location::MakeStackSlot(0U)); in ResolveFixedInputsRunLiveness()
84 ->SetLocation(Location::MakeRegister(target.GetParamRegId(2U))); in ResolveFixedInputsRunLiveness()
86 p2Split1->SetLocation(Location::MakeRegister(6U)); in ResolveFixedInputsRunLiveness()
88 p2Split2->SetLocation(Location::MakeRegister(target.GetParamRegId(0U))); in ResolveFixedInputsRunLiveness()
89 la.GetInstLifeIntervals(&INS(4U))->SetLocation(Location::MakeRegister(target.GetReturnRegId())); in ResolveFixedInputsRunLiveness()
90 la.GetTmpRegInterval(storeInst)->SetLocation(Location in ResolveFixedInputsRunLiveness()
[all...]
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
H A Dlocations_builder.cpp88 param = Location::MakeRegister(GetTarget().GetParamRegId(0)); // place id input before imms in LOCATIONS_BUILDER()
130 locations->SetLocation(i, Location::MakeStackArgument(stackArgs++)); in LOCATIONS_BUILDER()
185 auto param = Location::MakeRegister(GetTarget().GetParamRegId(CallConvDynInfo::REG_METHOD)); in LOCATIONS_BUILDER()
192 [[maybe_unused]] Location loc = pinfo->GetNextLocation(GetWordType()); in LOCATIONS_BUILDER()
199 auto param = Location::MakeStackArgument(i + CallConvDynInfo::FIXED_SLOT_COUNT); in LOCATIONS_BUILDER()
213 locations->SetLocation(0, Location::RequireRegister()); in LOCATIONS_BUILDER()
267 locations->SetLocation(i, Location::RequireRegister()); in LOCATIONS_BUILDER()
273 inst->CastToNewArray()->SetLocation(0, Location::MakeRegister(GetTarget().GetParamRegId(0))); in LOCATIONS_BUILDER()
274 inst->CastToNewArray()->SetLocation(1, Location::MakeRegister(GetTarget().GetParamRegId(1))); in LOCATIONS_BUILDER()
280 inst->CastToNewObject()->SetLocation(0, Location in LOCATIONS_BUILDER()
[all...]
/arkcompiler/runtime_core/compiler/tests/
H A Dsplit_resolver_new_test.cpp154 split->SetLocation(Location::MakeStackSlot(SLOT_AT_ADD)); in HWTEST_F()
163 EXPECT_EQ(sf_data1.GetSrc(), Location::MakeRegister(REG_PARAM_INIT)); in HWTEST_F()
164 EXPECT_EQ(sf_data1.GetDst(), Location::MakeStackSlot(SLOT_AT_ADD)); in HWTEST_F()
165 EXPECT_EQ(sf_data2.GetSrc(), Location::MakeStackSlot(SLOT_AT_ADD)); in HWTEST_F()
166 EXPECT_EQ(sf_data2.GetDst(), Location::MakeRegister(REG_AT_MUL)); in HWTEST_F()
216 split1->SetLocation(Location::MakeStackSlot(SLOT_PARAM1_AT_CALL)); in HWTEST_F()
225 EXPECT_EQ(sf_data[0].GetSrc(), Location::MakeRegister(REG_PARAM1_INIT)); in HWTEST_F()
226 EXPECT_EQ(sf_data[0].GetDst(), Location::MakeStackSlot(SLOT_PARAM1_AT_CALL)); in HWTEST_F()
227 EXPECT_EQ(sf_data[1].GetSrc(), Location::MakeRegister(REG_PARAM2_INIT)); in HWTEST_F()
228 EXPECT_EQ(sf_data[1].GetDst(), Location in HWTEST_F()
[all...]
H A Dcompiler_regalloc_test.cpp804 Location src(Location::Kind::IMMEDIATE, 0); in HWTEST_F()
805 Location dst(Location::Kind::REGISTER, 0); in HWTEST_F()
813 Location src1(Location::Kind::REGISTER, 0); in HWTEST_F()
814 Location dst1(Location::Kind::STACK_ARGUMENT, 0); in HWTEST_F()
830 Location src2(Location in HWTEST_F()
[all...]
H A Dcode_info_test.cpp95 std::array vregs = {VRegInfo(1, VRegInfo::Location::FP_REGISTER, VRegInfo::Type::INT64, false), in TEST_F()
96 VRegInfo(2, VRegInfo::Location::SLOT, VRegInfo::Type::OBJECT, false), in TEST_F()
97 VRegInfo(12, VRegInfo::Location::REGISTER, VRegInfo::Type::OBJECT, false)}; in TEST_F()
167 VRegInfo(1, VRegInfo::Location::REGISTER, VRegInfo::Type::INT64, false), in TEST_F()
168 VRegInfo(2, VRegInfo::Location::SLOT, VRegInfo::Type::OBJECT, false), in TEST_F()
169 VRegInfo(3, VRegInfo::Location::SLOT, VRegInfo::Type::OBJECT, false), in TEST_F()
170 VRegInfo(10, VRegInfo::Location::FP_REGISTER, VRegInfo::Type::FLOAT64, false), in TEST_F()
171 VRegInfo(20, VRegInfo::Location::SLOT, VRegInfo::Type::BOOL, false), in TEST_F()
172 VRegInfo(30, VRegInfo::Location::REGISTER, VRegInfo::Type::OBJECT, false), in TEST_F()
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/types/
H A Dlocation.cpp30 Expected<Location, std::string> Location::FromJsonProperty(const JsonObject &object, const char *propertyName) in FromJsonProperty()
44 return Unexpected("Invalid Location: No 'lineNumber' property"s); in FromJsonProperty()
52 return Location(*scriptId, lineNumberTrunc + 1); in FromJsonProperty()
55 std::function<void(JsonObjectBuilder &)> Location::ToJson() const in ToJson()
H A Dlocation.h33 class Location { class
35 Location(ScriptId scriptId, size_t lineNumber) : scriptId_(scriptId), lineNumber_(lineNumber) {} in Location() function in ark::tooling::inspector::Location
37 static Expected<Location, std::string> FromJsonProperty(const JsonObject &object, const char *propertyName);
/arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/
H A Dspill_fills_resolver.h89 // Get table index by Location type
90 LocationIndex Map(Location location) in Map()
106 Location ToLocation(LocationIndex reg) in ToLocation()
109 return Location::MakeStackParameter(reg - PARAMETER_SLOTS_OFFSET); in ToLocation()
112 return Location::MakeStackSlot(reg - SLOTS_TABLE_OFFSET); in ToLocation()
115 return Location::MakeFpRegister(reg - VREGS_TABLE_OFFSET); in ToLocation()
117 return Location::MakeRegister(reg); in ToLocation()
H A Dreg_alloc_resolver.h64 void AddMoveToFixedLocation(Inst *inst, Location input_location, size_t input_num);
66 static inline void AddLocationToRoots(Location location, SaveStateInst *save_state, const Graph *graph) in AddLocationToRoots()
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/regalloc/
H A Dspill_fills_resolver.h90 // Get table index by Location type
91 LocationIndex Map(Location location) in Map()
107 Location ToLocation(LocationIndex reg) in ToLocation()
110 return Location::MakeStackParameter(reg - parameterSlotsOffset_); in ToLocation()
113 return Location::MakeStackSlot(reg - slotsTableOffset_); in ToLocation()
116 return Location::MakeFpRegister(reg - vregsTableOffset_); in ToLocation()
118 return Location::MakeRegister(reg); in ToLocation()
H A Dreg_alloc_resolver.h71 void AddMoveToFixedLocation(Inst *inst, Location inputLocation, size_t inputNum);
73 static inline void AddLocationToRoots(Location location, SaveStateInst *saveState, const Graph *graph) in AddLocationToRoots()
94 ArenaVector<Location> inputLocations_;
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/overwrites/
H A Dcdp_debugger_callframe_from_json.py35 location=debugger.Location.from_json(json["location"]),
40 debugger.Location.from_json(json["functionLocation"]) if "functionLocation" in json else None
/arkcompiler/runtime_core/static_core/runtime/
H A Dcframe.cpp34 case VRegInfo::Location::SLOT: in GetVRegValue()
36 case VRegInfo::Location::REGISTER: in GetVRegValue()
37 case VRegInfo::Location::FP_REGISTER: in GetVRegValue()
39 case VRegInfo::Location::CONSTANT: in GetVRegValue()
99 bool isFp = vreg.GetLocation() == VRegInfo::Location::FP_REGISTER; in GetVRegValueRegister()
165 case VRegInfo::Location::SLOT: { in SetVRegValue()
172 case VRegInfo::Location::REGISTER: in SetVRegValue()
173 case VRegInfo::Location::FP_REGISTER: { in SetVRegValue()
174 bool isFp = vreg.GetLocation() == VRegInfo::Location::FP_REGISTER; in SetVRegValue()
195 case VRegInfo::Location in SetVRegValue()
[all...]
/arkcompiler/toolchain/test/fuzztest/base/ptevents/breakpointresolved/baseptsbreakpointsetlocation_fuzzer/
H A Dbaseptsbreakpointsetlocation_fuzzer.cpp47 auto location = std::make_unique<Location>(); in BasePtsBreakpointSetLocationFuzzTest()
51 breakpointResolved.SetLocation(Location::Create(*json)); in BasePtsBreakpointSetLocationFuzzTest()
/arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/
H A Dliveness_analyzer.h98 location_(Location::Invalid()), in LifeIntervals()
236 SetLocation(Location::MakeRegister(reg, type_)); in SetReg()
247 SetLocation(Location::MakeRegister(reg, type)); in SetPhysicalReg()
262 void SetLocation(Location location) in SetLocation()
267 Location GetLocation() const in GetLocation()
274 SetLocation(Location::Invalid()); in ClearLocation()
460 Location location_;
633 void BlockFixedLocationRegister(Location location, LifeNumber ln);
634 void BlockFixedLocationRegister(Location location, LifeNumber blockFrom, LifeNumber blockTo, bool isUse);
/arkcompiler/runtime_core/static_core/libllvmbackend/object_code/
H A Dcode_info_producer.h55 using Location = LLVMStackMap::LocationAccessor;
73 static void DumpStackMapLocation(const Location &location, std::ostream &stream, const std::string &prefix = "");
77 size_t GetArkFrameSlot(const Location &location, uint64_t stackSize, size_t slotSize) const;
/arkcompiler/runtime_core/compiler/optimizer/analysis/
H A Dliveness_analyzer.h97 location_(Location::Invalid()), in LifeIntervals()
230 SetLocation(Location::MakeRegister(reg, type_)); in SetReg()
241 SetLocation(Location::MakeRegister(reg, type)); in SetPhysicalReg()
256 void SetLocation(Location location) in SetLocation()
261 Location GetLocation() const in GetLocation()
268 SetLocation(Location::Invalid()); in ClearLocation()
399 Location location_;
582 void BlockFixedLocationRegister(Location location, LifeNumber ln);
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/
H A Ddebug_client.py108 location=debugger.Location(
151 location: debugger.Location,
153 ) -> Tuple[debugger.BreakpointId, debugger.Location]:
161 async def set_breakpoint_by_url(self, *args, **kwargs) -> Tuple[debugger.BreakpointId, List[debugger.Location]]:
166 start: debugger.Location,
167 end: Optional[debugger.Location] = None,
242 self._breaks: Dict[debugger.BreakpointId, List[debugger.Location]] = dict()
250 async def get(self, bp_id: debugger.BreakpointId) -> Optional[List[debugger.Location]]:

Completed in 12 milliseconds

12345