/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
H A D | if_merging.h | 52 bool TryRemoveConstantPhiIf(IfImmInst *ifImm, PhiInst *phi, uint64_t constant, ConditionCode cc); 57 void SplitBlockWithConstantPhi(BasicBlock *bb, BasicBlock *trueBb, PhiInst *phi, uint64_t constant,
|
H A D | if_merging.cpp | 62 // Splits block while it contains If comparing phi with constant inputs to another constant 73 // Tries to remove If that compares phi with constant inputs to another constant 145 // In case If has constant phi input and can be removed, removes it and returns true 146 bool IfMerging::TryRemoveConstantPhiIf(IfImmInst *ifImm, PhiInst *phi, uint64_t constant, ConditionCode cc) in TryRemoveConstantPhiIf() argument 169 COMPILER_LOG(DEBUG, IF_MERGING) << "Comparison of constant and Phi instruction with constant inputs was found. " in TryRemoveConstantPhiIf() 172 SplitBlockWithConstantPhi(bb, trueBb, phi, constant, cc); in TryRemoveConstantPhiIf() 268 void IfMerging::SplitBlockWithConstantPhi(BasicBlock *bb, BasicBlock *trueBb, PhiInst *phi, uint64_t constant, in SplitBlockWithConstantPhi() argument [all...] |
H A D | inlining.cpp | 740 auto constant = oldDef->CastToConstant(); in GetNewDefAndCorrectDF() local 741 auto exisingConstant = GetGraph()->FindOrAddConstant(constant); in GetNewDefAndCorrectDF() 1505 * Move constants of the inlined graph to the current one if same constant doesn't already exist. 1506 * If constant exists just fix callee graph's dataflow to use existing constants. 1511 for (ConstantInst *constant = graphInl->GetFirstConstInst(), *nextConstant = nullptr; constant != nullptr; in MoveConstants() 1512 constant = nextConstant) { in MoveConstants() 1513 nextConstant = constant->GetNextConst(); in MoveConstants() 1514 startBb->EraseInst(constant); in MoveConstants() 1515 auto exisingConstant = GetGraph()->FindOrAddConstant(constant); in MoveConstants() [all...] |
/arkcompiler/runtime_core/compiler/optimizer/ir/ |
H A D | graph.cpp | 375 for (auto constant = GetFirstConstInst(); constant != nullptr; constant = constant->GetNextConst()) { in FindConstant() 376 if (constant->GetType() != type) { in FindConstant() 379 if (IsBytecodeOptimizer() && IsInt32Bit(type) && (constant->GetInt32Value() == static_cast<uint32_t>(value))) { in FindConstant() 380 return constant; in FindConstant() 382 if (constant->IsEqualConst(type, value)) { in FindConstant() 383 return constant; in FindConstant()
|
/arkcompiler/ets_frontend/es2panda/ir/ |
H A D | astDump.h | 84 Property(const char *key, Constant constant) : key_(key), value_(constant) {} in Property() argument 195 void SerializeConstant(Property::Constant constant);
|
H A D | astDump.cpp | 161 void AstDumper::SerializeConstant(Property::Constant constant) in SerializeConstant() argument 163 switch (constant) { in SerializeConstant()
|
/arkcompiler/ets_frontend/ets2panda/ast_verifier/ |
H A D | checkInfiniteLoop.cpp | 54 const auto [constant, truthy] = type->ResolveConditionExpr(); in ConditionIsAlwaysTrue() 55 return (constant && truthy); in ConditionIsAlwaysTrue()
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/ |
H A D | graph.cpp | 428 for (auto constant = GetFirstConstInst(); constant != nullptr; constant = constant->GetNextConst()) { in FindConstant() 429 if (constant->GetType() != type) { in FindConstant() 432 if (IsBytecodeOptimizer() && IsInt32Bit(type) && (constant->GetInt32Value() == static_cast<uint32_t>(value))) { in FindConstant() 433 return constant; in FindConstant() 435 if (constant->IsEqualConst(type, value)) { in FindConstant() 436 return constant; in FindConstant()
|
/arkcompiler/ets_runtime/ecmascript/stackmap/ |
H A D | ark_stackmap_parser.cpp | 243 auto [constant, constantSize, constIsFull] = in ParseArkDeopt() 245 if (constant > INT32_MAX || constant < INT32_MIN) { in ParseArkDeopt() 247 deopt.value = static_cast<LLVMStackMapType::LargeInt>(constant); in ParseArkDeopt() 250 deopt.value = static_cast<LLVMStackMapType::IntType>(constant); in ParseArkDeopt()
|
/arkcompiler/ets_frontend/ets2panda/ir/ |
H A D | astDump.h | 99 Property(const char *key, Constant constant) : key_(key), value_(constant) {} in Property() argument 237 void SerializeConstant(Property::Constant constant);
|
H A D | astDump.cpp | 166 void AstDumper::SerializeConstant(Property::Constant constant) in SerializeConstant() argument 168 switch (constant) { in SerializeConstant()
|
/arkcompiler/runtime_core/static_core/compiler/tests/ |
H A D | liveness_analyzer_test.cpp | 950 auto constant = &INS(0U); in TEST_F() local 953 EXPECT_TRUE(ut.HasUseOnFixedLocation(constant, call0->GetBegin())); in TEST_F() 954 EXPECT_TRUE(ut.HasUseOnFixedLocation(constant, call1->GetBegin())); in TEST_F() 955 EXPECT_FALSE(ut.HasUseOnFixedLocation(constant, add0->GetBegin())); in TEST_F() 956 EXPECT_FALSE(ut.HasUseOnFixedLocation(constant, add1->GetBegin())); in TEST_F() 957 EXPECT_EQ(ut.GetNextUseOnFixedLocation(constant, call0->GetBegin()), INS(2U).GetLocation(0U).GetRegister()); in TEST_F() 958 EXPECT_EQ(ut.GetNextUseOnFixedLocation(constant, call1->GetBegin()), INS(5U).GetLocation(1U).GetRegister()); in TEST_F()
|
H A D | peepholes_test.cpp | 260 void CheckCompareFoldIntoTest(uint64_t constant, ConditionCode cc, bool success, ConditionCode expectedCc = CC_EQ) in CheckCompareFoldIntoTest() argument 267 CONSTANT(2U, constant); in CheckCompareFoldIntoTest() 300 void CheckIfAndZeroFoldIntoIfTest(uint64_t constant, ConditionCode cc, bool success, in CheckIfAndZeroFoldIntoIfTest() argument 308 CONSTANT(2U, constant); in CheckIfAndZeroFoldIntoIfTest() 359 void CheckCompareLenArrayWithZeroTest(int64_t constant, ConditionCode cc, std::optional<bool> expectedValue, in CheckCompareLenArrayWithZeroTest() argument 366 CONSTANT(1U, constant); in CheckCompareLenArrayWithZeroTest() 2066 // Checking the shift with zero constant 2154 // Checking the shift for a constant greater than the type size 2284 // not applied, same inputs but not a constant in TEST_F() 2314 // Checking the shift with zero constant [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | array_bounds_check_elimination.cpp | 49 ArrayBoundsCheckElimination::Bound::Bound(TypedBinOp op, GateRef gate, int constant) in Bound() argument 53 lower_ = constant; in Bound() 55 upper_ = constant; in Bound() 65 if (constant == INT_MIN) { in Bound() 68 if (constant == INT_MAX) { in Bound() 75 lower_ = constant; in Bound() 84 upper_ = constant; in Bound() 181 if (!acc_.IsConstant(x) || !acc_.IsConstant(y)) { // One of the operands must be non-constant! in DoBinaryArithmeticOp() 209 // x is constant, y is variable. in DoBinaryArithmeticOp() 535 if (acc_.IsConstant(x)) { // x must be non-constant! in AddIfCondition() [all...] |
H A D | async_function_lowering.cpp | 109 auto constant = builder_.UndefineConstant();
in RebuildGeneratorCfg() local 111 { ifFalse, ifFalseDepend, constant, circuit_->GetReturnRoot() },
in RebuildGeneratorCfg() 121 // This constant gate must be created by the NewGate method to distinguish whether the while
in RebuildGeneratorCfg()
|
H A D | array_bounds_check_elimination.h | 42 Bound(TypedBinOp op, GateRef gate, int constant);
|
H A D | bytecode_circuit_builder.cpp | 800 auto constant = circuit_->GetConstantGate(MachineType::I64, in MergeThrowGate() local 804 { state, depend, constant, circuit_->GetReturnRoot() }); in MergeThrowGate() 935 auto constant = circuit_->GetConstantGate(MachineType::I64, in NewReturn() local 939 { state, depend, constant, circuit_->GetReturnRoot() }); in NewReturn()
|
H A D | gate_accessor.cpp | 1232 auto constant = builder.ExceptionConstant(); in ExceptionReturn() local 1233 builder.Return(state, depend, constant); in ExceptionReturn()
|
/arkcompiler/runtime_core/compiler/tests/ |
H A D | dump_test.cpp | 197 ConstantInst constant(Opcode::Constant, value, false); in HWTEST_F() 198 constant.DumpInputs(&out); in HWTEST_F() 200 constant.GetInt64Value(); in HWTEST_F() 201 EXPECT_TRUE(constant.IsBoolConst()); in HWTEST_F()
|
H A D | compiler_graph_test.cpp | 221 auto constant = inst->CastToConstant(); in HWTEST_F() 222 EXPECT_TRUE(graph->FindOrAddConstant(constant)->HasType()); in HWTEST_F()
|
/arkcompiler/ets_runtime/ecmascript/snapshot/mem/ |
H A D | snapshot.cpp | 119 auto constant = const_cast<GlobalEnvConstants *>(vm_->GetJSThread()->GlobalConstants()); in SerializeBuiltins() local 120 constant->VisitRangeSlot([&objectQueue, &data, &processor]([[maybe_unused]] Root type, in SerializeBuiltins() 263 int index = 0; // 0 represents the line string. Natural number 1 represents the constant string. in WriteToFile()
|
/arkcompiler/runtime_core/static_core/plugins/ets/doc/ |
H A D | validate-recipes | 21 use constant false => 0; 22 use constant true => 1;
|
/arkcompiler/runtime_core/static_core/irtoc/lang/ |
H A D | function.rb | 169 constant = @constants[value] 170 return @constants[value] unless constant.nil?
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | ecma_vm.h | 821 void CacheToGlobalConstants(JSTaggedValue value, ConstantIndex constant);
|
/arkcompiler/runtime_core/static_core/libllvmbackend/lowering/ |
H A D | llvm_ir_constructor.h | 80 llvm::Value *GetInputValueFromConstant(ConstantInst *constant, DataType::Type pandaType);
|