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.cpp2037 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()
254 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in ApplyGraph()
Dcleanup.cpp291 ssUser.GetInst()->GetFlag(inst_flags::MEM_BARRIER)) { in IsRemovableCall()
Dinlining.cpp1133 inlinedReturn->SetFlag(inst_flags::MEM_BARRIER); in ProcessCallReturnInstructions()
/arkcompiler/runtime_core/libabckit/src/
Dabckit_compiler_intrinsics.yaml127 set_flags: [ "alloc", "mem_barrier" ]
147 set_flags: [ "alloc", "mem_barrier" ]
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
Dinstructions.yaml282 flags: [can_throw, no_dce, no_hoist, no_cse, alloc, require_state, runtime_call, mem_barrier]
290 flags: [can_throw, no_dce, no_hoist, no_cse, alloc, require_state, runtime_call, mem_barrier]
823 …gs: [can_throw, no_dce, no_hoist, no_cse, alloc, barrier, require_state, runtime_call, mem_barrier]
824 abckit_flags: [can_throw, no_dce, no_hoist, no_cse, alloc, barrier, runtime_call, mem_barrier]
1393 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/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/code_generator/
Dcodegen.cpp1279 if (callInst->GetFlag(inst_flags::MEM_BARRIER)) { in CreateMultiArrayCall()
2271 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitNewArray()
2288 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitNewArray()
2298 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitNewArray()
Dencode_visitor.cpp410 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitReturnVoid()
457 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitReturnInlined()
1468 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitNewObject()
2100 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitMultiArray()
/arkcompiler/runtime_core/static_core/libllvmbackend/lowering/
Dllvm_ir_constructor.cpp2038 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in CreateNewArrayWithRuntime()
2054 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in CreateNewObjectWithRuntime()
3276 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitReturnVoid()
3301 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitReturnInlined()
4413 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitMultiArray()
4482 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitNewArray()
4525 if (inst->GetFlag(inst_flags::MEM_BARRIER)) { in VisitNewObject()
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir_builder/
Dir_builder.cpp139 lastInst->SetFlag(inst_flags::MEM_BARRIER); in SetMemoryBarrierFlag()