Home
last modified time | relevance | path

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

1234567891011

/arkcompiler/runtime_core/static_core/libpandafile/tests/
Dbytecode_instruction_tests.cpp34 BytecodeInstruction inst(bytecode); in TEST() local
42 BytecodeInstruction inst(bytecode); in TEST() local
51 BytecodeInstruction inst(bytecode); in TEST() local
58 BytecodeInstruction inst(bytecode); in TEST() local
66 BytecodeInstruction inst(bytecode); in TEST() local
74 BytecodeInstruction inst(bytecode); in TEST() local
83 BytecodeInstruction inst(bytecode); in TEST() local
90 BytecodeInstruction inst(bytecode); in TEST() local
98 BytecodeInstruction inst(bytecode); in TEST() local
106 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 …]
/arkcompiler/runtime_core/static_core/compiler/tests/
Diterators_test.cpp29 for (auto inst : block->PhiInsts()) { in CheckInstForwardIterator() local
35 for (auto inst : block->Insts()) { in CheckInstForwardIterator() local
41 for (auto inst : block->AllInsts()) { in CheckInstForwardIterator() local
50 for (auto inst : block->PhiInstsSafe()) { in CheckInstForwardValidIterator() local
56 for (auto inst : block->InstsSafe()) { in CheckInstForwardValidIterator() local
62 for (auto inst : block->AllInstsSafe()) { in CheckInstForwardValidIterator() local
71 for (auto inst : block->PhiInstsSafeReverse()) { in CheckInstBackwardValidIterator() local
78 for (auto inst : block->InstsSafeReverse()) { in CheckInstBackwardValidIterator() local
85 for (auto inst : block->AllInstsSafeReverse()) { in CheckInstBackwardValidIterator() local
96 for (auto inst : block->PhiInstsSafe()) { in CheckInstForwardValidIteratorWithErasing() local
[all …]
Dconst_folding_test.cpp64 ConstantInst *inst = graph->FindConstant(DataType::INT64, result); in CmpTest() local
87 ConstantInst *inst = nullptr; in CastTest() local
114 auto inst = graph->FindConstant(DataType::INT64, *result); in CheckCompareEqualInputs() local
136 auto inst = graph->FindConstant(DataType::INT64, result); in CheckCompareLoadImmediate() local
362 auto inst = GetGraph()->FindConstant(DataType::INT64, result); in TEST_F() local
381 auto inst = GetGraph()->FindConstant(DataType::INT64, result); in TEST_F() local
401 auto inst = graph->FindConstant(DataType::INT32, result); in TEST_F() local
420 auto inst = GetGraph()->FindConstant(DataType::FLOAT32, bit_cast<uint32_t, float>(result)); in TEST_F() local
439 auto inst = GetGraph()->FindConstant(DataType::FLOAT64, bit_cast<uint64_t, double>(result)); in TEST_F() local
458 auto inst = GetGraph()->FindConstant(DataType::INT64, result); in TEST_F() local
[all …]
/arkcompiler/runtime_core/libpandafile/tests/
Dbytecode_instruction_tests.cpp32 BytecodeInstruction inst(bytecode); in TEST() local
40 BytecodeInstruction inst(bytecode); in TEST() local
52 BytecodeInstruction inst(bytecode); in TEST() local
59 BytecodeInstruction inst(bytecode); in TEST() local
67 BytecodeInstruction inst(bytecode); in TEST() local
75 BytecodeInstruction inst(bytecode); in TEST() local
87 BytecodeInstruction inst(bytecode); in TEST() local
94 BytecodeInstruction inst(bytecode); in TEST() local
102 BytecodeInstruction inst(bytecode); in TEST() local
110 BytecodeInstruction inst(bytecode); in TEST() local
[all …]
Dbytecode_imm_fetch_tests.cpp31 BytecodeInstruction inst(bytecode); in TEST() local
41 BytecodeInstruction inst(bytecode); in TEST() local
50 BytecodeInstruction inst(bytecode); in TEST() local
60 BytecodeInstruction inst(bytecode); in TEST() local
71 BytecodeInstruction inst(bytecode); in TEST() local
82 BytecodeInstruction inst(bytecode); in TEST() local
92 BytecodeInstruction inst(bytecode); in TEST() local
105 BytecodeInstruction inst(bytecode); in TEST() local
117 BytecodeInstruction inst(bytecode); in TEST() local
129 BytecodeInstruction inst(bytecode); in TEST() local
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
Dmemory_barriers.cpp30 for (auto inst : barriersInsts_) { 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::VisitCallResolvedStatic(GraphVisitor *v, Inst *inst) in VisitCallResolvedStatic()
92 void OptimizeMemoryBarriers::VisitCallVirtual(GraphVisitor *v, Inst *inst) in VisitCallVirtual()
100 void OptimizeMemoryBarriers::VisitCallResolvedVirtual(GraphVisitor *v, Inst *inst) in VisitCallResolvedVirtual()
108 void OptimizeMemoryBarriers::VisitCallLaunchStatic(GraphVisitor *v, Inst *inst) in VisitCallLaunchStatic()
[all …]
Dcleanup.h115 inline uint32_t GetInstId(Inst *inst) const in GetInstId()
124 void SetIdom(Inst *inst, Inst *idom) in SetIdom()
128 Inst *GetIdom(Inst *inst) const in GetIdom()
136 void SetAncestor(Inst *inst, Inst *anc) in SetAncestor()
140 Inst *GetAncestor(Inst *inst) const in GetAncestor()
148 InstVector &GetBucket(Inst *inst) in GetBucket()
156 void SetLabel(Inst *inst, Inst *label) in SetLabel()
160 Inst *GetLabel(Inst *inst) const in GetLabel()
168 void SetParent(Inst *inst, Inst *parent) in SetParent()
172 Inst *GetParent(Inst *inst) const in GetParent()
[all …]
Dstring_builder_utils.cpp20 bool IsStringBuilderInstance(Inst *inst) in IsStringBuilderInstance()
35 bool IsMethodStringConcat(Inst *inst) in IsMethodStringConcat()
50 bool IsMethodStringBuilderConstructorWithStringArg(Inst *inst) in IsMethodStringBuilderConstructorWithStringArg()
65 bool IsMethodStringBuilderConstructorWithCharArrayArg(Inst *inst) in IsMethodStringBuilderConstructorWithCharArrayArg()
80 bool IsStringBuilderToString(Inst *inst) in IsStringBuilderToString()
94 bool IsMethodStringBuilderDefaultConstructor(Inst *inst) in IsMethodStringBuilderDefaultConstructor()
109 void InsertBeforeWithSaveState(Inst *inst, Inst *before) in InsertBeforeWithSaveState()
117 void InsertAfterWithSaveState(Inst *inst, Inst *after) in InsertAfterWithSaveState()
125 void InsertBeforeWithInputs(Inst *inst, Inst *before) in InsertBeforeWithInputs()
139 bool HasInput(Inst *inst, const FindInputPredicate &predicate) in HasInput()
[all …]
Dvn.cpp26 inline bool IsNotCommutativeInst(Inst *inst) in IsNotCommutativeInst()
31 inline bool IsAddressArithmeticInst(Inst *inst) in IsAddressArithmeticInst()
37 static bool AddClassInst(Inst *inst, VnObject *obj) in AddClassInst()
56 static bool AddGlobalVarInst(Inst *inst, VnObject *obj) in AddGlobalVarInst()
68 static bool AddSelectImmInst(Inst *inst, VnObject *obj) in AddSelectImmInst()
88 static bool AddCommutativeInst(Inst *inst, VnObject *obj) in AddCommutativeInst()
112 static void AddSpecialTraits(Inst *inst, VnObject *obj) in AddSpecialTraits()
140 static bool IsIrreducibleClassInst(Inst *inst, Inst *equivInst) in IsIrreducibleClassInst()
146 static bool AddResolver(Inst *inst, VnObject *obj) in AddResolver()
179 void VnObject::Add(Inst *inst) in Add()
[all …]
Dlowering.cpp26 void Lowering::VisitAdd([[maybe_unused]] GraphVisitor *v, Inst *inst) in VisitAdd()
35 void Lowering::VisitSub([[maybe_unused]] GraphVisitor *v, Inst *inst) in VisitSub()
44 void Lowering::VisitCastValueToAnyType([[maybe_unused]] GraphVisitor *v, Inst *inst) in VisitCastValueToAnyType()
90 void Lowering::VisitCast([[maybe_unused]] GraphVisitor *v, Inst *inst) in VisitCast()
121 void Lowering::VisitBitwiseBinaryOperation([[maybe_unused]] GraphVisitor *v, Inst *inst) in VisitBitwiseBinaryOperation()
130 void Lowering::VisitOr(GraphVisitor *v, Inst *inst) in VisitOr()
135 void Lowering::VisitAnd(GraphVisitor *v, Inst *inst) in VisitAnd()
140 void Lowering::VisitXor(GraphVisitor *v, Inst *inst) in VisitXor()
145 void Lowering::VisitAndNot([[maybe_unused]] GraphVisitor *v, Inst *inst) in VisitAndNot()
150 void Lowering::VisitXorNot([[maybe_unused]] GraphVisitor *v, Inst *inst) in VisitXorNot()
[all …]
Dpeepholes.cpp37 void Peepholes::VisitSafePoint(GraphVisitor *v, Inst *inst) in VisitSafePoint()
47 void Peepholes::VisitNeg([[maybe_unused]] GraphVisitor *v, Inst *inst) in VisitNeg()
94 void Peepholes::VisitAbs([[maybe_unused]] GraphVisitor *v, Inst *inst) in VisitAbs()
110 void Peepholes::VisitNot([[maybe_unused]] GraphVisitor *v, Inst *inst) in VisitNot()
118 void Peepholes::VisitAddFinalize([[maybe_unused]] GraphVisitor *v, Inst *inst, Inst *input0, Inst *… in VisitAddFinalize()
232 void Peepholes::VisitAdd([[maybe_unused]] GraphVisitor *v, Inst *inst) in VisitAdd()
277 void Peepholes::VisitSubFinalize([[maybe_unused]] GraphVisitor *v, Inst *inst, Inst *input0, Inst *… in VisitSubFinalize()
340 void Peepholes::VisitSub([[maybe_unused]] GraphVisitor *v, Inst *inst) in VisitSub()
396 void Peepholes::VisitMulOneConst([[maybe_unused]] GraphVisitor *v, Inst *inst, Inst *input0, Inst *… in VisitMulOneConst()
466 void Peepholes::VisitMul(GraphVisitor *v, Inst *inst) in VisitMul()
[all …]
Dlicm.cpp101 bool AllInputsDominate(Inst *inst, Inst *dom) in AllInputsDominate()
111 void Licm::TryAppendHoistableInst(Inst *inst, BasicBlock *block, Loop *loop) in TryAppendHoistableInst()
136 static bool IsUnsafeForResolver(const Inst *inst) in IsUnsafeForResolver()
149 for (auto *inst : InstIter(*preHeader, insertBefore)) { in EndOfPreheaderIsSafe() local
165 void Licm::UnmarkHoistUsers(Inst *inst) in UnmarkHoistUsers()
172 static void MoveInstToPreHeader(Inst *inst, BasicBlock *preHeader, Inst *insertBefore) in MoveInstToPreHeader()
199 for (auto inst : hoistableInstructions_) { in MoveInstructions() local
244 for (auto inst : block->InstsSafe()) { in VisitLoop() local
289 for (auto inst : InstSafeReverseIter(*currBb, startInst)) { in FindUnsafeInstBetween() local
308 for (const auto &inst : preHeader->InstsSafeReverse()) { in FindSaveStateForHoist() local
[all …]
/arkcompiler/runtime_core/compiler/optimizer/optimizations/
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 …]
/arkcompiler/runtime_core/static_core/bytecode_optimizer/
Dreg_encoder.cpp22 static bool IsIntrinsicRange(Inst *inst) in IsIntrinsicRange()
49 static bool CanHoldRange(Inst *inst) in CanHoldRange()
69 for (const auto &inst : bb->AllInsts()) { in CalculateNumNeededRangeTemps() local
172 static void RenumberSpillFillRegs(ark::compiler::SpillFillInst *inst, const ark::compiler::Register… in RenumberSpillFillRegs()
185 static void RenumberRegsForInst(compiler::Inst *inst, const compiler::Register minReg, const compil… in RenumberRegsForInst()
219 for (auto inst : bb->AllInsts()) { in RenumberRegs() local
316 for (auto inst : bb->AllInstsSafe()) { in InsertSpills() local
332 for (auto inst : bb->AllInstsSafe()) { in CalculateNumNeededTemps() local
347 static void AddMoveBefore(Inst *inst, const T &spContainer) in AddMoveBefore()
362 static bool IsAccReadPosition(compiler::Inst *inst, size_t pos) in IsAccReadPosition()
[all …]
Dcanonicalization.cpp26 for (auto inst : bb->AllInsts()) { in RunImpl() local
37 static bool IsDominateReverseInputs(const compiler::Inst *inst) in IsDominateReverseInputs()
54 static bool BetterToSwapCompareInputs(const compiler::Inst *inst, const compiler::Inst *input0, in BetterToSwapCompareInputs()
70 static bool SwapInputsIfNecessary(compiler::Inst *inst, const bool necessary) in SwapInputsIfNecessary()
85 bool Canonicalization::TrySwapConstantInput(Inst *inst) in TrySwapConstantInput()
90 bool Canonicalization::TrySwapReverseInput(Inst *inst) in TrySwapReverseInput()
95 void Canonicalization::VisitCommutative(Inst *inst) in VisitCommutative()
107 bool AllowSwap(const compiler::Inst *inst) in AllowSwap()
123 auto inst = instBase->CastToCompare(); in VisitCompare() local
Dreg_acc_alloc.cpp44 static bool IsAccWriteInInst(compiler::Inst *inst) in IsAccWriteInInst()
59 static bool IsAccReadFromReg(compiler::Inst *srcInst, compiler::Inst *inst) in IsAccReadFromReg()
74 compiler::Inst *inst = srcInst->GetNext(); in IsAccWriteBetween() local
115 static bool IsCommutative(compiler::Inst *inst) in IsCommutative()
124 bool UserNeedSwapInputs(compiler::Inst *inst, compiler::Inst *user) in UserNeedSwapInputs()
144 bool RegAccAlloc::CanUserReadAcc(compiler::Inst *inst, compiler::Inst *user) const in CanUserReadAcc()
235 void RegAccAlloc::SetNeedLda(compiler::Inst *inst, bool need) in SetNeedLda()
250 static inline bool MaybeRegDst(compiler::Inst *inst) in MaybeRegDst()
256 static void InitRegistersForInst(compiler::Inst *inst) in InitRegistersForInst()
275 for (auto inst : block->Insts()) { in InitRegisters() local
[all …]
Dcodegen.cpp113 void BytecodeGen::AddLineAndColumnNumber(const compiler::Inst *inst, size_t idx) in AddLineAndColumnNumber()
130 for (const auto &inst : bb->AllInsts()) { in RunImpl() local
184 void BytecodeGen::AddLineNumber(const Inst *inst, const size_t idx) in AddLineNumber()
192 void BytecodeGen::AddColumnNumber(const Inst *inst, const uint32_t idx) in AddColumnNumber()
237 void BytecodeGen::VisitSpillFill(GraphVisitor *visitor, Inst *inst) in VisitSpillFill()
246 bool HasUserPredicate(Inst *inst, UnaryPred p) in HasUserPredicate()
258 static void VisitConstant32(BytecodeGen *enc, compiler::Inst *inst, std::vector<pandasm::Ins> &res) in VisitConstant32()
307 static void VisitConstant64(BytecodeGen *enc, compiler::Inst *inst, std::vector<pandasm::Ins> &res) in VisitConstant64()
351 void BytecodeGen::VisitConstant(GraphVisitor *visitor, Inst *inst) in VisitConstant()
482 static ark::compiler::CallInst *CastToCall(ark::compiler::Inst *inst) in CastToCall()
[all …]
Dcheck_resolver.cpp22 static void ReplaceCheck(compiler::Inst *inst) in ReplaceCheck()
34 static void MarkLenArray(compiler::Inst *inst) in MarkLenArray()
53 for (auto inst : bb->Insts()) { in RunImpl() local
76 bool CheckResolver::NeedSetNoDCE(const compiler::Inst *inst) in NeedSetNoDCE()
90 bool CheckResolver::IsCheck(const compiler::Inst *inst) in IsCheck()
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
Dgraph_checker.cpp84 for (auto inst : block->AllInsts()) { in UserInputCheck() local
282 uint32_t GetInliningDepth(Inst *inst) in GetInliningDepth()
297 void GraphChecker::CheckUserOfInt32([[maybe_unused]] BasicBlock *block, Inst *inst, User &user) in CheckUserOfInt32()
323 void GraphChecker::CheckInstUsers(Inst *inst, [[maybe_unused]] BasicBlock *block) in CheckUserOfInt32()
348 for (auto inst : block->AllInsts()) { in CheckUserOfInt32() local
399 for (auto inst : block->Insts()) { in CheckUserOfInt32() local
421 for (auto inst : block->Insts()) { in CheckUserOfInt32() local
432 for (auto inst : domBlock->InstsSafeReverse()) { in CheckUserOfInt32() local
461 for (auto inst : domBlock->InstsSafeReverse()) { in CheckUserOfInt32() local
497 for (auto inst : GetGraph()->GetStartBlock()->AllInsts()) { in CheckUserOfInt32() local
[all …]
Dir_constructor.h125 auto inst = graph_->CreateInst(std::forward<Args>(args)...); in NewInst() local
159 Inst *inst = nullptr; in NewConstant() local
186 auto inst = graph_->AddNewParameter(argNumber); in NewParameter() local
197 auto inst = graph_->GetOrCreateNullPtr(); in AddNullptrInst() local
311 auto inst = CurrentInst(); variable
345 auto inst = CurrentInst(); in Likely() local
363 auto inst = CurrentInst(); in Unlikely() local
381 auto inst = CurrentInst(); in IsArray() local
397 auto inst = CurrentInst(); in CC() local
446 auto inst = CurrentInst(); in Inlined() local
[all …]
/arkcompiler/runtime_core/disassembler/tests/
Ddisassembler_imm_tests.cpp32 BytecodeInstruction inst(bytecode); in TEST() local
41 BytecodeInstruction inst(bytecode); in TEST() local
50 BytecodeInstruction inst(bytecode); in TEST() local
59 BytecodeInstruction inst(bytecode); in TEST() local
71 BytecodeInstruction inst(bytecode); in TEST() local
80 BytecodeInstruction inst(bytecode); in TEST() local
89 BytecodeInstruction inst(bytecode); in TEST() local
99 BytecodeInstruction inst(bytecode); in TEST() local
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir_builder/
Dphi_resolver.h46 for (auto inst : bb->AllInstsSafe()) { in Run() local
55 for (auto inst : bb->AllInstsSafe()) { in Run() local
91 static void SetTypeByInputs(Inst *inst) in SetTypeByInputs()
105 void FindUsersRec(Inst *inst) in FindUsersRec()
124 void FindInputsRec(Inst *inst) in FindInputsRec()
215 void MarkHasRealUserRec(Inst *inst) in MarkHasRealUserRec()
228 void TryRemoveFromSaveStates(Inst *inst) in TryRemoveFromSaveStates()
268 auto inst = *it; in MarkInstsOnPaths() local
282 void RemovePhiInst(Inst *inst) in RemovePhiInst()
315 void MarkPhiWithRealUsers(Inst *inst) in MarkPhiWithRealUsers()
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/
Dalias_analysis.cpp196 static Pointer GetDynamicAccessPointer(Inst *inst, Inst *base, DynObjectAccessType type, DynObjectA… in GetDynamicAccessPointer()
625 bool AliasAnalysis::ParseInstruction(Inst *inst, Pointer *pointer) in ParseInstruction()
676 Pointer AliasAnalysis::ParseArrayElement(Inst *inst) in ParseArrayElement()
698 Pointer AliasAnalysis::ParsePoolConstant(Inst *inst) in ParsePoolConstant()
717 Pointer AliasAnalysis::ParseStaticField(Inst *inst) in ParseStaticField()
745 Pointer AliasAnalysis::ParseObjectField(Inst *inst) in ParseObjectField()
774 Pointer AliasAnalysis::ParseDynamicField(Inst *inst) in ParseDynamicField()
824 void AliasAnalysis::VisitNullPtr(GraphVisitor *v, Inst *inst) in VisitNullPtr()
828 void AliasAnalysis::VisitLoadUndefined(GraphVisitor *v, Inst *inst) in VisitLoadUndefined()
832 void AliasAnalysis::VisitInitObject(GraphVisitor *v, Inst *inst) in VisitInitObject()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/libllvmbackend/
Dets_llvm_ir_constructor_gen.inl16 bool LLVMIrConstructor::EmitArrayCopyTo(Inst *inst)
49 bool LLVMIrConstructor::EmitStdStringSubstring(Inst *inst)
54 bool LLVMIrConstructor::EmitStringBuilderAppendBool(Inst *inst)
64 bool LLVMIrConstructor::EmitStringBuilderAppendChar(Inst *inst)
74 bool LLVMIrConstructor::EmitStringBuilderAppendByte(Inst *inst)
81 bool LLVMIrConstructor::EmitStringBuilderAppendShort(Inst *inst)
88 bool LLVMIrConstructor::EmitStringBuilderAppendInt(Inst *inst)
95 bool LLVMIrConstructor::EmitStringBuilderAppendLong(Inst *inst)
102 bool LLVMIrConstructor::EmitStringBuilderAppendString(Inst *inst)
109 bool LLVMIrConstructor::EmitStringBuilderToString(Inst *inst)
[all …]

1234567891011