Home
last modified time | relevance | path

Searched refs:IsConst (Results 1 - 25 of 85) sorted by relevance

1234

/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
H A Dconst_folding.cpp254 if (input->IsConst()) { in ConstFoldingCast()
269 if (input.GetInst()->IsConst()) { in ConstFoldingNeg()
296 if (input.GetInst()->IsConst()) { in ConstFoldingAbs()
331 if (input.GetInst()->IsConst()) { in ConstFoldingNot()
346 if (input0.GetInst()->IsConst() && input1.GetInst()->IsConst()) { in ConstFoldingAdd()
376 if (input0.GetInst()->IsConst() && input1.GetInst()->IsConst()) { in ConstFoldingSub()
413 if (input0->IsConst() && input1->IsConst()) { in ConstFoldingMul()
[all...]
H A Dpeepholes.cpp398 if (!input1->IsConst()) { in VisitMulOneConst()
479 if (input1->IsConst()) { in VisitMul()
513 if (input1->IsConst()) { in VisitDiv()
625 if (op1->GetOpcode() == Opcode::Shl && op2->IsConst() && op1->GetInput(1) == op2) { in VisitShr()
679 if (op1->GetOpcode() == Opcode::Shl && op2->IsConst() && op1->GetInput(1) == op2) { in VisitAShr()
703 return input1->IsConst() && input0->GetOpcode() == Opcode::Cast && in ApplyForCastU16()
725 if (input1->IsConst() && static_cast<ConstantInst *>(input1)->GetIntValue() == static_cast<uint64_t>(-1)) { in VisitAnd()
820 } else if (input1->IsConst() && static_cast<ConstantInst *>(input1)->GetIntValue() == static_cast<uint64_t>(0)) { in VisitOr()
871 if (input1->IsConst()) { in VisitXor()
1065 if (!input1->IsConst()) { in TrySimplifyCompareAnyType()
[all...]
H A Dlowering.cpp76 if (input->IsConst() && baseType == DataType::VOID) { in VisitCastValueToAnyType()
344 return c->IsConst(); in SatisfyReplaceDivMovConditions()
540 if (input1->GetType() == DataType::BOOL && input0->IsConst() && input0->CastToConstant()->GetIntValue() == 0U) { in VisitCompare()
546 input0->GetType() == DataType::BOOL && input1->IsConst() && input1->CastToConstant()->GetIntValue() == 0U; in VisitCompare()
679 if (!cnst->IsConst()) { in GetCheckInstAndGetConstInput()
680 if (!inst->IsCommutative() || !inst->GetInput(0).GetInst()->IsConst()) { in GetCheckInstAndGetConstInput()
900 if (!inputInst->IsConst()) { in LowerCastValueToAnyTypeWithConst()
1115 if (inputInst->IsConst()) { in LowerConstArrayIndex()
1176 (inputInst->IsConst() && (!skipFloats || inputInst->GetType() == DataType::INT64))) { in LowerStateInst()
1205 if (inputInst->IsConst()) { in LowerReturnInst()
[all...]
H A Dif_merging.cpp87 if (rhs->IsConst() && lhs->GetOpcode() == Opcode::Phi && in TryRemoveConstantPhiIf()
91 if (lhs->IsConst() && rhs->GetOpcode() == Opcode::Phi && in TryRemoveConstantPhiIf()
153 if (!input.GetInst()->IsConst()) { in TryRemoveConstantPhiIf()
H A Dloop_idioms.cpp155 if (loopInfo.init->IsConst() && loopInfo.test->IsConst()) { in TryTransformArrayInitIdiom()
/arkcompiler/runtime_core/libpandabase/utils/
H A Dbit_vector.h29 template <bool IsConst>
34 template <bool IsConst>
35 inline void fill(panda::BitVectorIterator<IsConst> first, panda::BitVectorIterator<IsConst> last, bool value);
94 template <bool IsConst>
96 using WordType = std::conditional_t<IsConst, const uint32_t, uint32_t>;
97 using Reference = std::conditional_t<IsConst, bool, BitReference>;
98 using Pointer = std::conditional_t<IsConst, const bool *, BitReference *>;
142 if constexpr (IsConst) { // NOLINT(readability-braces-around-statements) in operator *()
235 friend class BitVectorIterator<!IsConst>;
[all...]
/arkcompiler/runtime_core/static_core/bytecode_optimizer/
H A Dcanonicalization.cpp57 if (!input0->IsConst()) { in BetterToSwapCompareInputs()
60 if (!input1->IsConst()) { in BetterToSwapCompareInputs()
87 return SwapInputsIfNecessary(inst, inst->GetInput(0U).GetInst()->IsConst()); in TrySwapConstantInput()
110 if (!input1->IsConst()) { in AllowSwap()
H A Dreg_acc_alloc.cpp52 if (!inst->IsConst()) { in IsAccWriteInInst()
185 if (inst->IsPhi() && inputInst->IsConst() && in CanUserReadAcc()
279 return inst->IsConst() || inst->IsBinaryInst() || inst->IsBinaryImmInst() || opcode == compiler::Opcode::LoadObject; in MaybeRegDst()
287 if (inst->IsConst()) { in InitRegistersForInst()
H A Dconst_array_resolver.cpp64 if ((input->GetOpcode() == Opcode::NullPtr) || !input->IsConst()) { in GetConstantIfPossible()
72 if (inst->IsConst()) { in GetConstantIfPossible()
/arkcompiler/runtime_core/compiler/tests/
H A Dbranch_elimination_new_test.cpp71 return input_inst->IsConst() || IsIntrinsicConstInst(input_inst); in IsIfWithConstInputs()
77 if (inst->IsConst()) { in GetConstValue()
91 ASSERT(input_inst->IsConst() || IsIntrinsicConstInst(input_inst)); in GetDeadBranch()
/arkcompiler/runtime_core/static_core/irtoc/backend/compiler/
H A Ddangling_pointers_checker.cpp329 if (inputInst->IsConst() || in GetPhiAccDef()
330 (inputInst->GetOpcode() == Opcode::Bitcast && inputInst->GetInput(0).GetInst()->IsConst())) { in GetPhiAccDef()
362 if (inputInst->IsConst() || in GetAccDefFromInputs()
363 (inputInst->GetOpcode() == Opcode::Bitcast && inputInst->GetInput(0).GetInst()->IsConst())) { in GetAccDefFromInputs()
385 if ((isAccTagDef || inputInst->IsConst()) && (inputIdx == inputsCount - 1)) { in GetPhiAccTagDef()
389 if (isAccTagDef || inputInst->IsConst()) { in GetPhiAccTagDef()
411 if ((inputIdx == inputsCount - 1) && inputInst->IsConst()) { in IsAccTagDefInInputs()
492 if (storeInput1 != lastAccTagDef_ && !storeInput1->IsConst()) { in CheckStoreAccTag()
/arkcompiler/runtime_core/bytecode_optimizer/
H A Dreg_acc_alloc.cpp194 if (inst->IsConst()) { in InitializeSourceRegisters()
200 if (inst->IsConst()) { in InitializeSourceRegisters()
244 if (!inst->IsConst()) { in MarkAccForInstructions()
281 if (input->IsConst()) { in UpdateInstructionsAfterMark()
H A Dmodule_constant_analyzer.cpp80 if (inst->GetDataFlowInput(0)->IsConst() || in GetInstConstValue()
/arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/
H A Dcountable_loop_parser.cpp149 if (!loopInfo.init->IsConst() || !loopInfo.test->IsConst() || loopInfo.constStep == 0) { in GetLoopIterations()
200 if (inst->GetInput(0).GetInst()->IsConst() && inst->GetInput(1).GetInst()->IsPhi()) { in IsInstIncOrDec()
202 } else if (inst->GetInput(1).GetInst()->IsConst() && inst->GetInput(0).GetInst()->IsPhi()) { in IsInstIncOrDec()
253 if (loopInfo_.index->IsConst()) { in SetIndexAndConstStep()
H A Dbounds_analysis.cpp35 return c->IsConst() && c->CastToConstant()->GetInt64Value() == 1; in IsStringLength()
194 if (!range.IsConst() || range.IsNegative()) { in Shr()
214 if (!range.IsConst() || range.IsNegative()) { in AShr()
226 if (!range.IsConst() || range.IsNegative()) { in Shl()
263 if (!range.IsConst()) { in And()
274 bool BoundsRange::IsConst() const in IsConst() function in ark::compiler::BoundsRange
445 if (left_range.IsConst() && !right_range.IsConst()) { in NarrowBoundsByNE()
453 if (!left_range.IsConst() && right_range.IsConst()) { in NarrowBoundsByNE()
[all...]
/arkcompiler/runtime_core/compiler/optimizer/optimizations/
H A Dlowering.cpp46 if (in0->IsConst()) { in BetterToSwapCompareInputs()
47 if (in1->IsConst()) { in BetterToSwapCompareInputs()
115 if (cst->IsConst() && ConstantFitsCompareImm(cst, size, cc)) { in LowerIf()
/arkcompiler/ets_frontend/es2panda/ir/ts/
H A DtsAsExpression.h58 bool IsConst() const in IsConst() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::TSAsExpression
H A DtsEnumDeclaration.h80 bool IsConst() const in IsConst() function in panda::es2panda::panda::es2panda::panda::es2panda::panda::es2panda::ir::TSEnumDeclaration
/arkcompiler/runtime_core/static_core/plugins/ets/compiler/optimizer/
H A Dets_intrinsics_peephole.cpp118 if (!input1->IsConst() || input1->CastToConstant()->GetRawValue() != 1) { in GetStringFromLength()
141 if (!begin->IsConst() || begin->GetType() != DataType::INT64) { in PeepholeStringSubstring()
333 if (!(radix->IsConst() && radix->CastToConstant()->GetIntValue() == TEN)) { in PeepholeDoubleToString()
509 if (!qnameStartInst->IsConst() || !qnameLenInst->IsConst()) { in PeepholeResolveQualifiedJSCall()
/arkcompiler/runtime_core/compiler/optimizer/ir_builder/
H A Dinst_builder-inl.h68 if (input->IsConst() && !DataType::IsFloatType(type)) { in BuildCastToAnyNumber()
/arkcompiler/ets_frontend/ets2panda/ir/ts/
H A DtsAsExpression.h54 [[nodiscard]] bool IsConst() const noexcept
H A DtsEnumDeclaration.h113 bool IsConst() const in IsConst() function in ark::es2panda::ark::es2panda::ir::TSEnumDeclaration
/arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/
H A Dreg_alloc_resolver.cpp190 if (input_inst->IsConst() || !IsTypeCollectable(input_inst->GetType())) { in FillSaveStateRootsMask()
245 ASSERT(inst->IsConst() || inst->IsPhi() || inst->IsParameter()); in ResolveOutput()
/arkcompiler/ets_frontend/ets2panda/checker/ets/
H A DassignAnalyzer.cpp517 if (var->IsStatic() && (var->IsConst() || CHECK_ALL_PROPERTIES)) { in ProcessClassDefStaticFields()
542 if (!var->IsStatic() && (var->IsConst() || CHECK_ALL_PROPERTIES)) { in CheckAnonymousClassCtor()
596 if (!var->IsStatic() && (var->IsConst() || CHECK_ALL_PROPERTIES)) { in AnalyzeMethodDef()
1289 return node->IsClassProperty() && node->IsConst(); in IsConstUninitializedField()
1402 if (node != declNode && declNode->IsConst()) { in LetInit()
1448 if (!CHECK_ALL_PROPERTIES && !declNode->IsConst()) { in CheckInit()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/topLevelStmts/
H A DglobalDeclTransformer.cpp97 if (addInitializer_ && !classProperty->IsConst() && initializer != nullptr) { in InitTopLevelProperty()

Completed in 23 milliseconds

1234