| /arkcompiler/runtime_core/libpandafile/tests/ |
| D | bytecode_instruction_tests.cpp | 32 BytecodeInstruction inst(bytecode); in TEST() local 40 BytecodeInstruction inst(bytecode); in TEST() local 49 BytecodeInstruction inst(bytecode); in TEST() local 56 BytecodeInstruction inst(bytecode); in TEST() local 64 BytecodeInstruction inst(bytecode); in TEST() local 72 BytecodeInstruction inst(bytecode); in TEST() local 81 BytecodeInstruction inst(bytecode); in TEST() local 88 BytecodeInstruction inst(bytecode); in TEST() local 96 BytecodeInstruction inst(bytecode); in TEST() local 104 BytecodeInstruction inst(bytecode); in TEST() local [all …]
|
| /arkcompiler/runtime_core/compiler/tests/ |
| D | iterators_test.cpp | 34 for (auto inst : block->PhiInsts()) { in Check() local 40 for (auto inst : block->Insts()) { in Check() local 46 for (auto inst : block->AllInsts()) { in Check() local 53 for (auto inst : block->PhiInstsSafe()) { in Check() local 59 for (auto inst : block->InstsSafe()) { in Check() local 65 for (auto inst : block->AllInstsSafe()) { in Check() local 72 for (auto inst : block->PhiInstsSafeReverse()) { in Check() local 79 for (auto inst : block->InstsSafeReverse()) { in Check() local 86 for (auto inst : block->AllInstsSafeReverse()) { in Check() local 94 for (auto inst : block->PhiInstsSafe()) { in Check() local [all …]
|
| D | irBuilder_tests.cpp | 342 for (auto inst : bb->GetSuccessor(0)->AllInsts()) { in __anon32a3985d0402() local 363 for (auto inst : bb->GetSuccessor(1)->AllInsts()) { in __anon32a3985d0402() local 372 for (auto inst : bb->GetSuccessor(0)->AllInsts()) { in __anon32a3985d0402() local 409 for (auto inst : bb->GetSuccessor(0)->AllInsts()) { in __anon32a3985d0402() local 428 for (auto inst : successor->GetPredecessor(0)->AllInsts()) { in __anon32a3985d0402() local 579 for (auto inst : bb->GetSuccessor(0)->AllInsts()) { in __anon32a3985d0602() local 613 for (auto inst : bb->GetSuccessor(1)->AllInsts()) { in __anon32a3985d0602() local 622 for (auto inst : bb->GetSuccessor(0)->AllInsts()) { in __anon32a3985d0602() local 659 for (auto inst : bb->GetSuccessor(0)->AllInsts()) { in __anon32a3985d0602() local 678 for (auto inst : successor->GetPredecessor(0)->AllInsts()) { in __anon32a3985d0602() local
|
| D | compiler_inst_test.cpp | 86 for (auto inst : bb->AllInsts()) { in __anon1be7da800102() local 137 for (auto inst : bb->AllInsts()) { in __anon1be7da800202() local 174 for (auto inst : bb->AllInsts()) { in __anon1be7da800302() local 205 for (auto inst : bb->AllInsts()) { in __anon1be7da800402() local 239 for (auto inst : bb->AllInsts()) { in __anon1be7da800502() local 313 for (auto inst : bb->AllInsts()) { in __anon1be7da800602() local 344 for (auto inst : bb->AllInsts()) { in __anon1be7da800702() local 381 for (auto inst : block->AllInsts()) { in __anon1be7da800802() local 412 for (auto inst : bb->AllInsts()) { in __anon1be7da800902() local 444 for (auto inst : bb->AllInsts()) { in __anon1be7da800a02() local [all …]
|
| D | dump_test.cpp | 69 for (auto inst : bb->AllInsts()) { in __anon51f1233e0102() local 300 IfImmInst inst(ConditionCode::CC_NE); in __anon51f1233e0402() local 378 auto inst = graph->GetStartBlock()->GetFirstInst(); in __anon51f1233e0502() local 406 for (auto inst : bb->AllInsts()) { in __anon51f1233e0602() local 449 for (auto inst : block->AllInsts()) { in __anon51f1233e0702() local 483 auto inst = graph->CreateInst(Opcode::SaveState); in __anon51f1233e0802() local 512 for (auto inst : bb->AllInsts()) { in __anon51f1233e0902() local 548 for (auto inst : bb->AllInsts()) { in __anon51f1233e0a02() local 583 for (auto inst : bb->AllInsts()) { in __anon51f1233e0b02() local 619 for (auto inst : bb->AllInsts()) { in __anon51f1233e0c02() local [all …]
|
| /arkcompiler/runtime_core/compiler/optimizer/optimizations/ |
| D | cleanup.h | 94 inline uint32_t GetInstId(Inst *inst) const in GetInstId() 103 void SetIdom(Inst *inst, Inst *idom) in SetIdom() 107 Inst *GetIdom(Inst *inst) const in GetIdom() 115 void SetAncestor(Inst *inst, Inst *anc) in SetAncestor() 119 Inst *GetAncestor(Inst *inst) const in GetAncestor() 127 InstVector &GetBucket(Inst *inst) in GetBucket() 135 void SetLabel(Inst *inst, Inst *label) in SetLabel() 139 Inst *GetLabel(Inst *inst) const in GetLabel() 147 void SetParent(Inst *inst, Inst *parent) in SetParent() 151 Inst *GetParent(Inst *inst) const in GetParent() [all …]
|
| D | vn.cpp | 24 static void AddSpecialTraits(Inst *inst, VnObject *obj) in AddSpecialTraits() 44 void VnObject::Add(Inst *inst) in Add() 92 inline void ValNum::SetInstValNum(Inst *inst) in SetInstValNum() 102 bool ValNum::TryToApplyCse(Inst *inst, InstVector *equiv_insts) in TryToApplyCse() 124 void ValNum::FindEqualVnOrCreateNew(Inst *inst) in FindEqualVnOrCreateNew() 155 for (auto inst : bb->AllInsts()) { in RunImpl() local 160 for (auto inst : bb->AllInsts()) { in RunImpl() local
|
| D | cleanup.cpp | 246 void Cleanup::MarkLiveRec(Marker live_mrk, Inst *inst) in MarkLiveRec() 272 for (auto inst : bb->AllInsts()) { in Dce() local 280 for (auto inst : bb->AllInstsSafe()) { in Dce() local 306 void Cleanup::SetLiveRec(Inst *inst, Marker mrk, Marker live_mrk) in SetLiveRec() 318 void Cleanup::LiveUserSearchRec(Inst *inst, Marker mrk, Marker live_mrk, Marker dead_mrk) in LiveUserSearchRec() 367 auto inst = dead_.at(i); in Marking() local 392 for (auto inst : dead_) { in Removal() local 440 for (auto inst : bb->PhiInsts()) { in BuildDominators() local 455 for (auto inst : bb->Insts()) { in BuildDominators() local 477 void Cleanup::AdjustImmediateDominators(Inst *inst) in AdjustImmediateDominators() [all …]
|
| D | move_constants.cpp | 52 void MoveConstants::MoveFromStartBlock(Inst *inst) in MoveFromStartBlock() 84 static Inst *SingleBlockNoPhiDominatingUser(Inst *inst) in SingleBlockNoPhiDominatingUser() 106 void MoveConstants::GetUsersDominatingBlocks(const Inst *inst) in GetUsersDominatingBlocks() 119 auto inst = user.GetInst(); in GetDominators() local
|
| D | lowering.cpp | 21 void Lowering::VisitIfImm([[maybe_unused]] GraphVisitor *v, Inst *inst) in VisitIfImm() 77 void Lowering::LowerIf(IfImmInst *inst) in LowerIf() 138 void Lowering::InPlaceLowerIfImm(IfImmInst *inst, Inst *input, Inst *cst, ConditionCode cc) in InPlaceLowerIfImm()
|
| /arkcompiler/runtime_core/bytecode_optimizer/ |
| D | reg_encoder.cpp | 22 static bool IsIntrinsicRange(Inst *inst) in IsIntrinsicRange() 50 static bool CanHoldRange(Inst *inst) in CanHoldRange() 65 for (const auto &inst : bb->AllInsts()) { in CalculateNumNeededRangeTemps() local 157 static void RenumberSpillFillRegs(panda::compiler::SpillFillInst *inst, const panda::compiler::Regi… in RenumberSpillFillRegs() 179 for (auto inst : bb->AllInsts()) { in RenumberRegs() local 290 for (auto inst : bb->AllInstsSafe()) { in InsertSpills() local 306 for (auto inst : bb->AllInstsSafe()) { in CalculateNumNeededTemps() local 321 static void AddMoveBefore(Inst *inst, const T &sp_container) in AddMoveBefore() 336 static bool IsAccReadPosition(compiler::Inst *inst, size_t pos) in IsAccReadPosition() 342 void RegEncoder::InsertSpillsForDynInputsInst(compiler::Inst *inst) in InsertSpillsForDynInputsInst() [all …]
|
| D | reg_acc_alloc.cpp | 31 compiler::Inst *inst = src_inst->GetNext(); in IsAccWriteBetween() local 105 bool RegAccAlloc::CanUserReadAcc(compiler::Inst *inst, compiler::Inst *user) const in CanUserReadAcc() 173 void RegAccAlloc::SetNeedLda(compiler::Inst *inst, bool need) in SetNeedLda() 201 for (auto inst : block->Insts()) { in RunImpl() local 228 for (auto inst : block->AllInsts()) { in RunImpl() local 261 for (auto inst : block->Insts()) { in RunImpl() local
|
| D | codegen.cpp | 80 for (const auto &inst : bb->AllInsts()) { in RunImpl() local 220 void BytecodeGen::AddLineNumber(const Inst *inst, const size_t idx) in AddLineNumber() 228 void BytecodeGen::AddColumnNumber(const Inst *inst, const uint32_t idx) in AddColumnNumber() 258 void BytecodeGen::VisitSpillFill(GraphVisitor *visitor, Inst *inst) in VisitSpillFill() 267 bool HasUserPredicate(Inst *inst, UnaryPred p) in HasUserPredicate() 279 void BytecodeGen::VisitConstant(GraphVisitor *visitor, Inst *inst) in VisitConstant() 337 auto inst = inst_base->CastToIf(); in VisitIf() local 356 static std::optional<coretypes::TaggedValue> IsEcmaConstTemplate(Inst const *inst) in IsEcmaConstTemplate() 384 void BytecodeGen::IfEcma(GraphVisitor *v, compiler::IfInst *inst) in IfEcma() 440 auto inst = inst_base->CastToIfImm(); in VisitIfImm() local [all …]
|
| D | common.cpp | 22 uint8_t AccReadIndex(const compiler::Inst *inst) in AccReadIndex()
|
| /arkcompiler/runtime_core/compiler/optimizer/ir/ |
| D | ir_constructor.h | 120 auto inst = graph_->CreateInst(std::forward<Args>(args)...); in NewInst() local 154 Inst *inst = nullptr; in NewConstant() local 172 auto inst = graph_->AddNewParameter(arg_number); in NewParameter() local 266 auto inst = CurrentInst(); variable 300 auto inst = CurrentInst(); in IsArray() local 316 auto inst = CurrentInst(); in CC() local 365 auto inst = CurrentInst(); in Inlined() local 378 auto inst = CurrentInst(); in Scale() local 384 auto inst = CurrentInst(); in Imm() local 443 auto inst = CurrentInst(); in Shift() local [all …]
|
| D | graph_checker.cpp | 48 for (auto inst : block->AllInsts()) { in UserInputCheck() local 189 for (auto inst : block->AllInsts()) { in CheckDataFlow() local 269 for (auto inst : GetGraph()->GetStartBlock()->AllInsts()) { in CheckStartBlock() local 303 for (auto inst : bb->AllInsts()) { in CheckGraph() local 333 bool GraphChecker::CheckInstRegUsageSaved(const Inst *inst, Register reg) const in CheckInstRegUsageSaved() argument 346 [[maybe_unused]] static bool checkSpillFillMultiple(const compiler::Inst *inst) in checkSpillFillMultiple() 358 for ([[maybe_unused]] auto inst : block->Insts()) { in CheckNoLowLevel() local 506 bool GraphChecker::CheckInstHasInput(Inst *inst, Inst *input) in CheckInstHasInput() 519 bool GraphChecker::CheckInstHasUser(Inst *inst, Inst *user) in CheckInstHasUser() 558 [](Inst *inst) { return inst->GetOpcode() == Opcode::Try; }); in CheckTryBeginBlock() [all …]
|
| D | basicblock.cpp | 52 BasicBlock *BasicBlock::SplitBlockAfterInstruction(Inst *inst, bool make_edge) in SplitBlockAfterInstruction() 142 auto inst = phi->GetInput(index).GetInst(); in RemovePhiProcessing() local 351 void BasicBlock::AppendPhi(Inst *inst) in AppendPhi() 383 void BasicBlock::AddInst(Inst *inst) in AddInst() 448 void BasicBlock::InsertAfter(Inst *inst, Inst *after) in InsertAfter() 467 void BasicBlock::InsertBefore(Inst *inst, Inst *before) in InsertBefore() 553 void BasicBlock::EraseInst(Inst *inst, [[maybe_unused]] bool will_be_moved) in EraseInst() 580 void BasicBlock::RemoveInst(Inst *inst) in RemoveInst() 597 for (auto inst : AllInstsSafeReverse()) { in Clear() local 733 for (auto inst : AllInsts()) { in GetFistThrowableInst() local
|
| D | graph_cloner.h | 192 bool HasClone(Inst *inst) in HasClone() 197 Inst *GetClone(Inst *inst) in GetClone() 241 for (auto inst : block->Insts()) { in CloneInstructions() local 256 Inst *CloneInstruction(Inst *inst, size_t *inst_count, Graph *target_graph) in CloneInstruction()
|
| D | graph_visitor.h | 85 virtual void VisitDefault([[maybe_unused]] Inst *inst) {} in VisitDefault()
|
| /arkcompiler/runtime_core/compiler/optimizer/ir_builder/ |
| D | inst_builder.h | 139 void AddInstruction(Inst *inst) in AddInstruction() 148 void UpdateDefinition(size_t vreg, Inst *inst) in UpdateDefinition() 159 void UpdateDefinitionAcc(Inst *inst) in UpdateDefinitionAcc() 200 auto inst = GetGraph()->FindOrCreateConstant<uint32_t>(value); in FindOrCreate32BitConstant() local 209 auto inst = GetGraph()->FindOrCreateConstant<uint64_t>(value); in FindOrCreateConstant() local 218 auto inst = GetGraph()->FindOrCreateConstant<double>(value); in FindOrCreateDoubleConstant() local
|
| D | phi_resolver.h | 45 for (auto inst : bb->AllInstsSafe()) { in Run() local 96 static void SetTypeByInputs(Inst *inst) in SetTypeByInputs() 110 void FindUsersRec(Inst *inst) in FindUsersRec() 129 void FindInputsRec(Inst *inst) in FindInputsRec()
|
| D | inst_builder.cpp | 124 auto inst = catch_bb->GetFirstInst(); in AddCatchPhiInputs() local 167 void InstBuilder::SetTypeRec(Inst *inst, DataType::Type type) in SetTypeRec() 222 for (auto inst : bb->PhiInstsSafe()) { in FixInstructions() local 241 for (auto inst : bb->AllInsts()) { in FixInstructions() local 268 SaveStateInst *inst = GetGraph()->CreateInstSaveState(); in CreateSaveState() local 323 for (auto inst : block->AllInstsSafe()) { in CleanupCatchPhis() local
|
| /arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/ |
| D | reg_alloc_resolver.cpp | 34 for (auto inst : block->AllInstsSafe()) { in Resolve() local 47 void RegAllocResolver::AddCatchPhiMoves(Inst *inst) in AddCatchPhiMoves() 79 void RegAllocResolver::ResolveInputs(Inst *inst) in ResolveInputs() 123 void RegAllocResolver::AddMoveToFixedLocation(Inst *inst, Location input_location, size_t input_num) in AddMoveToFixedLocation() 144 Inst *GetFirstUserOrInst(Inst *inst) in GetFirstUserOrInst() 159 Inst *GetExplicitUser(Inst *inst) in GetExplicitUser() 221 void RegAllocResolver::ResolveOutput(Inst *inst) in ResolveOutput() 260 for (auto inst : block->AllInstsSafe()) { in ResolveCatchPhis() local
|
| D | reg_alloc_resolver.h | 51 bool CanStoreToAccumulator(const Inst *inst) const in CanStoreToAccumulator() 55 bool CanReadFromAccumulator(const Inst *inst, size_t input_number) const in CanReadFromAccumulator()
|
| /arkcompiler/runtime_core/compiler/optimizer/analysis/ |
| D | liveness_analyzer.cpp | 222 for (auto inst : block->Insts()) { in BuildInstLifeNumbers() local 269 if (auto inst = block->GetFistThrowableInst(); inst != nullptr) { in GetInitInstLiveSet() local 344 LiveRange LivenessAnalyzer::GetPropagatedLiveRange(Inst *inst, LiveRange live_range) in GetPropagatedLiveRange() 359 void LivenessAnalyzer::AdjustInputsLifetime(Inst *inst, LiveRange live_range, InstLiveSet *live_set) in AdjustInputsLifetime() 394 void LivenessAnalyzer::SetInputRange([[maybe_unused]] const Inst *inst, const Inst *input, LiveRang… in SetInputRange() argument 404 void LivenessAnalyzer::AdjustCatchPhiInputsLifetime(Inst *inst) in AdjustCatchPhiInputsLifetime() 416 void LivenessAnalyzer::SetInstLifeNumber([[maybe_unused]] const Inst *inst, LifeNumber number) in SetInstLifeNumber() 431 void LivenessAnalyzer::CreateLifeIntervals(Inst *inst) in CreateLifeIntervals() 472 for (auto inst : bb->AllInsts()) { in DumpLifeIntervals() local
|