Home
last modified time | relevance | path

Searched defs:inst (Results 1 – 25 of 126) sorted by relevance

123456

/arkcompiler/runtime_core/libpandafile/tests/
Dbytecode_instruction_tests.cpp32 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/
Diterators_test.cpp34 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 …]
Dinst_generator.cpp19 Graph *GraphCreator::GenerateGraph(Inst *inst) in GenerateGraph()
172 Graph *GraphCreator::GenerateOperation(Inst *inst, int32_t n) in GenerateOperation()
472 Graph *GraphCreator::GenerateCheckOperation(Inst *inst) in GenerateCheckOperation()
548 Graph *GraphCreator::GenerateSSOperation(Inst *inst) in GenerateSSOperation()
579 Graph *GraphCreator::GenerateBoundaryCheckOperation(Inst *inst) in GenerateBoundaryCheckOperation()
632 Graph *GraphCreator::GenerateMultiArrayOperation(Inst *inst) in GenerateMultiArrayOperation()
667 Graph *GraphCreator::GenerateThrowOperation(Inst *inst) in GenerateThrowOperation()
689 Graph *GraphCreator::GeneratePhiOperation(Inst *inst) in GeneratePhiOperation()
805 auto inst = Inst::New<T>(&allocator_, OpCode); in GenerateOperations() local
816 auto inst = Inst::New<T>(&allocator_, OpCode); in GenerateOperationsImm() local
[all …]
/arkcompiler/runtime_core/compiler/optimizer/optimizations/
Dmemory_barriers.cpp30 for (auto inst : barriers_insts_) { in MergeBarriers() local
37 bool OptimizeMemoryBarriers::CheckInst(Inst *inst) in CheckInst()
42 void OptimizeMemoryBarriers::CheckAllInputs(Inst *inst) in CheckAllInputs()
66 void OptimizeMemoryBarriers::VisitCallStatic(GraphVisitor *v, Inst *inst) in VisitCallStatic()
74 void OptimizeMemoryBarriers::VisitCallIndirect(GraphVisitor *v, Inst *inst) in VisitCallIndirect()
79 void OptimizeMemoryBarriers::VisitCall(GraphVisitor *v, Inst *inst) in VisitCall()
84 void OptimizeMemoryBarriers::VisitUnresolvedCallStatic(GraphVisitor *v, Inst *inst) in VisitUnresolvedCallStatic()
89 void OptimizeMemoryBarriers::VisitCallVirtual(GraphVisitor *v, Inst *inst) in VisitCallVirtual()
97 void OptimizeMemoryBarriers::VisitUnresolvedCallVirtual(GraphVisitor *v, Inst *inst) in VisitUnresolvedCallVirtual()
102 void OptimizeMemoryBarriers::VisitCallDynamic(GraphVisitor *v, Inst *inst) in VisitCallDynamic()
[all …]
Dcleanup.h94 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 …]
Dvn.cpp26 static void AddSpecialTraits(Inst *inst, VnObject *obj) in AddSpecialTraits()
46 void VnObject::Add(Inst *inst) in Add()
94 inline void ValNum::SetInstValNum(Inst *inst) in SetInstValNum()
106 bool ValNum::TryToApplyCse(Inst *inst, InstVector *equiv_insts) in TryToApplyCse()
129 void ValNum::FindEqualVnOrCreateNew(Inst *inst) in FindEqualVnOrCreateNew()
160 for (auto inst : bb->AllInsts()) { in RunImpl() local
165 for (auto inst : bb->AllInsts()) { in RunImpl() local
Ddeoptimize_elimination.cpp38 for (auto &inst : deoptimize_must_throw_) { in ReplaceDeoptimizeIfByUnconditionalDeoptimize() local
62 bool DeoptimizeElimination::RequireRegMap(Inst *inst) in RequireRegMap()
79 void DeoptimizeElimination::VisitDefault(Inst *inst) in VisitDefault()
105 void DeoptimizeElimination::VisitSaveState(GraphVisitor *v, Inst *inst) in VisitSaveState()
128 void DeoptimizeElimination::VisitSaveStateDeoptimize(GraphVisitor *v, Inst *inst) in VisitSaveStateDeoptimize()
133 void DeoptimizeElimination::VisitDeoptimizeIf(GraphVisitor *v, Inst *inst) in VisitDeoptimizeIf()
162 bool DeoptimizeElimination::TryToRemoveRedundantSaveState(Inst *inst) in TryToRemoveRedundantSaveState()
182 auto inst = *it; in CanRemoveGuard() local
221 for (auto inst : block->InstsSafeReverse()) { in CanRemoveGuardRec() local
270 void DeoptimizeElimination::RemoveDeoptimizeIf(Inst *inst) in RemoveDeoptimizeIf()
Dobject_type_check_elimination.cpp32 void ObjectTypeCheckElimination::VisitIsInstance(GraphVisitor *visitor, Inst *inst) in VisitIsInstance()
39 void ObjectTypeCheckElimination::VisitCheckCast(GraphVisitor *visitor, Inst *inst) in VisitCheckCast()
53 for (auto &inst : checks_must_throw_) { in ReplaceCheckMustThrowByUnconditionalDeoptimize() local
66 bool ObjectTypeCheckElimination::TryEliminateIsInstance(Inst *inst) in TryEliminateIsInstance()
104 …ckElimination::CheckCastEliminateType ObjectTypeCheckElimination::TryEliminateCheckCast(Inst *inst) in TryEliminateCheckCast()
Dcleanup.cpp249 void Cleanup::MarkLiveRec(Marker live_mrk, Inst *inst) in MarkLiveRec()
275 for (auto inst : bb->AllInsts()) { in Dce() local
283 for (auto inst : bb->AllInstsSafe()) { in Dce() local
309 void Cleanup::SetLiveRec(Inst *inst, Marker mrk, Marker live_mrk) in SetLiveRec()
321 void Cleanup::LiveUserSearchRec(Inst *inst, Marker mrk, Marker live_mrk, Marker dead_mrk) in LiveUserSearchRec()
370 auto inst = dead_.at(i); in Marking() local
395 for (auto inst : dead_) { in Removal() local
443 for (auto inst : bb->PhiInsts()) { in BuildDominators() local
458 for (auto inst : bb->Insts()) { in BuildDominators() local
480 void Cleanup::AdjustImmediateDominators(Inst *inst) in AdjustImmediateDominators()
[all …]
Dcode_sink.cpp103 for (auto inst : block->InstsSafeReverse()) { in ProcessBlock() local
128 static bool InstHasRefInput(Inst *inst) in InstHasRefInput()
142 BasicBlock *CodeSink::SinkInstruction(Inst *inst, InstVector *stores, bool barriered) in SinkInstruction()
187 bool CodeSink::IsAcceptableTarget(Inst *inst, BasicBlock *candidate) in IsAcceptableTarget()
Dmove_constants.cpp59 void MoveConstants::MoveFromStartBlock(Inst *inst) in MoveFromStartBlock()
91 static Inst *SingleBlockNoPhiDominatingUser(Inst *inst) in SingleBlockNoPhiDominatingUser()
113 void MoveConstants::GetUsersDominatingBlocks(const Inst *inst) in GetUsersDominatingBlocks()
126 auto inst = user.GetInst(); in GetDominators() local
Dadjust_arefs.cpp30 static bool IsRefAdjustable(const Inst *inst) in IsRefAdjustable()
51 for (auto inst : bb->Insts()) { in RunImpl() local
79 for (auto inst : GetHeads()) { in ProcessArrayUses() local
101 void AdjustRefs::WalkChainDown(Inst *inst, Inst *head) in WalkChainDown()
/arkcompiler/runtime_core/compiler/optimizer/ir/
Dgraph_checker.cpp48 for (auto inst : block->AllInsts()) { in UserInputCheck() local
190 for (auto inst : block->AllInsts()) { in CheckDataFlow() local
258 for (auto inst : block->Insts()) { in CheckDataFlow() local
293 for (auto inst : block->Insts()) { in CheckDataFlow() local
315 for (auto inst : dom_block->InstsSafeReverse()) { in CheckDataFlow() local
335 for (auto inst : dom_block->InstsSafeReverse()) { in CheckDataFlow() local
359 for (auto inst : GetGraph()->GetStartBlock()->AllInsts()) { in CheckDataFlow() local
398 for (auto inst : bb->AllInsts()) { in CheckDataFlow() local
428 bool GraphChecker::CheckInstRegUsageSaved(const Inst *inst, Register reg) const in CheckDataFlow() argument
441 [[maybe_unused]] static bool checkSpillFillMultiple(const compiler::Inst *inst) in CheckDataFlow()
[all …]
Dir_constructor.h120 auto inst = graph_->CreateInst(std::forward<Args>(args)...); in NewInst() local
154 Inst *inst = nullptr; in NewConstant() local
182 auto inst = graph_->AddNewParameter(arg_number); in NewParameter() local
276 auto inst = CurrentInst(); variable
310 auto inst = CurrentInst(); in IsArray() local
326 auto inst = CurrentInst(); in CC() local
375 auto inst = CurrentInst(); in Inlined() local
388 auto inst = CurrentInst(); in Scale() local
404 auto inst = CurrentInst(); in Imm() local
463 auto inst = CurrentInst(); in Shift() local
[all …]
Dgraph_checker.h271 static void CheckBinaryOverflowOperation(IfInst *inst) in CheckBinaryOverflowOperation()
283 …atic void CheckBinaryOperationWithShiftedOperandTypes([[maybe_unused]] GraphVisitor *v, Inst *inst, in CheckBinaryOperationWithShiftedOperandTypes()
293 static void CheckUnaryOperationTypes(Inst *inst) in CheckUnaryOperationTypes()
329 static void CheckMemoryInstruction([[maybe_unused]] Inst *inst) in CheckMemoryInstruction()
336 static void CheckContrlFlowInst(Inst *inst) in CheckContrlFlowInst()
347 …static void CheckThrows([[maybe_unused]] Inst *inst, [[maybe_unused]] std::initializer_list<Opcode… in CheckThrows()
367 static void CheckSaveStateInput([[maybe_unused]] Inst *inst) in CheckSaveStateInput()
Danalysis.cpp42 bool HasOsrEntryBetween(Inst *dominate_inst, Inst *inst) in HasOsrEntryBetween()
59 Inst *InstStoredValue(Inst *inst, Inst **second_value) in InstStoredValue()
94 Inst *InstStoredValue(Inst *inst) in InstStoredValue()
102 bool IsSuitableForImplicitNullCheck(const Inst *inst) in IsSuitableForImplicitNullCheck()
129 bool IsInstNotNull(const Inst *inst) in IsInstNotNull()
/arkcompiler/runtime_core/bytecode_optimizer/
Dreg_encoder.cpp22 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 …]
Dreg_acc_alloc.cpp31 compiler::Inst *inst = src_inst->GetNext(); in IsAccWriteBetween() local
91 bool UserNeedSwapInputs(compiler::Inst *inst, compiler::Inst *user) in UserNeedSwapInputs()
113 bool RegAccAlloc::CanUserReadAcc(compiler::Inst *inst, compiler::Inst *user) const in CanUserReadAcc()
189 void RegAccAlloc::SetNeedLda(compiler::Inst *inst, bool need) in SetNeedLda()
217 for (auto inst : block->Insts()) { in RunImpl() local
237 for (auto inst : block->AllInsts()) { in RunImpl() local
256 for (auto inst : block->AllInsts()) { in RunImpl() local
296 for (auto inst : block->Insts()) { in RunImpl() local
Dcodegen.cpp80 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()
261 void BytecodeGen::VisitSpillFill(GraphVisitor *visitor, Inst *inst) in VisitSpillFill()
270 bool HasUserPredicate(Inst *inst, UnaryPred p) in HasUserPredicate()
282 void BytecodeGen::VisitConstant(GraphVisitor *visitor, Inst *inst) in VisitConstant()
367 auto inst = inst_base->CastToIf(); in VisitIf() local
389 static std::optional<coretypes::TaggedValue> IsEcmaConstTemplate(Inst const *inst) in IsEcmaConstTemplate()
417 void BytecodeGen::IfEcma(GraphVisitor *v, compiler::IfInst *inst) in IfEcma()
473 auto inst = inst_base->CastToIfImm(); in VisitIfImm() local
[all …]
/arkcompiler/runtime_core/irtoc/lang/
Dir_generator.rb87 def generate_instruction(inst) argument
131 def generate_inst_inputs(inst) argument
167 def get_inst_var_name(inst) argument
/arkcompiler/runtime_core/compiler/optimizer/code_generator/
Dcodegen.cpp41 auto inst = li->GetInst(); in FixIntervals() local
79 auto inst = li->GetInst(); in EncodeConstantMove() local
101 OsrEntryStub(Codegen *codegen, SaveStateInst *inst) in OsrEntryStub()
294 void Codegen::CreateIrtocIntrinsic(IntrinsicInst *inst, [[maybe_unused]] Reg dst, [[maybe_unused]] … in CreateIrtocIntrinsic()
435 for (auto inst : bb->AllInsts()) { in VisitGraph() local
604 for (auto inst : GetGraph()->GetStartBlock()->AllInsts()) { in Initialize() local
615 for (auto inst : bb->Insts()) { in Initialize() local
872 void Codegen::CreateStackMap(Inst *inst, Inst *user) in CreateStackMap()
974 void Codegen::CreateVreg(const Location &location, Inst *inst, const VirtualRegister &vreg) in CreateVreg()
1025 void Codegen::CreateVRegForRegister(const Location &location, Inst *inst, const VirtualRegister &vr… in CreateVRegForRegister()
[all …]
/arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/
Dreg_alloc_resolver.cpp35 for (auto inst : block->AllInstsSafe()) { in Resolve() local
49 void RegAllocResolver::AddCatchPhiMoves(Inst *inst) in AddCatchPhiMoves()
81 void RegAllocResolver::ResolveInputs(Inst *inst) in ResolveInputs()
125 void RegAllocResolver::AddMoveToFixedLocation(Inst *inst, Location input_location, size_t input_num) in AddMoveToFixedLocation()
146 Inst *GetFirstUserOrInst(Inst *inst) in GetFirstUserOrInst()
163 Inst *GetExplicitUser(Inst *inst) in GetExplicitUser()
243 SaveStateInst *CopySaveState(Graph *graph, SaveStateInst *inst) in CopySaveState()
265 bool SaveStateCopyRequired(Inst *inst, User *curr_user, User *prev_user, const LivenessAnalyzer *la) in SaveStateCopyRequired()
289 void RegAllocResolver::ResolveSaveState(Inst *inst) in ResolveSaveState()
342 void RegAllocResolver::ResolveOutput(Inst *inst) in ResolveOutput()
[all …]
/arkcompiler/runtime_core/compiler/optimizer/ir_builder/
Dphi_resolver.h44 for (auto inst : bb->AllInstsSafe()) { in Run() local
95 static void SetTypeByInputs(Inst *inst) in SetTypeByInputs()
109 void FindUsersRec(Inst *inst) in FindUsersRec()
128 void FindInputsRec(Inst *inst) in FindInputsRec()
Dinst_builder.h145 void AddInstruction(Inst *inst) in AddInstruction()
154 void UpdateDefinition(size_t vreg, Inst *inst) in UpdateDefinition()
165 void UpdateDefinitionAcc(Inst *inst) in UpdateDefinitionAcc()
206 auto inst = GetGraph()->FindOrCreateConstant<uint32_t>(value); in FindOrCreate32BitConstant() local
215 auto inst = GetGraph()->FindOrCreateConstant<uint64_t>(value); in FindOrCreateConstant() local
224 auto inst = GetGraph()->FindOrCreateConstant<double>(value); in FindOrCreateDoubleConstant() local
/arkcompiler/runtime_core/compiler/optimizer/analysis/
Dobject_type_propagation.cpp30 auto inst = i->CastToNewObject(); in VisitNewObject() local
40 auto inst = i->CastToNewArray(); in VisitNewArray() local
50 auto inst = i->CastToLoadString(); in VisitLoadString() local

123456