| /arkcompiler/runtime_core/verification/util/tests/ |
| D | environment.cpp | 37 …static const auto WS = par::of_charset(" \t\r\n"); // NOLINT(readability-static-accessed-through-… in EnvOptions() 38 …static const auto DELIM = par::of_string(";"); // NOLINT(readability-static-accessed-through-… in EnvOptions() 39 …static const auto NAME_HANDLER = [](auto a, Context &c, auto s, auto e, [[maybe_unused]] auto end)… in EnvOptions() 45 static const auto NAME = in EnvOptions() 48 …static const auto EQ = NAME.of_string("="); // NOLINT(readability-static-accessed-through… in EnvOptions() 49 …static const auto BOOL_TRUE = EQ.of_string("true"); // NOLINT(readability-static-accessed-through… in EnvOptions() 50 static const auto BOOL_FALSE = in EnvOptions() 52 static const auto BOOL_HANDLER = [](auto a, Context &c, auto s, [[maybe_unused]] auto to, in EnvOptions() 53 [[maybe_unused]] auto end) { in EnvOptions() 63 static const auto BOOL = BOOL_FALSE | BOOL_TRUE |= BOOL_HANDLER; in EnvOptions() [all …]
|
| D | bit_vector_property_test.cpp | 44 for (const auto &elem : Indices) { in IsEqual() 57 for (auto idx : bitset.Indices) { in showValue() 81 auto value_gen = gen::inRange<size_t>(0, max_value); 87 …auto set_n_inc = gen::pair(gen::container<std::set<size_t>>(value_gen), gen::inRange(1, 100)); //… in arbitrary() 88 return gen::map(set_n_inc, [](auto param_set_n_inc) { in arbitrary() 89 auto &[set, inc] = param_set_n_inc; in arbitrary() 92 for (const auto &idx : set) { in arbitrary() 104 return gen::map(gen::pair(value_gen, value_gen), [](auto pair) { in arbitrary() 121 for (const auto &i : intervals) { in ClassifySize() 153 auto bits = bit_set.Bits; in __anonea1bced30402() [all …]
|
| /arkcompiler/runtime_core/verification/type/tests/ |
| D | type_system_test.cpp | 37 auto &&typesystem = TypeSystems::Get(TypeSystemKind::PANDA, static_cast<ThreadNum>(1)); in TEST_F() 38 auto paramType = [&typesystem](const auto &name) { in TEST_F() 45 auto bot = typesystem.Bot(); in TEST_F() 46 auto top = typesystem.Top(); in TEST_F() 48 auto i8 = paramType("i8")(); in TEST_F() 49 auto i16 = paramType("i16")(); in TEST_F() 50 auto i32 = paramType("i32")(); in TEST_F() 51 auto i64 = paramType("i64")(); in TEST_F() 53 auto u8 = paramType("u8")(); in TEST_F() 54 auto u16 = paramType("u16")(); in TEST_F() [all …]
|
| /arkcompiler/runtime_core/libpandabase/tests/ |
| D | unique_fd_test.cpp | 35 auto fd_a = UniqueFd(); 36 auto fd_b = UniqueFd(dupDF.stdinValue); 37 auto fd_c = UniqueFd(dupDF.stdoutValue); 38 auto fd_d = UniqueFd(dupDF.stferrValue); 45 auto fd_e = std::move(fd_a); 46 auto fd_f = std::move(fd_b); 47 auto fd_g = std::move(fd_c); 48 auto fd_h = std::move(fd_d); 63 auto fd_a = UniqueFd(); 64 auto fd_b = UniqueFd(dupDF.stdinValue); [all …]
|
| /arkcompiler/runtime_core/compiler/optimizer/code_generator/ |
| D | codegen.cpp | 39 auto &la = codegen->GetGraph()->GetAnalysis<LivenessAnalyzer>(); in FixIntervals() 40 la.EnumerateLiveIntervalsForInst(save_state_, [this, codegen, encoder](const auto &li) { in FixIntervals() 41 auto inst = li->GetInst(); in FixIntervals() 42 auto location = li->GetLocation(); in FixIntervals() 44 const auto &ss_inputs = save_state_->GetInputs(); in FixIntervals() 46 … [inst](auto &input) { return input.GetInst() == inst; }) != ss_inputs.end()) { in FixIntervals() 52 … auto klass = reinterpret_cast<uintptr_t>(inst->CastToLoadAndInitClass()->GetClass()); in FixIntervals() 61 auto slot = location.GetValue(); in FixIntervals() 79 auto inst = li->GetInst(); in EncodeConstantMove() 112 auto encoder = codegen->GetEncoder(); in Generate() [all …]
|
| /arkcompiler/runtime_core/compiler/optimizer/ir/ |
| D | graph_cloner.cpp | 38 auto new_graph = in CloneGraph() 62 for (auto block : GetGraph()->GetBlocksRPO()) { in CloneAnalyses() 63 auto clone = GetClone(block); in CloneAnalyses() 65 auto clone_dom = GetClone(block->GetDominator()); in CloneAnalyses() 68 for (auto dom_blocks : block->GetDominatedBlocks()) { in CloneAnalyses() 77 auto &cloned_la = new_graph->GetAnalysis<LoopAnalyzer>(); in CloneAnalyses() 98 for (auto block : loop->GetBlocks()) { in CopyLoop() 105 for (auto back_edge : loop->GetBackEdges()) { in CopyLoop() 112 for (const auto &inner_loop : loop->GetInnerLoops()) { in CopyLoop() 113 auto cloned_header = GetClone(inner_loop->GetHeader()); in CopyLoop() [all …]
|
| /arkcompiler/ets_frontend/merge_abc/src/ |
| D | assemblyProgramProto.cpp | 23 for (const auto &[name, record] : program.record_table) { in Serialize() 24 auto *recordMap = protoProgram.add_recordtable(); in Serialize() 26 auto *protoRecord = recordMap->mutable_value(); in Serialize() 30 for (const auto &[name, func] : program.function_table) { in Serialize() 31 auto *functionMap = protoProgram.add_functiontable(); in Serialize() 33 auto *protoFunc = functionMap->mutable_value(); in Serialize() 37 for (const auto &[name, array] : program.literalarray_table) { in Serialize() 38 auto *literalarrayMap = protoProgram.add_literalarraytable(); in Serialize() 40 auto *protoArray = literalarrayMap->mutable_value(); in Serialize() 43 for (const auto &str : program.strings) { in Serialize() [all …]
|
| D | metaProto.cpp | 20 auto *protoItemmetadata = protoMeta.mutable_father(); in Serialize() 28 auto &protoItemMetadata = protoMeta.father(); in Deserialize() 31 auto &protoAnnoMetadata = protoItemMetadata.father(); in Deserialize() 34 const auto &protoMetadata = protoAnnoMetadata.father(); in Deserialize() 41 auto *protoItemmetadata = protoMeta.mutable_father(); in Serialize() 49 auto &protoItemMetadata = protoMeta.father(); in Deserialize() 52 auto &protoAnnoMetadata = protoItemMetadata.father(); in Deserialize() 55 const auto &protoMetadata = protoAnnoMetadata.father(); in Deserialize() 61 auto *protoItemmetadata = protoMeta.mutable_father(); in Serialize() 63 auto *protoType = protoMeta.mutable_fieldtype(); in Serialize() [all …]
|
| /arkcompiler/ets_frontend/es2panda/parser/transformer/ |
| D | transformer.cpp | 63 parent->UpdateSelf([this](auto *childNode) { return VisitTSNode(childNode); }, Binder()); in VisitTSNodes() 70 auto currentScope = Scope(); in FindExportVariableInTsModuleScope() 104 auto *ident = childNode->AsIdentifier(); in VisitTSNode() 109 auto name = ident->Name(); in VisitTSNode() 110 auto scope = FindExportVariableInTsModuleScope(name); in VisitTSNode() 112 auto moduleName = FindTSModuleNameByScope(scope); in VisitTSNode() 113 auto *id = AllocNode<ir::Identifier>(moduleName, Allocator()); in VisitTSNode() 115 … auto *res = AllocNode<ir::MemberExpression>(id, AllocNode<ir::Identifier>(name, Allocator()), in VisitTSNode() 124 auto *node = childNode->AsTSModuleDeclaration(); in VisitTSNode() 128 auto res = VisitTsModuleDeclaration(node); in VisitTSNode() [all …]
|
| /arkcompiler/runtime_core/compiler/tests/ |
| D | life_intervals_test.cpp | 26 auto inst = graph_->CreateInstConstant(42); in Create() 27 auto li = GetAllocator()->New<LifeIntervals>(GetAllocator(), inst); in Create() 28 for (auto range = std::rbegin(lns); range != std::rend(lns); range++) { in Create() 39 for (auto it = std::begin(intervals); it != std::end(intervals); it++) { in CheckSiblings() 40 auto next = std::next(it); in CheckSiblings() 52 auto li_ranges = interval->GetRanges(); in CheckRanges() 55 auto actual_it = li_ranges.begin(); in CheckRanges() 56 auto expected_it = std::begin(ranges); in CheckRanges() 58 auto actual_range = *(actual_it++); in CheckRanges() 59 auto expected_lns = *(expected_it++); in CheckRanges() [all …]
|
| D | class_hash_table_test.cpp | 30 auto pos = exe_path.rfind('/'); in ClassHashTableTest() 53 auto pos = paoc_path_.rfind('/'); in GetPaocDirectory() 106 auto res = parser.Parse(GetSourceCode()); in TEST_F() 111 auto panda_file_ptr = panda_file::OpenPandaFile(panda_fname.GetFileName()); in TEST_F() 113 auto &pfile_ref = *panda_file_ptr.get(); in TEST_F() 118 auto entity_pair_headers = aot_builder.GetEntityPairHeaders(); in TEST_F() 119 auto class_hash_tables_size = aot_builder.GetClassHashTableSize()->back(); in TEST_F() 136 auto source = R"( in TEST_F() 145 auto res = parser.Parse(source); in TEST_F() 151 auto source = R"( in TEST_F() [all …]
|
| D | live_registers_test.cpp | 27 auto intervals = ArenaVector<LifeIntervals *>(GetGraph()->GetAllocator()->Adapter()); in TEST_F() 33 auto alloc = GetGraph()->GetAllocator(); in TEST_F() 34 auto intervals = ArenaVector<LifeIntervals *>(alloc->Adapter()); in TEST_F() 41 auto alloc = GetGraph()->GetAllocator(); in TEST_F() 42 auto intervals = ArenaVector<LifeIntervals *>(alloc->Adapter()); in TEST_F() 51 for (auto &li : intervals) { in TEST_F() 55 auto tree = LifeIntervalsTree::BuildIntervalsTree(intervals, GetGraph()); in TEST_F() 59 tree->VisitIntervals(5, [&mask]([[maybe_unused]] const auto &li) { in TEST_F() 66 tree->VisitIntervals(11, [&mask]([[maybe_unused]] const auto &li) { in TEST_F() 73 tree->VisitIntervals(8, [&mask]([[maybe_unused]] const auto &li) { in TEST_F() [all …]
|
| /arkcompiler/runtime_core/runtime/tests/ |
| D | pygote_space_allocator_test_base.h | 46 auto runtime = panda::Runtime::GetCurrent(); in GetObjectClass() 54 auto runtime = panda::Runtime::GetCurrent(); in PygoteFork() 62 auto gc = thread_->GetVM()->GetGC(); in TriggerGc() 63 auto task = GCTask(GCTaskCause::EXPLICIT_CAUSE); in TriggerGc() 90 [[maybe_unused]] auto pygote_space_allocator = GetPygoteSpaceAllocator(); in InitAllocTest() 91 auto cls = GetObjectClass(); in InitAllocTest() 93 auto non_movable_header = panda::ObjectHeader::CreateNonMovable(cls); in InitAllocTest() 98 auto movable_header = panda::ObjectHeader::Create(cls); in InitAllocTest() 109 [[maybe_unused]] auto pygote_space_allocator = GetPygoteSpaceAllocator(); in ForkedAllocTest() 110 auto cls = GetObjectClass(); in ForkedAllocTest() [all …]
|
| D | string_table_base_test.h | 86 auto table = StringTable(); in EmptyTable() 93 auto table = StringTable(); in InternCompressedUtf8AndString() 95 auto *string = AllocUtf8String(data); in InternCompressedUtf8AndString() 96 auto *interned_str1 = in InternCompressedUtf8AndString() 99 auto *interned_str2 = table.GetOrInternString( in InternCompressedUtf8AndString() 108 auto table = StringTable(); in InternUncompressedUtf8AndString() 110 auto *string = AllocUtf8String(data); in InternUncompressedUtf8AndString() 111 auto *interned_str1 = table.GetOrInternString( in InternUncompressedUtf8AndString() 113 auto *interned_str2 = table.GetOrInternString( in InternUncompressedUtf8AndString() 122 auto table = StringTable(); in InternTheSameUtf16String() [all …]
|
| /arkcompiler/runtime_core/runtime/ |
| D | exceptions.cpp | 52 auto *thread = ManagedThread::GetCurrent(); in ThrowNullPointerException() 53 auto ctx = GetLanguageContext(thread); in ThrowNullPointerException() 64 auto ctx = GetLanguageContext(thread); in ThrowStackOverflowException() 70 auto *thread = ManagedThread::GetCurrent(); in ThrowArrayIndexOutOfBoundsException() 71 auto ctx = GetLanguageContext(thread); in ThrowArrayIndexOutOfBoundsException() 87 auto *thread = ManagedThread::GetCurrent(); in ThrowIndexOutOfBoundsException() 88 auto ctx = GetLanguageContext(thread); in ThrowIndexOutOfBoundsException() 98 auto *thread = ManagedThread::GetCurrent(); in ThrowIllegalStateException() 99 auto ctx = GetLanguageContext(thread); in ThrowIllegalStateException() 105 auto *thread = ManagedThread::GetCurrent(); in ThrowStringIndexOutOfBoundsException() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/tests/ |
| D | lowering_relate_gate_test.cpp | 53 auto depend = acc.GetDependRoot(); in HWTEST_F_L0() 54 auto arg0 = builder.Arguments(0); in HWTEST_F_L0() 55 auto pcGate = circuit.GetConstantGate(MachineType::I64, 0, GateType::NJSValue()); in HWTEST_F_L0() 56 auto frameState = circuit.NewGate(circuit.FrameState(1), {pcGate}); in HWTEST_F_L0() 57 auto stateSplit = circuit.NewGate(circuit.StateSplit(), {depend, frameState}); in HWTEST_F_L0() 59 auto check = builder.PrimitiveTypeCheck(GateType::NumberType(), arg0); in HWTEST_F_L0() 75 auto entry = acc.GetStateRoot(); in HWTEST_F_L0() 76 auto depend = acc.GetDependRoot(); in HWTEST_F_L0() 77 auto arg0 = builder.Arguments(0); in HWTEST_F_L0() 78 auto arg1 = builder.Arguments(1); in HWTEST_F_L0() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | frame_states.cpp | 32 for (auto state : bcEndStateInfos_) { in ~FrameStateBuilder() 37 for (auto state : bbBeginStateInfos_) { in ~FrameStateBuilder() 55 auto optimizedGate = circuit_->GetConstantGate(MachineType::I64, in FrameState() 59 auto value = stateInfo->ValuesAt(i); in FrameState() 65 auto pcGate = circuit_->GetConstantGate(MachineType::I64, in FrameState() 74 auto depend = gateAcc_.GetDep(gate); in BindStateSplit() 85 auto frameInfo = new FrameStateInfo(numVregs_); in CreateEmptyStateInfo() 97 auto entryId = 0; in BuildPostOrderList() 105 auto &bb = builder_->GetBasicBlockById(curBlockId); in BuildPostOrderList() 106 for (const auto &succBlock: bb.succs) { in BuildPostOrderList() [all …]
|
| D | early_elimination.cpp | 274 auto newMap = new ChunkMap<K, V>(chunk_); in MergeMap() 275 const auto &tempMap = *thisMap; in MergeMap() 276 for (const auto &pr : tempMap) { in MergeMap() 293 auto newSet = new ChunkSet<K>(chunk_); in MergeSet() 294 const auto &tempSet = *thisSet; in MergeSet() 295 for (const auto &it : tempSet) { in MergeSet() 351 auto curDep = workList.front(); in IsSideEffectLoop() 361 auto depCount = acc_.GetDependCount(curDep); in IsSideEffectLoop() 371 auto op = acc_.GetTypedLoadOp(gate); in GetElementInfo() 372 auto v0 = acc_.GetValueIn(gate, 0); in GetElementInfo() [all …]
|
| /arkcompiler/runtime_core/verification/config/parse/ |
| D | config_parse.cpp | 51 static const auto WS = p::of_charset(" \t\r\n"); in ParseConfig() 52 static const auto NL = p1::of_charset("\r\n"); in ParseConfig() 53 static const auto SP = p2::of_charset(" \t"); in ParseConfig() 54 static const auto NAME_HANDLER = [](auto a, Context &c, auto from, auto to) { in ParseConfig() 60 static const auto NAME = p3::of_charset("abcdefghijklmnopqrstuvwxyz_") |= NAME_HANDLER; in ParseConfig() 62 static const auto LCURL = p4::of_string("{"); in ParseConfig() 63 static const auto RCURL = p5::of_string("}"); in ParseConfig() 65 static const auto LINE_HANDLER = [](auto a, Context &c, auto from, auto to) { in ParseConfig() 72 static const auto LINE = p6::of_charset(!charset {"\r\n"}) |= LINE_HANDLER; in ParseConfig() 74 static const auto SECTION_END = ~SP >> RCURL >> ~SP >> NL; in ParseConfig() [all …]
|
| /arkcompiler/runtime_core/verification/config/options/ |
| D | msg_set_parser.h | 33 static const auto NAME_HANDLER = [](action a, MessageSetContext &c, auto from, auto to) { 42 static const auto NUM_HANDLER = [](action a, MessageSetContext &c, auto from) { 50 static const auto RANGE_HANDLER = [](action a, MessageSetContext &c) { 52 auto num_end = c.stack.back(); 54 auto num_start = c.stack.back(); 62 static const auto ITEM_HANDLER = [](action a, MessageSetContext &c) { 67 auto range = c.stack.back(); 70 for (auto i = range.first; i <= range.second; ++i) { 78 const auto &MessageSetParser() in MessageSetParser() 90 static const auto WS = p::of_charset(" \t\r\n"); in MessageSetParser() [all …]
|
| /arkcompiler/runtime_core/libpandafile/ |
| D | file_reader.cpp | 57 auto it = items_done_.find(array_id); in CreateLiteralArrayItem() 66 auto sp = file_->GetSpanFromId(id); in CreateLiteralArrayItem() 72 auto v = helpers::Read<sizeof(bool)>(&sp); in CreateLiteralArrayItem() 79 auto v = helpers::Read<sizeof(uint8_t)>(&sp); in CreateLiteralArrayItem() 86 auto len = helpers::Read<sizeof(uint32_t)>(&sp); in CreateLiteralArrayItem() 89 auto v = helpers::Read<sizeof(uint8_t)>(&sp); in CreateLiteralArrayItem() 96 auto len = helpers::Read<sizeof(uint32_t)>(&sp); in CreateLiteralArrayItem() 99 auto v = helpers::Read<sizeof(uint16_t)>(&sp); in CreateLiteralArrayItem() 105 auto v = helpers::Read<sizeof(uint32_t)>(&sp); in CreateLiteralArrayItem() 112 auto len = helpers::Read<sizeof(uint32_t)>(&sp); in CreateLiteralArrayItem() [all …]
|
| /arkcompiler/runtime_core/verification/jobs/ |
| D | cache.cpp | 67 for (const auto &arg : cachedMethod.signature) { in GetName() 83 auto str = GetName(cachedField.klass); in GetName() 144 const auto method_name_raw = StringDataToString(file.GetStringData(mda.GetNameId())); in GetMethodFlags() 169 auto get_file = [](const LibCache::CachedClass &cached_class1) { in LogConflictingClassDefinitions() 170 if (auto file = cached_class1.file; file.HasRef()) { in LogConflictingClassDefinitions() 178 …auto &options = Runtime::GetCurrent()->GetVerificationOptions().Debug.GetMethodOptions().GetOption… in LogConflictingClassDefinitions() 191 auto &data = GetContext(src_lang); in MakeSyntheticClass() 193 auto id = Class::CalcUniqId(descriptor); in MakeSyntheticClass() 195 auto emplace_result = in MakeSyntheticClass() 201 …auto descr_emplace_result = data.descr_lookup.try_emplace(cachedClass.descriptor, std::ref(cachedC… in MakeSyntheticClass() [all …]
|
| /arkcompiler/runtime_core/compiler/optimizer/code_generator/target/aarch64/ |
| D | callconv.cpp | 32 auto param_info = GetAllocator()->New<aarch64::Aarch64ParameterInfo>(); in GetParameterInfo() 57 auto regdescr = static_cast<Aarch64RegisterDescription *>(GetRegfile()); in PushRegs() 75 auto regdescr = static_cast<Aarch64RegisterDescription *>(GetRegfile()); in PopRegs() 96 auto ret = Reg(current_scalar_number_++, type); in GetNativeParam() 120 auto flags {static_cast<uint64_t>(has_float_regs) << CFrameLayout::HasFloatRegsFlag::START_BIT}; in InitFlagsReg() 121 auto flags_reg {GetTarget().GetZeroReg()}; in InitFlagsReg() 134 auto encoder = GetEncoder(); in GeneratePrologue() 136 auto regdescr = static_cast<Aarch64RegisterDescription *>(GetRegfile()); in GeneratePrologue() 137 auto sp = GetTarget().GetStackReg(); in GeneratePrologue() 138 auto fp = GetTarget().GetFrameReg(); in GeneratePrologue() [all …]
|
| /arkcompiler/runtime_core/compiler/optimizer/optimizations/ |
| D | cleanup.cpp | 44 auto empty_blocks = &empty1_; in RunImpl() 45 auto new_empty_blocks = &empty2_; in RunImpl() 49 for (auto bb : GetGraph()->GetVectorBlocks()) { in RunImpl() 60 auto temp = empty_blocks; in RunImpl() 84 for (auto bb : GetGraph()->GetVectorBlocks()) { in RunImpl() 103 auto marker_holder = MarkerHolder(GetGraph()); in RunOnce() 104 auto dead_mrk = marker_holder.GetMarker(); in RunOnce() 107 for (auto bb : *empty_blocks) { in RunOnce() 113 auto succ = bb->GetSuccessor(0); in RunOnce() 124 for (auto phi : bb->PhiInsts()) { in RunOnce() [all …]
|
| /arkcompiler/runtime_core/verification/util/parser/ |
| D | parser.h | 78 static const auto l = [c](Context &, Iter &start, Iter end) { 94 static const auto l = [=](Context &, Iter &start, Iter end) { 112 static const auto l = [](Context &, Iter &start, Iter end) { return start == end; }; 118 static const auto l = [p = *this](Context &c, Iter &start, Iter end) { 127 static const auto l = [this](Context &c, Iter &start, Iter end) { 135 auto operator|=(F f) const -> 139 static const auto l = [p = *this, f](Context &c, Iter &start, Iter end) { 140 auto saved = start; 146 auto new_saved = saved; 162 auto operator|=(F f) const -> [all …]
|