/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/ |
H A D | slow_path.cpp | 26 std::string opcodeStr(GetInst()->GetOpcodeStr()); in Generate() 27 if (GetInst()->IsIntrinsic()) { in Generate() 28 opcodeStr += "." + GetIntrinsicName(static_cast<IntrinsicInst *>(GetInst())->GetIntrinsicId()); in Generate() 32 std::string("SlowPath for inst ") + std::to_string(GetInst()->GetId()) + ". " + opcodeStr); in Generate() 50 auto lenReg = codegen->ConvertRegister(GetInst()->GetSrcReg(0), GetInst()->GetInputType(0)); in GenerateThrowOutOfBoundsException() 51 if (GetInst()->GetOpcode() == Opcode::BoundsCheckI) { in GenerateThrowOutOfBoundsException() 53 codegen->GetEncoder()->EncodeMov(indexReg, Imm(GetInst()->CastToBoundsCheckI()->GetImm())); in GenerateThrowOutOfBoundsException() 54 codegen->CallRuntime(GetInst(), GetEntrypoint(), INVALID_REGISTER, RegMask::GetZeroMask(), indexReg, lenReg); in GenerateThrowOutOfBoundsException() 56 ASSERT(GetInst() in GenerateThrowOutOfBoundsException() [all...] |
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
H A D | peepholes.cpp | 53 auto input = inst->GetInput(0).GetInst(); in VisitNeg() 69 if (SkipThisPeepholeInOSR(inst, input->GetInput(0).GetInst())) { in VisitNeg() 72 inst->ReplaceUsers(input->GetInput(0).GetInst()); in VisitNeg() 84 if (SkipThisPeepholeInOSR(inst, input->GetInput(0).GetInst()) || in VisitNeg() 85 SkipThisPeepholeInOSR(inst, input->GetInput(1).GetInst())) { in VisitNeg() 88 CreateAndInsertInst(Opcode::Sub, inst, input->GetInput(1).GetInst(), input->GetInput(0).GetInst()); in VisitNeg() 97 if (SkipThisPeepholeInOSR(inst, inst->GetInput(0).GetInst())) { in VisitAbs() 100 inst->ReplaceUsers(inst->GetInput(0).GetInst()); in VisitAbs() 247 auto input0 = inst->GetInput(0).GetInst(); in VisitAdd() [all...] |
H A D | memory_barriers.cpp | 45 if (CheckInst(input.GetInst())) { in CheckAllInputs() 147 static_cast<OptimizeMemoryBarriers *>(v)->CheckTwoInputs(inst->GetInput(0).GetInst(), inst->GetInput(1).GetInst()); in VisitSelect() 152 static_cast<OptimizeMemoryBarriers *>(v)->CheckTwoInputs(inst->GetInput(0).GetInst(), inst->GetInput(1).GetInst()); in VisitSelectImm() 157 static_cast<OptimizeMemoryBarriers *>(v)->CheckInput(inst->GetInput(inst->GetInputsCount() - 1).GetInst()); in VisitStoreObject() 162 static_cast<OptimizeMemoryBarriers *>(v)->CheckTwoInputs(inst->GetInput(0).GetInst(), inst->GetInput(1).GetInst()); in VisitStoreObjectPair() 167 static_cast<OptimizeMemoryBarriers *>(v)->CheckInput(inst->GetInput(inst->GetInputsCount() - 1).GetInst()); in VisitStoreObjectDynamic() 172 static_cast<OptimizeMemoryBarriers *>(v)->CheckInput(inst->GetInput(inst->GetInputsCount() - 1).GetInst()); in VisitStoreArray() [all...] |
H A D | simplify_string_builder.cpp | 131 auto userInst = user.GetInst(); in IsUsedOutsideBasicBlock() 139 userInst = userInst->GetUsers().Front().GetInst(); in IsUsedOutsideBasicBlock() 164 auto instance = ctorCall->GetInput(0).GetInst(); in OptimizeStringBuilderToString() 165 auto arg = ctorCall->GetInput(1).GetInst(); in OptimizeStringBuilderToString() 235 auto arg = appendIntrinsics[index]->GetInput(1).GetInst(); 257 auto toStringCount = CountUsers(instance, [](auto &user) { return IsStringBuilderToString(user.GetInst()); }); 262 auto appendCount = CountUsers(instance, [](auto &user) { return IsStringBuilderAppend(user.GetInst()); }); 264 CountUsers(instance, [](auto &user) { return IsIntrinsicStringBuilderAppendString(user.GetInst()); }); 288 inst = inst->GetUsers().Front().GetInst(); 401 auto instance = ctorCall->GetInput(0).GetInst(); [all...] |
H A D | const_folding.cpp | 253 auto input = inst->GetInput(0).GetInst(); in ConstFoldingCast() 269 if (input.GetInst()->IsConst()) { in ConstFoldingNeg() 270 auto cnst = static_cast<ConstantInst *>(input.GetInst()); in ConstFoldingNeg() 296 if (input.GetInst()->IsConst()) { in ConstFoldingAbs() 297 auto cnst = static_cast<ConstantInst *>(input.GetInst()); in ConstFoldingAbs() 331 if (input.GetInst()->IsConst()) { in ConstFoldingNot() 332 auto cnst = static_cast<ConstantInst *>(input.GetInst()); in ConstFoldingNot() 346 if (input0.GetInst()->IsConst() && input1.GetInst()->IsConst()) { in ConstFoldingAdd() 347 auto cnst0 = static_cast<ConstantInst *>(input0.GetInst()); in ConstFoldingAdd() [all...] |
H A D | lowering.cpp | 75 auto input = inst->GetInput(0).GetInst(); in VisitCastValueToAnyType() 80 auto userInst = it->GetInst(); in VisitCastValueToAnyType() 110 auto inputInst = inst->GetInput(0).GetInst(); in VisitCast() 249 if (inst->GetInput(1).GetInst()->GetOpcode() != Opcode::Constant) { in VisitMul() 284 auto input0 = inst->GetInput(0).GetInst(); in ReplaceSignedDivPowerOfTwo() 324 auto input0 = inst->GetInput(0).GetInst(); in ReplaceUnsignedDivPowerOfTwo() 343 auto c = inst->GetInput(1).GetInst(); in SatisfyReplaceDivMovConditions() 353 uint64_t uValue = inst->GetInput(1).GetInst()->CastToConstant()->GetInt64Value(); in TryReplaceDivPowerOfTwo() 356 auto input0 = inst->GetInput(0).GetInst(); in TryReplaceDivPowerOfTwo() 377 uint64_t uValue = inst->GetInput(1).GetInst() in TryReplaceDivModNonPowerOfTwo() [all...] |
H A D | phi_type_resolving.cpp | 69 if (user.GetInst()->GetOpcode() == Opcode::SaveStateOsr) { in CheckInputsAnyTypesRec() 80 auto inputInst = phi->GetDataFlowInput(input.GetInst()); in CheckInputsAnyTypesRec() 121 phi->SetInput(idx, inputInst->GetInput(0).GetInst()); in PropagateTypeToPhi() 122 } else if (phi->GetInput(idx).GetInst() != inputInst) { in PropagateTypeToPhi() 127 ASSERT(phi->GetInput(idx).GetInst()->GetOpcode() == Opcode::AnyTypeCheck); in PropagateTypeToPhi() 145 auto userInst = it->GetInst(); in PropagateTypeToPhi()
|
H A D | string_builder_utils.cpp | 128 auto inputInst = input.GetInst(); in InsertBeforeWithInputs() 159 auto inputInst = input.GetInst(); in HasInputPhiRecursively() 182 auto inputInst = input.GetInst(); in ResetInputMarkersRecursively() 210 auto userInst = user.GetInst(); in HasUserPhiRecursively() 233 auto userInst = user.GetInst(); in CountUsers() 250 auto userInst = user.GetInst(); in ResetUserMarkersRecursively() 261 inst = inst->GetUsers().Front().GetInst(); in SkipSingleUserCheckInstruction()
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/ |
H A D | countable_loop_parser.cpp | 74 auto loopExitCmp = loopInfo_.ifImm->GetInput(0).GetInst(); in ParseLoopExit() 78 if (isHeadLoopExit_ && !loopExitCmp->GetInput(0).GetInst()->IsPhi() && in ParseLoopExit() 79 !loopExitCmp->GetInput(1).GetInst()->IsPhi()) { in ParseLoopExit() 91 if (loopInfo_.index->GetInput(backEdgeIdx).GetInst() != loopInfo_.update) { in TryProcessBackEdge() 95 loopInfo_.init = loopInfo_.index->GetInput(1 - backEdgeIdx).GetInst(); in TryProcessBackEdge() 110 auto preHeaderCmp = preHeaderIfImm->GetInput(0).GetInst(); in HasPreHeaderCompare() 114 auto backEdgeCmp = loopInfo.ifImm->GetInput(0).GetInst(); in HasPreHeaderCompare() 141 return preHeaderCmp->GetInput(testInputIdx).GetInst() == loopInfo.test && in HasPreHeaderCompare() 142 preHeaderCmp->GetInput(1 - testInputIdx).GetInst() == loopInfo.init; in HasPreHeaderCompare() 200 if (inst->GetInput(0).GetInst() in IsInstIncOrDec() [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interpreter/ |
H A D | interpreter-inl.h | 45 auto id = this->GetInst().template GetId<FORMAT>(); in HandleEtsLaunchShort() 46 LOG_INST() << "launch.short v" << this->GetInst().template GetVReg<FORMAT, 0>() << ", v" in HandleEtsLaunchShort() 47 << this->GetInst().template GetVReg<FORMAT, 1>() << ", " << std::hex << "0x" << id; in HandleEtsLaunchShort() 54 auto id = this->GetInst().template GetId<FORMAT>(); in HandleEtsLaunch() 55 LOG_INST() << "launch v" << this->GetInst().template GetVReg<FORMAT, 0>() << ", v" in HandleEtsLaunch() 56 << this->GetInst().template GetVReg<FORMAT, 1>() << ", v" in HandleEtsLaunch() 57 << this->GetInst().template GetVReg<FORMAT, 2>() << ", v" in HandleEtsLaunch() 58 << this->GetInst().template GetVReg<FORMAT, 3>() << ", " << std::hex << "0x" << id; in HandleEtsLaunch() 65 auto id = this->GetInst().template GetId<FORMAT>(); in HandleEtsLaunchRange() 66 LOG_INST() << "launch.range v" << this->GetInst() in HandleEtsLaunchRange() [all...] |
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir_builder/ |
H A D | phi_resolver.h | 98 auto inputType = input.GetInst()->GetType(); in SetTypeByInputs() 108 if (user.GetInst()->SetMarker(marker_)) { in FindUsersRec() 111 if (user.GetInst()->IsPhi() || user.GetInst()->IsCatchPhi()) { in FindUsersRec() 112 phiUsers_.push_back(user.GetInst()); in FindUsersRec() 113 FindUsersRec(user.GetInst()); in FindUsersRec() 115 if (!user.GetInst()->IsSaveState()) { in FindUsersRec() 119 realUsers_.push_back(user.GetInst()); in FindUsersRec() 134 auto inputInst = input.GetInst(); in FindInputsRec() 206 auto inputBb = phiInst->GetInput(index).GetInst() in CheckPhiInputs() [all...] |
/arkcompiler/runtime_core/compiler/optimizer/optimizations/ |
H A D | lowering.cpp | 40 auto in0 = cmp->GetInput(0).GetInst(); in BetterToSwapCompareInputs() 41 auto in1 = cmp->GetInput(1).GetInst(); in BetterToSwapCompareInputs() 62 compiler::Inst *input_0 = if_inst->GetInput(0).GetInst(); in OptimizeIfInput() 63 compiler::Inst *input_1 = if_inst->GetInput(1).GetInst(); in OptimizeIfInput() 84 auto input = inst->GetInput(0).GetInst(); in LowerIf() 90 if (user.GetInst()->GetOpcode() != Opcode::IfImm) { in LowerIf() 97 auto in0 = input->GetInput(0).GetInst(); in LowerIf() 98 auto in1 = input->GetInput(1).GetInst(); in LowerIf() 106 auto cst = input->GetInput(1).GetInst(); in LowerIf() 123 replace->SetInput(0, input->GetInput(0).GetInst()); in LowerIf() [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/compiler/optimizer/ |
H A D | ets_intrinsics_peephole.cpp | 25 auto input0 = intrinsic->GetInput(0).GetInst(); in ReplaceWithCompareEQ() 26 auto input1 = intrinsic->GetInput(1).GetInst(); in ReplaceWithCompareEQ() 49 auto loadString = intrinsic->GetInput(1).GetInst(); in ReplaceTypeofWithIsInstance() 80 auto saveState = typeOf->GetInput(1U).GetInst(); in ReplaceTypeofWithIsInstance() 86 auto isInstance = graph->CreateInstIsInstance(DataType::BOOL, pc, typeOf->GetInput(0).GetInst(), loadClass, in ReplaceTypeofWithIsInstance() 100 auto input0 = intrinsic->GetInput(0).GetInst(); in PeepholeStringEquals() 101 auto input1 = intrinsic->GetInput(1).GetInst(); in PeepholeStringEquals() 117 auto input1 = inst->GetInput(1).GetInst(); in GetStringFromLength() 121 lenArray = inst->GetInput(0).GetInst(); in GetStringFromLength() 139 auto begin = intrinsic->GetInput(1).GetInst(); in PeepholeStringSubstring() [all...] |
/arkcompiler/runtime_core/static_core/runtime/interpreter/ |
H A D | instruction_handler_state.h | 95 return static_cast<unsigned>(GetInst().GetOpcode()) & OPCODE_MASK; in GetPrimaryOpcode() 100 return (static_cast<unsigned>(GetInst().GetSecondaryOpcode())) & OPCODE_MASK; in GetSecondaryOpcode() 105 return GetInst().IsPrimaryOpcodeValid(); in IsPrimaryOpcodeValid() 108 ALWAYS_INLINE BytecodeInstruction GetInst() const in GetInst() function in ark::interpreter::InstructionHandlerState 110 return state_.GetInst(); in GetInst() 130 return GetInst().GetAddress() - GetFrame()->GetInstruction(); in GetBytecodeOffset()
|
H A D | interpreter-inl.h | 81 return instrHandler->GetInst().template GetImm<FORMAT, 0>() + 1; in GetNumberActualArgsDyn() 117 auto imm = bit_cast<double>(this->GetInst().template GetImm<FORMAT>()); in HandleFldaiDyn() 126 int32_t imm = this->GetInst().template GetImm<FORMAT>(); in HandleLdaiDyn() 135 uint16_t vd = this->GetInst().template GetVReg<FORMAT, 0>(); in HandleMov() 136 uint16_t vs = this->GetInst().template GetVReg<FORMAT, 1>(); in HandleMov() 146 uint16_t vd = this->GetInst().template GetVReg<FORMAT, 0>(); in HandleMovWide() 147 uint16_t vs = this->GetInst().template GetVReg<FORMAT, 1>(); in HandleMovWide() 157 uint16_t vd = this->GetInst().template GetVReg<FORMAT, 0>(); in HandleMovObj() 158 uint16_t vs = this->GetInst().template GetVReg<FORMAT, 1>(); in HandleMovObj() 168 uint16_t vd = this->GetInst() in HandleMovDyn() [all...] |
/arkcompiler/runtime_core/compiler/optimizer/ir_builder/ |
H A D | phi_resolver.h | 67 auto input_inst = save_state->GetInput(idx).GetInst(); in Run() 110 auto input_type = input.GetInst()->GetType(); in SetTypeByInputs() 120 if (user.GetInst()->SetMarker(marker_)) { in FindUsersRec() 123 if (user.GetInst()->IsPhi() || user.GetInst()->GetOpcode() == Opcode::CatchPhi) { in FindUsersRec() 124 phi_users_.push_back(user.GetInst()); in FindUsersRec() 125 FindUsersRec(user.GetInst()); in FindUsersRec() 127 if (!user.GetInst()->IsSaveState()) { in FindUsersRec() 131 real_users_.push_back(user.GetInst()); in FindUsersRec() 146 auto input_inst = input.GetInst(); in FindInputsRec() [all...] |
/arkcompiler/runtime_core/static_core/bytecode_optimizer/ |
H A D | canonicalization.cpp | 39 auto input0 = inst->GetInput(0U).GetInst(); in IsDominateReverseInputs() 40 auto input1 = inst->GetInput(1U).GetInst(); in IsDominateReverseInputs() 75 auto input0 = inst->GetInput(0U).GetInst(); in SwapInputsIfNecessary() 76 auto input1 = inst->GetInput(1U).GetInst(); in SwapInputsIfNecessary() 87 return SwapInputsIfNecessary(inst, inst->GetInput(0U).GetInst()->IsConst()); in TrySwapConstantInput() 109 auto input1 = inst->GetInput(1U).GetInst(); in AllowSwap() 114 if (user.GetInst() != inst) { in AllowSwap()
|
H A D | reg_acc_alloc.cpp | 67 compiler::Inst *input = inst->GetInput(AccReadIndex(inst)).GetInst(); in IsAccReadFromReg() 132 return user->GetInput(AccReadIndex(user)).GetInst() != inst; in UserNeedSwapInputs() 167 compiler::Inst *uinput = input.GetInst(); in CanUserReadAcc() 181 auto inputInst = input.GetInst(); in CanUserReadAcc() 197 return CanIntrinsicReadAcc(user->CastToIntrinsic()) && user->GetInput(AccReadIndex(user)).GetInst() == inst; in CanUserReadAcc() 208 return user->GetInput(AccReadIndex(user)).GetInst() == inst || IsCommutative(user); in CanUserReadAcc() 223 compiler::Inst *phiInput = input.GetInst(); in IsPhiAccReady() 232 compiler::Inst *uinst = user.GetInst(); in IsPhiAccReady() 337 compiler::Inst *uinst = user.GetInst(); in ClearAccForInstAndUsers() 355 compiler::Inst *uinst = user.GetInst(); in MarkInstruction() [all...] |
H A D | bytecodeopt_peepholes.cpp | 32 auto *inst = user.GetInst(); in FindCtorCall() 40 auto callFirstArg = call->GetInput(0U).GetInst(); in FindCtorCall() 65 auto inputInst = callInit->GetInput(i).GetInst(); in CreateInitObject() 78 auto user = it->GetInst(); in ReplaceNewObjectUsers() 127 if (nullCheckInput.GetInst() == inst) { in VisitNewObject() 137 auto load = static_cast<compiler::ClassInst *>(inst->GetInput(0U).GetInst()); in VisitNewObject()
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/regalloc/ |
H A D | reg_alloc_resolver.cpp | 167 if (user.GetInst()->GetOpcode() != Opcode::ReturnInlined) { in GetFirstUserOrInst() 168 return user.GetInst(); in GetFirstUserOrInst() 187 return inst->GetUsers().Front().GetInst(); in GetExplicitUser() 192 auto currInst = user.GetInst(); in GetExplicitUser() 207 if (user.GetInst()->IsPhi()) { in GetExplicitUser() 210 ASSERT(userInst != nullptr && userInst->IsDominate(user.GetInst())); in GetExplicitUser() 254 if (testUser.GetInst()->GetOpcode() == Opcode::ReturnInlined || in FillSaveStateRootsMask() 255 testUser.GetInst()->GetId() == user->GetId()) { in FillSaveStateRootsMask() 258 auto explicitTestUser = GetExplicitUser(testUser.GetInst()); in FillSaveStateRootsMask() 280 auto currUserLn = la->GetInstLifeIntervals(GetExplicitUser(currUser->GetInst())) in SaveStateCopyRequired() [all...] |
/arkcompiler/runtime_core/static_core/irtoc/backend/compiler/ |
H A D | dangling_pointers_checker.cpp | 109 auto instInput = inst->GetInput(0).GetInst(); in IsFrameDef() 165 auto instInput = inst->GetInput(0).GetInst(); in GetAccAndFrameDefs() 173 return std::make_pair(inst, instInput->GetInput(0).GetInst()); in GetAccAndFrameDefs() 196 auto instInput = inst->GetInput(0).GetInst(); in IsAccTagDef() 222 auto accPtrInst = inst->GetInput(0).GetInst(); in IsAccTagPtr() 237 auto frameInst = inst->GetInput(0).GetInst(); in IsAccPtr() 324 auto inputInst = phiInst->GetInput(inputIdx).GetInst(); in GetPhiAccDef() 330 (inputInst->GetOpcode() == Opcode::Bitcast && inputInst->GetInput(0).GetInst()->IsConst())) { in GetPhiAccDef() 356 auto inputInst = inst->GetInput(inputIdx).GetInst(); in GetAccDefFromInputs() 363 (inputInst->GetOpcode() == Opcode::Bitcast && inputInst->GetInput(0).GetInst() in GetAccDefFromInputs() [all...] |
/arkcompiler/runtime_core/bytecode_optimizer/ |
H A D | reg_acc_alloc.cpp | 59 compiler::Inst *input = inst->GetInput(AccReadIndex(inst)).GetInst(); in IsAccWriteBetween() 119 compiler::Inst *uinput = input.GetInst(); in CanUserReadAcc() 136 return user->GetInput(AccReadIndex(user)).GetInst() == inst || user->IsCommutative(); in CanUserReadAcc() 151 compiler::Inst *phi_input = input.GetInst(); in IsPhiAccReady() 159 compiler::Inst *uinst = user.GetInst(); in IsPhiAccReady() 228 compiler::Inst *uinst = user.GetInst(); in MarkAccForInstructions() 251 compiler::Inst *uinst = user.GetInst(); in MarkAccForInstructions() 273 compiler::Inst *input = inst->GetInput(AccReadIndex(inst)).GetInst(); in UpdateInstructionsAfterMark() 284 compiler::Inst *uinst = user.GetInst(); in UpdateInstructionsAfterMark()
|
/arkcompiler/runtime_core/static_core/compiler/tests/ |
H A D | const_folding_test.cpp | 66 ASSERT_EQ(INS(3U).GetInput(0U).GetInst(), inst); in CmpTest() 96 ASSERT_EQ(INS(2U).GetInput(0U).GetInst(), inst); in CastTest() 116 ASSERT_EQ(INS(2U).GetInput(0U).GetInst(), inst); in CheckCompareEqualInputs() 138 ASSERT_EQ(INS(3U).GetInput(0U).GetInst(), inst); in CheckCompareLoadImmediate() 187 ASSERT_EQ(INS(7U).GetInput(0U).GetInst(), result ? &INS(8U) : &INS(9U)); in CheckCompareWithNan() 226 ASSERT_EQ(INS(7U).GetInput(0U).GetInst(), isOptimized ? &INS(input) : &INS(6U)); in CheckNegNan() 266 ASSERT_EQ(INS(7U).GetInput(0U).GetInst()->IsConst(), true); in CheckBinaryMathWithNan() 267 ASSERT_EQ(INS(7U).GetInput(0U).GetInst()->CastToConstant()->IsNaNConst(), true); in CheckBinaryMathWithNan() 269 ASSERT_EQ(INS(7U).GetInput(0U).GetInst(), &INS(6U)); in CheckBinaryMathWithNan() 364 ASSERT_EQ(INS(2U).GetInput(0U).GetInst(), ins in TEST_F() [all...] |
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/ |
H A D | analysis.cpp | 164 return inst->GetInput(1).GetInst(); in IntrinsicStoredValue() 186 val = inst->GetInput(inst->GetInputsCount() - 1).GetInst(); in InstStoredValue() 190 val = inst->GetInput(1).GetInst(); in InstStoredValue() 193 val = inst->GetInput(0).GetInst(); in InstStoredValue() 197 val = inst->GetInput(inst->GetInputsCount() - 2U).GetInst(); in InstStoredValue() 198 auto secondInst = inst->GetInput(inst->GetInputsCount() - 1U).GetInst(); in InstStoredValue() 203 val = inst->GetInput(1).GetInst(); in InstStoredValue() 204 auto secondInst = inst->GetInput(2).GetInst(); in InstStoredValue() 310 auto inputInst = inst->GetInput(inputIndex).GetInst(); in IsInputTypeMismatch() 392 auto userInst = user.GetInst(); in CanRemoveOverflowCheck() [all...] |
/arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/ |
H A D | reg_alloc_resolver.cpp | 142 return inst->GetFirstUser()->GetInst(); in GetFirstUserOrInst() 160 return inst->GetUsers().Front().GetInst(); in GetExplicitUser() 166 if (user.GetInst()->IsPhi()) { in GetExplicitUser() 169 ASSERT(user_inst != nullptr && user_inst->IsDominate(user.GetInst())); in GetExplicitUser() 202 if (test_user.GetInst()->GetId() == user->GetId()) { in FillSaveStateRootsMask() 205 auto explicit_test_user = GetExplicitUser(test_user.GetInst()); in FillSaveStateRootsMask() 289 auto first_input = catch_phi->GetInput(0).GetInst(); in SqueezeCatchPhiInputs() 291 if (catch_phi->GetInput(i).GetInst() != first_input) { in SqueezeCatchPhiInputs() 305 auto input_inst = catch_phi->GetInput(i).GetInst(); in SqueezeCatchPhiInputs() 310 auto saved_inst = new_catch_phi->GetInput(j).GetInst(); in SqueezeCatchPhiInputs() [all...] |