| /arkcompiler/runtime_core/static_core/compiler/docs/ |
| D | constant_folding_doc.md | 1 # Constant Folding 3 **Constant folding** - optimization which calculate instructions with constant inputs in compile ti… 13 If instruction have constant inputs, new constant is calculate and input of user of original instru… 15 Constant folding is called in Peephole optimization. 21 Putting new constant in inputs of inst users. 26 Before constant folding: 28 1.i64 Constant 1 -> v3 29 2.i64 Constant 2 -> v3 34 After constant folding: 36 1.i64 Constant 1 [all …]
|
| D | peephole_doc.md | 22 * Constant folding 23 * Partial constant instruction replace by constant (a *= 0 -> a = 0) 24 * Putting constant input on second place for commutative instructions (ex. Add, Mul, ...) 41 3.i64 Constant -1 -> v10 // -1 42 4.i64 Constant 1 -> v6, v7 // 1 43 5.i64 Constant 2 -> v8 // 2 56 3.i64 Constant -1 -> v10 // -1 57 4.i64 Constant 1 -> v6, v7 // 1 58 5.i64 Constant 2 -> v8, v12 // 2 78 [constant folding](constant_folding_doc.md)
|
| 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 | reserve_sb_buffer_doc.md | 39 replace initial StringBuilder.buf size constant to count 70 2.i64 Constant 0x3e 71 3.i64 Constant 0x0 72 23.i64 Constant 0x1 94 2.i64 Constant 0x3e 95 3.i64 Constant 0x0 96 23.i64 Constant 0x1 97 118.i64 Constant 0x40 98 141.i64 Constant 0x2 99 142.i64 Constant 0x4 [all …]
|
| 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 | 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 | 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 …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/ |
| D | 11_enums.rst | 42 constant 48 Qualification by type is mandatory to access the enumeration constant: 67 enumeration constant 69 enum constant 72 The value of an enum constant can be set explicitly to a numeric constant 73 expression (expression of type ``int``) or to a constant expression 74 of type ``string``, or implicitly by omitting the constant expression. If 75 the constant expression is omitted, then the value of the enum constant 81 Any enumeration constant is of type ``enumeration``. The implicit conversion 83 of the enumeration constant to integer types or type *string* depends on the [all …]
|
| /arkcompiler/runtime_core/static_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/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 …]
|
| /arkcompiler/runtime_core/static_core/bytecode_optimizer/tests/ |
| D | const_array_resolver_test.cpp | 28 CONSTANT(1U, 2U).s64(); in TEST_F() 29 CONSTANT(2U, 0U).s64(); in TEST_F() 30 CONSTANT(3U, 1U).s64(); in TEST_F() 52 CONSTANT(1U, 2U).s64(); in TEST_F() 53 CONSTANT(2U, 0U).s64(); in TEST_F() 54 CONSTANT(3U, 1U).s64(); in TEST_F() 73 CONSTANT(1U, 2U).s32(); in TEST_F() 74 CONSTANT(2U, 0U).s32(); in TEST_F() 75 CONSTANT(3U, 1U).s32(); in TEST_F() 103 CONSTANT(0U, 3U).s32(); in TEST_F() [all …]
|
| D | reg_encoder_test.cpp | 34 CONSTANT(0U, 0.0).f32(); in TEST_F() 35 CONSTANT(1U, 0.0).f32(); in TEST_F() 36 CONSTANT(2U, 0.0).f32(); in TEST_F() 37 CONSTANT(3U, 0.0).f32(); in TEST_F() 38 CONSTANT(4U, 0.0).f32(); in TEST_F() 39 CONSTANT(5U, 0.0).f32(); in TEST_F() 40 CONSTANT(6U, 0.0).f32(); in TEST_F() 41 CONSTANT(7U, 0.0).f32(); in TEST_F() 42 CONSTANT(8U, 0.0).f32(); in TEST_F() 43 CONSTANT(9U, 0.0).f32(); 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)
|
| /arkcompiler/runtime_core/static_core/compiler/tests/ |
| D | const_folding_test.cpp | 49 CONSTANT(0U, l); in CmpTest() 50 CONSTANT(1U, r); in CmpTest() 75 CONSTANT(0U, src); in CastTest() 165 CONSTANT(0U, nan1ValueF).f32(); in CheckCompareWithNan() 166 CONSTANT(1U, nan2ValueF).f32(); in CheckCompareWithNan() 167 CONSTANT(2U, nan1ValueD).f64(); in CheckCompareWithNan() 168 CONSTANT(3U, nan2ValueD).f64(); in CheckCompareWithNan() 171 CONSTANT(8U, 1U); // It is bool True in CheckCompareWithNan() 172 CONSTANT(9U, 0U); // It is bool False in CheckCompareWithNan() 205 CONSTANT(0U, nan1ValueF).f32(); in CheckNegNan() [all …]
|
| D | scheduler_test.cpp | 28 CONSTANT(0U, 42U); in TEST_F() 29 CONSTANT(1U, 43U); in TEST_F() 30 CONSTANT(2U, 44U); in TEST_F() 31 CONSTANT(3U, 45U); in TEST_F() 32 CONSTANT(4U, 46U); in TEST_F() 33 CONSTANT(5U, 47U); in TEST_F() 34 CONSTANT(6U, 48U); in TEST_F() 35 CONSTANT(7U, 49U); in TEST_F() 70 CONSTANT(2U, 42U); in TEST_F() 71 CONSTANT(3U, 43U); in TEST_F() [all …]
|
| D | redundant_loop_elimination_test.cpp | 40 CONSTANT(0U, 0U); in TEST_F() 41 CONSTANT(1U, 1U); in TEST_F() 42 CONSTANT(2U, 10U); in TEST_F() 63 CONSTANT(0U, 0U); in TEST_F() 64 CONSTANT(1U, 1U); in TEST_F() 65 CONSTANT(2U, 10U); in TEST_F() 80 CONSTANT(0U, 0U); in TEST_F() 81 CONSTANT(1U, 1U); in TEST_F() 82 CONSTANT(2U, 10U); in TEST_F() 102 CONSTANT(0U, 0U); in TEST_F() [all …]
|
| /arkcompiler/runtime_core/libabckit/tests/ut/ir_core/get_constant_value/ |
| D | get_constant_value.cpp | 40 auto constant = g_implG->iGetConstantValueU64(firstConst); in TransformMethodStaticValid() local 42 ASSERT_EQ(constant, 5U); in TransformMethodStaticValid() 44 auto constant = g_implG->iGetConstantValueF64(firstConst); in TransformMethodStaticValid() local 46 ASSERT_EQ(constant, firstConstVal); in TransformMethodStaticValid() 48 auto constant = g_implG->iGetConstantValueI64(firstConst); in TransformMethodStaticValid() local 50 ASSERT_EQ(constant, -5L); in TransformMethodStaticValid() 62 auto constant = g_implG->iGetConstantValueI64(lastConst); in TransformMethodDynamicValid() local 64 ASSERT_EQ(constant, -5L); in TransformMethodDynamicValid() 71 auto constant = g_implG->iGetConstantValueU64(lastConst); in TransformMethodDynamicValid() local 73 ASSERT_EQ(constant, 6U); in TransformMethodDynamicValid() [all …]
|
| /arkcompiler/runtime_core/libabckit/tests/ut/ir_core/create_constant/ |
| D | create_constant_static.cpp | 36 AbckitInst *constant = nullptr; in TransformMethodStaticValid() local 38 constant = g_implG->gFindOrCreateConstantU64(graph, 0xa); in TransformMethodStaticValid() 40 constant = g_implG->gFindOrCreateConstantF64(graph, 12.16); in TransformMethodStaticValid() 42 constant = g_implG->gFindOrCreateConstantI64(graph, -5); in TransformMethodStaticValid() 44 constant = g_implG->gFindOrCreateConstantI64(graph, 5); in TransformMethodStaticValid() 50 g_implG->iSetInput(retOp, constant, 0); in TransformMethodStaticValid() 57 AbckitInst *constant = nullptr; in TransformMethodStaticUnconnected() local 59 constant = g_implG->gFindOrCreateConstantU64(graph, 0xa); in TransformMethodStaticUnconnected() 61 constant = g_implG->gFindOrCreateConstantF64(graph, 12.16); in TransformMethodStaticUnconnected() 63 constant = g_implG->gFindOrCreateConstantI64(graph, -5); in TransformMethodStaticUnconnected() [all …]
|
| D | create_constant_dynamic.cpp | 36 AbckitInst *constant = nullptr; in TransformMethodDynamicValid() local 38 constant = g_implG->gFindOrCreateConstantU64(graph, 0xa); in TransformMethodDynamicValid() 40 constant = g_implG->gFindOrCreateConstantF64(graph, 12.16); in TransformMethodDynamicValid() 42 constant = g_implG->gFindOrCreateConstantI64(graph, -5); in TransformMethodDynamicValid() 44 constant = g_implG->gFindOrCreateConstantI32(graph, 5); in TransformMethodDynamicValid() 50 g_implG->iSetInput(retOp, constant, 0); in TransformMethodDynamicValid() 57 AbckitInst *constant = nullptr; in TransformMethodDynamicUnconnected() local 59 constant = g_implG->gFindOrCreateConstantU64(graph, 0xa); in TransformMethodDynamicUnconnected() 61 constant = g_implG->gFindOrCreateConstantF64(graph, 12.16); in TransformMethodDynamicUnconnected() 63 constant = g_implG->gFindOrCreateConstantI64(graph, -5); in TransformMethodDynamicUnconnected() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/declgen_ets2ts/global_vars/ |
| D | lib.expected | 25 const CONSTANT: number = ETSGLOBAL.CONSTANT; 26 export {CONSTANT}; 27 exports.CONSTANT = CONSTANT;
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/03.constant_narrowing_integer_conversion/decl_const/ |
| D | decl-const-n.sts | 18 desc: Declaration context, constant declaration, constant narrowing integer conversion, implicit 22 …const d: {{c.to_type}} = {{c.expr|safe}} // constant expression value doesn't fit in the constant…
|