Home
last modified time | relevance | path

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

/arkcompiler/runtime_core/static_core/compiler/tests/
Dmemory_barriers_test.cpp48 ASSERT_EQ(INS(0U).GetFlag(inst_flags::MEM_BARRIER), false); in TEST_F()
49 ASSERT_EQ(INS(1U).GetFlag(inst_flags::MEM_BARRIER), false); in TEST_F()
50 ASSERT_EQ(INS(2U).GetFlag(inst_flags::MEM_BARRIER), true); in TEST_F()
51 ASSERT_EQ(INS(3U).GetFlag(inst_flags::MEM_BARRIER), false); in TEST_F()
52 ASSERT_EQ(INS(4U).GetFlag(inst_flags::MEM_BARRIER), false); in TEST_F()
53 ASSERT_EQ(INS(5U).GetFlag(inst_flags::MEM_BARRIER), true); in TEST_F()
54 ASSERT_EQ(INS(6U).GetFlag(inst_flags::MEM_BARRIER), false); in TEST_F()
55 ASSERT_EQ(INS(7U).GetFlag(inst_flags::MEM_BARRIER), false); in TEST_F()
56 ASSERT_EQ(INS(8U).GetFlag(inst_flags::MEM_BARRIER), false); in TEST_F()
57 ASSERT_EQ(INS(9U).GetFlag(inst_flags::MEM_BARRIER), false); in TEST_F()
[all …]
Dcleanup_test.cpp1928 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()
276 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in ApplyGraph()
Dcleanup.cpp275 ssUser.GetInst()->GetFlag(inst_flags::MEM_BARRIER)) { in IsRemovableCall()
Dinlining.cpp989 inlinedReturn->SetFlag(inst_flags::MEM_BARRIER); in ProcessCallReturnInstructions()
/arkcompiler/runtime_core/static_core/plugins/ets/compiler/optimizer/
Dets_codegen_extensions.cpp80 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]
1357 mem_barrier: we need encode memory barrier after the instruction(for return.void before)
Ddump.cpp737 if (GetFlag(inst_flags::MEM_BARRIER)) { in DumpOpcode()
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir_builder/
Dir_builder.cpp89 lastInst->SetFlag(inst_flags::MEM_BARRIER); in SetMemoryBarrierFlag()
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/
Dcodegen.cpp1225 if (callInst->GetFlag(inst_flags::MEM_BARRIER)) { in CreateMultiArrayCall()
2826 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitReturnVoid()
2878 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitReturnInlined()
2989 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitNewArray()
3006 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitNewArray()
3016 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitNewArray()
4007 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitNewObject()
4877 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitMultiArray()
/arkcompiler/runtime_core/static_core/libllvmbackend/lowering/
Dllvm_ir_constructor.cpp1321 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitReturnVoid()