| /arkcompiler/runtime_core/docs/ |
| D | PBC2IR.md | 7 | movi | i64 Constant | 8 | movi.64 | i64 Constant | 9 | fmovi | f32 Constant | 10 | fmovi.64 | f64 Constant | 15 | ldai | i64 Constant | 16 | ldai.64 | i64 Constant | 17 | fldai | f32 Constant | 18 | fldai.64 | f64 Constant | 22 | lda.null | i64 Constant 0 | 36 | jeqz.obj | i64 Constant 0, bool Compare EQ, IfImm | [all …]
|
| /arkcompiler/runtime_core/bytecode_optimizer/tests/ |
| D | const_array_resolver_test.cpp | 26 CONSTANT(1, 2).s64(); in TEST_F() 27 CONSTANT(2, 0).s64(); in TEST_F() 49 CONSTANT(1, 2).s64(); in TEST_F() 50 CONSTANT(2, 0).s64(); in TEST_F() 69 CONSTANT(1, 2).s32(); in TEST_F() 70 CONSTANT(2, 0).s32(); in TEST_F() 96 CONSTANT(0, 3).s32(); in TEST_F() 97 CONSTANT(4, 0).s32(); in TEST_F() 98 CONSTANT(6, 100).f64(); in TEST_F() 99 CONSTANT(10, 1).s32(); in TEST_F() [all …]
|
| D | canonicalization_test.cpp | 26 CONSTANT(0, 0).s32(); in TEST_F() 27 CONSTANT(1, 0).s32(); in TEST_F() 42 CONSTANT(0, 0).s32(); in TEST_F() 43 CONSTANT(1, 0).s32(); in TEST_F()
|
| D | bitops_bitwise_and_test.cpp | 82 CONSTANT(23, 0x5f5e100).s32(); in TEST_F() 83 CONSTANT(2, 1).s32(); in TEST_F() 84 CONSTANT(1, 0x100000000).s64(); in TEST_F() 102 CONSTANT(22, 0).s64(); in TEST_F() 112 CONSTANT(21, 2).s32(); in TEST_F()
|
| /arkcompiler/runtime_core/compiler/tests/ |
| D | scheduler_test.cpp | 28 CONSTANT(0, 42); in TEST_F() 29 CONSTANT(1, 43); in TEST_F() 30 CONSTANT(2, 44); in TEST_F() 31 CONSTANT(3, 45); in TEST_F() 32 CONSTANT(4, 46); in TEST_F() 33 CONSTANT(5, 47); in TEST_F() 34 CONSTANT(6, 48); in TEST_F() 35 CONSTANT(7, 49); in TEST_F() 70 CONSTANT(2, 42); in TEST_F() 71 CONSTANT(3, 43); in TEST_F() [all …]
|
| D | graph_cloner_test.cpp | 36 CONSTANT(0, 0); // initial in TEST_F() 37 CONSTANT(1, 1); // increment in TEST_F() 38 CONSTANT(2, 10); // len_array in TEST_F() 68 CONSTANT(0, 0); // initial in TEST_F() 69 CONSTANT(1, 1); // increment in TEST_F() 70 CONSTANT(2, 10); // len_array in TEST_F() 127 CONSTANT(0, 0); // initial in TEST_F() 128 CONSTANT(1, 1); // increment in TEST_F() 129 CONSTANT(2, 10); // len_array in TEST_F() 167 CONSTANT(0, 0); // initial in TEST_F() [all …]
|
| D | loop_unroll_test.cpp | 167 CONSTANT(2, 0); // const 0 in CheckLoopWithPhiAndSafePoint() 168 CONSTANT(3, 1UL); // const 1 in CheckLoopWithPhiAndSafePoint() 169 CONSTANT(4, 2UL); // const 2 in CheckLoopWithPhiAndSafePoint() 170 CONSTANT(5, 10UL); // const 10 in CheckLoopWithPhiAndSafePoint() 499 CONSTANT(0, 0); in BuildGraphPhiInputOfAnotherPhi() 500 CONSTANT(1, 1); in BuildGraphPhiInputOfAnotherPhi() 501 CONSTANT(2, 2); in BuildGraphPhiInputOfAnotherPhi() 529 CONSTANT(0, 0); in TEST_F() 530 CONSTANT(1, 1); in TEST_F() 531 CONSTANT(2, 2); in TEST_F() [all …]
|
| D | move_constants_test.cpp | 29 CONSTANT(1, nullptr); in TEST_F() 73 CONSTANT(1, nullptr); in TEST_F() 100 CONSTANT(1, 12345); in TEST_F() 146 CONSTANT(1, 12345); in TEST_F() 175 CONSTANT(1, 12345); in TEST_F() 232 CONSTANT(1, 12345); in TEST_F() 272 CONSTANT(1, 12345); in TEST_F() 322 CONSTANT(1, 12345); in TEST_F() 345 CONSTANT(1, 12345); in TEST_F() 396 CONSTANT(1, 12345); in TEST_F() [all …]
|
| D | reg_alloc_graph_coloring_test.cpp | 50 CONSTANT(1, 1); in TEST_F() 51 CONSTANT(2, 10); in TEST_F() 98 CONSTANT(1, 1); in TEST_F() 99 CONSTANT(2, 10); in TEST_F() 120 CONSTANT(9, 188); in TEST_F() 165 CONSTANT(2, 1); in TEST_F() 166 CONSTANT(3, 10); in TEST_F() 217 CONSTANT(1, 1); in TEST_F() 218 CONSTANT(2, 10); in TEST_F() 219 CONSTANT(3, 10); in TEST_F() [all …]
|
| D | deoptimize_elimination_test.cpp | 41 CONSTANT(1, 0); in TEST_F() 68 CONSTANT(1, 0); in TEST_F() 85 CONSTANT(10, 0); in TEST_F() 103 CONSTANT(10, 0); in TEST_F() 125 CONSTANT(10, 0); in TEST_F() 150 CONSTANT(10, 0); in TEST_F() 174 CONSTANT(10, 0); in TEST_F() 201 CONSTANT(10, 0); in TEST_F() 222 CONSTANT(10, 0); in TEST_F() 258 CONSTANT(11, 1); in TEST_F() [all …]
|
| D | if_conversion_test.cpp | 48 CONSTANT(1, 10); in TEST_F() 49 CONSTANT(2, 2); in TEST_F() 72 CONSTANT(1, 10); in TEST_F() 73 CONSTANT(2, 2); in TEST_F() 90 CONSTANT(1, 10); in TEST_F() 91 CONSTANT(2, 2); in TEST_F() 113 CONSTANT(1, 10); in TEST_F() 114 CONSTANT(2, 2); in TEST_F() 142 CONSTANT(1, 10); in TEST_F() 143 CONSTANT(2, 2); in TEST_F() [all …]
|
| D | cleanup_test.cpp | 756 CONSTANT(0, 12); in TEST_F() 757 CONSTANT(1, 13); in TEST_F() 782 CONSTANT(0, 11); in TEST_F() 783 CONSTANT(1, 12); in TEST_F() 784 CONSTANT(2, 13); in TEST_F() 814 CONSTANT(0, 0); in TEST_F() 815 CONSTANT(1, 1); in TEST_F() 865 CONSTANT(0, 0); in TEST_F() 866 CONSTANT(1, 1); in TEST_F() 916 CONSTANT(0, 0); in TEST_F() [all …]
|
| D | loop_analyzer_test.cpp | 123 CONSTANT(0, 0); in TEST_F() 124 CONSTANT(1, 1); in TEST_F() 340 CONSTANT(0, 0); in TEST_F() 341 CONSTANT(1, 1); in TEST_F() 373 CONSTANT(0, 0); // initial in TEST_F() 374 CONSTANT(1, 1); // increment in TEST_F() 375 CONSTANT(2, -1); in TEST_F() 408 CONSTANT(0, 0); // initial in TEST_F() 409 CONSTANT(1, 1); // increment in TEST_F() 410 CONSTANT(2, -1); in TEST_F() [all …]
|
| D | inst_test.cpp | 51 CONSTANT(0, 12); in TEST_F() 52 CONSTANT(1, 13); in TEST_F() 103 { // Test iterating over users of constant instruction in TEST_F() 110 { // Test iterating over users of non-constant instruction in TEST_F() 147 CONSTANT(0, 12); in TEST_F() 148 CONSTANT(1, 17.23); in TEST_F() 247 // add first int32 constant in TEST_F() 253 // add int64 constant, graph creates new constant in TEST_F() 259 // add second int32 constant, graph doesn't create new constant in TEST_F() 283 CONSTANT(0, 1.1f); in TEST_F() [all …]
|
| /arkcompiler/runtime_core/compiler/docs/ |
| D | deoptimize_elimination_doc.md | 20 If input of `DeoptimizeIf` is constant: 21 * Constant is equal 0 -> `DeoptimizeIf` is replaced by `NOP`. 22 * Other constant -> `DeoptimizeIf` is replaced by `Deoptimize` instruction. 37 1. Constant 0 38 2. Constant 1 54 1. Constant 0 55 2. Constant 1
|
| D | lowering_doc.md | 20 …n conversation is to replace an instruction with a constant input with the instruction with a cons… 54 1.i64 Constant 0xc -> (v7, v4, v19, v10) 55 2.i64 Constant 0xffffffffffffffff -> (v8, v5, v20, v10) 56 3.i64 Constant 0x5f5e100 -> (v9, v6, v10) 57 21.f64 Constant 1.2 -> (v13, v14, v10) 58 22.f32 Constant 0.5 -> (v15, v16, v10) 89 1.i64 Constant 0xc -> (v19) 90 2.i64 Constant 0xffffffffffffffff -> (v20) 91 3.i64 Constant 0x5f5e100 -> (v9, v6) 92 21.f64 Constant 1.2 -> (v13, v14) [all …]
|
| D | move_constants_closer_to_usage_doc.md | 16 Before register allocation for each constant try to move it closer to usage: 17 …nstruction among users and all users are located in the same block move constant just before first… 18 - Otherwise move constant to closest common dominating block 31 6.i64 Constant 0xa -> r0 (v5) 32 8.i64 Constant 0x14 -> r2 (v116) 36 52.i64 Constant 0x3e -> r27 (v138) 41 76.i64 Constant 0x5d -> r27 (v150) 97 6.i64 Constant 0xa -> r0 (v5) 99 8.i64 Constant 0x14 -> r2 (v116) 104 76.i64 Constant 0x5d -> r2 (v150)
|
| D | scheduler_doc.md | 207 0.i64 Constant 0x2a -> (v8) 208 1.i64 Constant 0x2b -> (v8) 209 2.i64 Constant 0x2c -> (v9) 210 3.i64 Constant 0x2d -> (v9) 211 4.i64 Constant 0x2e -> (v11) 212 5.i64 Constant 0x2f -> (v11) 213 6.i64 Constant 0x30 -> (v12) 214 7.i64 Constant 0x31 -> (v12) 236 0.i64 Constant 0x2a -> (v8) 237 1.i64 Constant 0x2b -> (v8) [all …]
|
| D | redundant_loop_elimination_doc.md | 34 …0.i64 Constant 0x0 -> (v4p) … 35 …1.i64 Constant 0x1 -> (v10) … 36 …2.i64 Constant 0xa -> (v5) … 62 …0.i64 Constant 0x0 … 63 …1.i64 Constant 0x1 … 64 …2.i64 Constant 0xa …
|
| D | loop_unrolling.md | 39 Loop-index should be incremented or decremented by a constant. Currently signed integer indexes are… 47 update(phi, constant) 57 2. Fix loop-backedge compare by incrementing/decrementing test input with constant, counted using f… 140 CONSTANT(0, stop); 141 CONSTANT(1, 0); // a = 0, b = 0 142 CONSTANT(2, step); 167 CONSTANT(0, 10); 168 CONSTANT(1, 0); // a = 0, b = 0 169 CONSTANT(2, 1);
|
| /arkcompiler/ets_frontend/es2panda/ir/ |
| D | astDump.h | 67 enum class Constant { enum 74 … double, const ir::AstNode *, std::vector<const ir::AstNode *>, Constant, Nullable, Ignore>; 84 Property(const char *key, Constant constant) : key_(key), value_(constant) {} in Property() argument 90 value_ = Property::Constant::PROP_NULL; in Property() 119 value_ = Constant::EMPTY_ARRAY; in Property() 195 void SerializeConstant(Property::Constant constant);
|
| D | astDump.cpp | 111 } else if (std::holds_alternative<Property::Constant>(value)) { in Serialize() 112 SerializeConstant(std::get<Property::Constant>(value)); in Serialize() 161 void AstDumper::SerializeConstant(Property::Constant constant) in SerializeConstant() argument 163 switch (constant) { in SerializeConstant() 164 case Property::Constant::PROP_NULL: { in SerializeConstant() 168 case Property::Constant::EMPTY_ARRAY: { in SerializeConstant()
|
| /arkcompiler/ets_frontend/es2panda/compiler/base/ |
| D | iterators.cpp | 39 pg_->StoreConst(node_, closed_, Constant::JS_FALSE); in Iterator() 92 pg_->StoreConst(node_, closed_, Constant::JS_TRUE); in Close() 94 pg_->StoreConst(node_, innerException, Constant::JS_HOLE); in Close() 149 pg_->StoreConst(node, done_, Constant::JS_FALSE); in DestructuringIterator() 150 pg_->StoreConst(node, result_, Constant::JS_UNDEFINED); in DestructuringIterator() 165 pg_->StoreConst(node_, done_, Constant::JS_TRUE); in Step() 166 pg_->LoadConst(node_, Constant::JS_UNDEFINED); in Step() 180 pg_->StoreConst(node_, done_, Constant::JS_TRUE); in Step() 188 pg_->LoadConst(node_, Constant::JS_UNDEFINED); in OnIterDone()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/tests/ |
| D | circuit_optimizer_tests.cpp | 101 // check optimization result (returned value is constant 1) in HWTEST_F_L0() 107 acc.SetMetaData(constantA, circuit.Constant(2)); in HWTEST_F_L0() 115 // check optimization result (returned value is not constant) in HWTEST_F_L0() 121 acc.SetMetaData(n, circuit.Constant(0)); in HWTEST_F_L0() 129 // check optimization result (returned value is constant 0) in HWTEST_F_L0() 178 EXPECT_TRUE(acc.GetOpCode(returnValue) == OpCode::CONSTANT); in HWTEST_F_L0() 187 auto constantA = circuit.NewGate(circuit.Constant(-8848), in HWTEST_F_L0() 190 auto constantB = circuit.NewGate(circuit.Constant(4), in HWTEST_F_L0() 210 // check optimization result (returned value is constant -2212) in HWTEST_F_L0() 224 // check optimization result (returned value is constant 1073739612) in HWTEST_F_L0() [all …]
|
| /arkcompiler/runtime_core/compiler/code_info/ |
| D | vreg_info.h | 25 enum class Location : int8_t { NONE, SLOT, REGISTER, FP_REGISTER, CONSTANT, COUNT = CONSTANT }; enumerator 120 ASSERT(GetLocation() == Location::CONSTANT); in GetConstantLowIndex() 126 ASSERT(GetLocation() == Location::CONSTANT); in GetConstantHiIndex() 183 case Location::CONSTANT: in GetLocationString() 184 return "CONSTANT"; in GetLocationString()
|