Home
last modified time | relevance | path

Searched full:mem_barrier (Results 1 – 14 of 14) sorted by relevance

/arkcompiler/runtime_core/static_core/compiler/tests/
Dmemory_barriers_test.cpp53 ASSERT_EQ(INS(0U).GetFlag(inst_flags::MEM_BARRIER), false); in TEST_F()
54 ASSERT_EQ(INS(1U).GetFlag(inst_flags::MEM_BARRIER), false); in TEST_F()
55 ASSERT_EQ(INS(2U).GetFlag(inst_flags::MEM_BARRIER), true); in TEST_F()
56 ASSERT_EQ(INS(3U).GetFlag(inst_flags::MEM_BARRIER), false); in TEST_F()
57 ASSERT_EQ(INS(4U).GetFlag(inst_flags::MEM_BARRIER), false); in TEST_F()
58 ASSERT_EQ(INS(5U).GetFlag(inst_flags::MEM_BARRIER), true); in TEST_F()
59 ASSERT_EQ(INS(6U).GetFlag(inst_flags::MEM_BARRIER), false); in TEST_F()
60 ASSERT_EQ(INS(7U).GetFlag(inst_flags::MEM_BARRIER), false); in TEST_F()
61 ASSERT_EQ(INS(8U).GetFlag(inst_flags::MEM_BARRIER), false); in TEST_F()
62 ASSERT_EQ(INS(9U).GetFlag(inst_flags::MEM_BARRIER), false); in TEST_F()
[all …]
Dcleanup_test.cpp2033 INST(8U, Opcode::ReturnInlined).Inputs(2U).SetFlag(compiler::inst_flags::MEM_BARRIER); in TEST_F()
/arkcompiler/runtime_core/static_core/compiler/docs/
Dmemory_barriers_doc.md19 There is instruction flag `MEM_BARRIER`. The flag is set to `true` for the instructions NewObject, …
21 We pass through all instructions in PRO order. If the instruction has flag `MEM_BARRIER` we add the…
24 The function set `false` for the flag `MEM_BARRIER`, exclude last instruction from the vector.
29 Codegen checks the flag `MEM_BARRIER` for the instructions NewObject, NewArray and NewMultiArray an…
39 if (inst->GetFlag(inst_flags::MEM_BARRIER)) {
58 inst->ClearFlag(inst_flags::MEM_BARRIER);
60 last_barrier_inst->SetFlag(inst_flags::MEM_BARRIER);
93 Instructions `2.ref NewArray`, `5.ref NewObject` and `10.ref NewObject` have flag `MEM_BARRIER` …
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
Dmemory_barriers.cpp31 inst->ClearFlag(inst_flags::MEM_BARRIER); in MergeBarriers()
33 lastBarrierInst->SetFlag(inst_flags::MEM_BARRIER); in MergeBarriers()
281 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in ApplyGraph()
Dcleanup.cpp288 ssUser.GetInst()->GetFlag(inst_flags::MEM_BARRIER)) { in IsRemovableCall()
Dinlining.cpp1028 inlinedReturn->SetFlag(inst_flags::MEM_BARRIER); in ProcessCallReturnInstructions()
/arkcompiler/runtime_core/static_core/plugins/ets/compiler/optimizer/
Dets_codegen_extensions.cpp86 if (callInst->GetFlag(inst_flags::MEM_BARRIER)) { in LaunchCallCodegen()
/arkcompiler/runtime_core/compiler/optimizer/ir/
Dinstructions.yaml267 mem_barrier: we need encode memory barrier after the instruction(for return.void before)
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
Dinstructions.yaml281 flags: [can_throw, no_dce, no_hoist, no_cse, alloc, require_state, runtime_call, mem_barrier]
289 flags: [can_throw, no_dce, no_hoist, no_cse, alloc, require_state, runtime_call, mem_barrier]
826 …gs: [can_throw, no_dce, no_hoist, no_cse, alloc, barrier, require_state, runtime_call, mem_barrier]
1369 mem_barrier: we need encode memory barrier after the instruction(for return.void before)
Ddump.cpp828 if (GetFlag(inst_flags::MEM_BARRIER)) { in DumpOpcode()
/arkcompiler/runtime_core/static_core/libllvmbackend/lowering/
Dllvm_ir_constructor.cpp1671 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in CreateNewArrayWithRuntime()
1687 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in CreateNewObjectWithRuntime()
1971 if (callInst->GetFlag(inst_flags::MEM_BARRIER)) { in CreateLaunchCall()
2946 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitReturnVoid()
2971 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitReturnInlined()
4071 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitMultiArray()
4140 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitNewArray()
4183 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitNewObject()
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/
Dcodegen.cpp1287 if (callInst->GetFlag(inst_flags::MEM_BARRIER)) { in CreateMultiArrayCall()
2233 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitNewArray()
2250 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitNewArray()
2260 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitNewArray()
Dencode_visitor.cpp407 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitReturnVoid()
454 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitReturnInlined()
1465 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitNewObject()
2096 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitMultiArray()
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir_builder/
Dir_builder.cpp113 lastInst->SetFlag(inst_flags::MEM_BARRIER); in SetMemoryBarrierFlag()