/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/ |
H A D | gc_utils.cpp | 71 auto cast = llvm::cast<llvm::CastInst>(val); in IsDerivedImpl() local 72 return IsDerivedImpl(cast->stripPointerCasts(), visited); in IsDerivedImpl() 104 auto cast = llvm::dyn_cast<llvm::CastInst>(toStrip); in HasBeenGcRef() 105 while (cast != nullptr && !IsGcRefType(toStrip->getType())) { in HasBeenGcRef() 106 toStrip = cast->getOperand(0); in HasBeenGcRef() 107 cast = llvm::dyn_cast<llvm::CastInst>(toStrip); in HasBeenGcRef() 140 auto inst = llvm::cast<llvm::Instruction>(root); in HasBeenGcRef()
|
H A D | runtime_calls.cpp | 63 auto calleeFuncTy = llvm::cast<llvm::FunctionType>(functionProto); in CreateEntrypointCallCommon()
|
H A D | builtins.cpp | 157 auto methodKlassId = llvm::cast<llvm::ConstantInt>(functionMdCasted)->getZExtValue(); in LowerLoadClassHelper() 158 auto requiredKlassId = llvm::cast<llvm::ConstantInt>(typeIdVal)->getZExtValue(); in LowerLoadClassHelper() 172 auto isConst = llvm::cast<llvm::ConstantInt>(op1); in PreWRBHelper()
|
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/passes/ |
H A D | gep_propagation.cpp | 131 llvm::cast<PHINode>(mbase)->addIncoming(undefBase, bb); in FindSplitGep() 132 llvm::cast<PHINode>(moff)->addIncoming(undefOffset, bb); in FindSplitGep() 136 auto condition = llvm::cast<SelectInst>(inst)->getCondition(); in FindSplitGep() 168 auto inst = llvm::cast<Instruction>(user); in SplitGepSelectors() 242 llvm::cast<PHINode>(moff)->setIncomingValueForBlock(bb, ioff); in GenerateSelectorInputs() 255 auto inPoint = select ? mbase : llvm::cast<PHINode>(inst)->getIncomingBlock(i)->getTerminator(); in GenerateSelectorInputs() 268 return llvm::ConstantInt::getSigned(type, llvm::cast<llvm::ConstantInt>(offsetRaw)->getSExtValue()); in GetConstantOffset() 274 return llvm::ConstantInt::getSigned(type, llvm::cast<llvm::ConstantInt>(offset)->getSExtValue()); in GetConstantOffset() 285 base = llvm::cast<Instruction>(base)->getOperand(0); in GetBasePointer() 290 auto next = llvm::cast<Instructio in GetBasePointer() 424 auto cast = generateCast(); ReplaceWithSplitGep() local [all...] |
H A D | gc_intrusion_check.cpp | 143 for (auto cast = llvm::dyn_cast<CastInst>(val); cast != nullptr; cast = llvm::dyn_cast<CastInst>(val)) { in CheckInstruction() 144 val = cast->getOperand(0); in CheckInstruction() 148 auto instVal = llvm::isa<Argument>(val) ? nullptr : llvm::cast<Instruction>(val); in CheckInstruction() 154 auto phi = llvm::cast<PHINode>(start); in CheckInstruction() 172 for (auto cast = llvm::dyn_cast<CastInst>(inst.getOperand(i)); cast != nullptr; in CheckInstruction() 173 cast = llvm::dyn_cast<CastInst>(cast in CheckInstruction() [all...] |
H A D | expand_atomics.cpp | 76 auto cast = llvm::CastInst::Create(llvm::CastInst::AddrSpaceCast, pointer, in InsertAddrSpaceCast() local 78 cast->insertBefore(atomicInstruction); in InsertAddrSpaceCast() 79 atomicInstruction->setOperand(pointerIndex, cast); in InsertAddrSpaceCast() 81 LLVM_DEBUG(llvm::dbgs() << "Result: cast = '"); in InsertAddrSpaceCast() 82 LLVM_DEBUG(cast->print(llvm::dbgs())); in InsertAddrSpaceCast()
|
H A D | aarch64_fixup_sdiv.cpp | 34 auto cmp = llvm::cast<llvm::Instruction>(selectInst->getOperand(0U)); in ReplaceSelect() 39 auto sdivInst = llvm::cast<llvm::Instruction>(sdiv); in ReplaceSelect() 50 auto subInst = llvm::cast<llvm::Instruction>(sub); in ReplaceSelect()
|
H A D | intrinsics_lowering.cpp | 58 changed |= ReplaceWithLLVMIntrinsic(llvm::cast<llvm::CallInst>(&instruction), llvmIntrinsicId); in run() 68 changed |= HandleCall(llvm::cast<llvm::CallInst>(&instruction), intrinsicId, &instToReplaceWithInst); in run() 126 auto realCountType = llvm::cast<llvm::IntegerType>(callee.getFunctionType()->getParamType(COUNT)); in HandleMemCall() 127 if (llvm::cast<llvm::IntegerType>(op2->getType())->getBitWidth() < realCountType->getBitWidth()) { in HandleMemCall() 149 auto vecLen = llvm::cast<llvm::VectorType>(type)->getElementCount().getKnownMinValue(); in HandleCall() 167 auto result = llvm::cast<llvm::Instruction>(vec); in HandleCall()
|
H A D | propagate_lenarray.cpp | 68 auto cast = llvm::CastInst::Create(llvm::CastInst::Trunc, size, in run() local 70 cast->insertBefore(lenArray); in run() 71 lenArray->replaceAllUsesWith(cast); in run()
|
H A D | gc_intrusion.cpp | 152 auto userBlock = llvm::cast<Instruction>(user)->getParent(); in PopulateLiveInByUsers() 172 liveOuts_[phi.getIncomingBlock(incoming)].insert(llvm::cast<Value>(&incoming)); in PopulateLiveOutByPhis() 211 liveIns_[llvm::cast<Instruction>(user)->getParent()].insert(&arg); in ComputeLiveSets() 590 auto *uinst1 = llvm::cast<Instruction>(u1->getUser()); in CreateSortedUseList() 591 auto *uinst2 = llvm::cast<Instruction>(u2->getUser()); in CreateSortedUseList() 599 if (gcContext->rpoMap.lookup(llvm::cast<Instruction>(use.getUser())->getParent()) >= in CreateSortedUseList() 616 bool needDominance = llvm::isa<Instruction>(to) && llvm::cast<Instruction>(to)->getParent() == block; in ReplaceDominatedUses() 619 auto *uinst = llvm::cast<Instruction>(use->getUser()); in ReplaceDominatedUses() 679 for (auto cast = llvm::cast<CastIns in HoistForRelocation() [all...] |
H A D | prune_deopt.cpp | 100 uint32_t tryFlag = llvm::cast<ConstantInt>(inputs[i + CAUGHT_FLAG_IDX])->getZExtValue(); in IsCaughtDeoptimization() 115 uint32_t tryFlag = llvm::cast<ConstantInt>(inputs[i + CAUGHT_FLAG_IDX])->getZExtValue(); in IsNoReturn() 151 encoded.push_back(builder.getInt32(llvm::cast<ConstantInt>(ops)->getZExtValue() | REGMAP_FLAG)); in EncodeDeoptBundle() 171 auto methodId = llvm::cast<ConstantInt>(inputs[i + METHOD_ID_IDX])->getZExtValue(); in GetInlineInfo()
|
H A D | panda_runtime_lowering.cpp | 175 uint64_t entrypointId = llvm::cast<llvm::ConstantInt>(entrypointIdValue)->getZExtValue(); in LowerDeoptimizeIntrinsic()
|
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/passes/inline_ir/ |
H A D | remove_unused_functions.cpp | 32 using llvm::cast; 85 auto &function = cast<Function>(value); in VisitValue() 96 auto &basicBlock = cast<BasicBlock>(value); in VisitValue() 101 auto &user = cast<User>(value); in VisitValue()
|
H A D | cleanup_inline_module.cpp | 38 using llvm::cast; 280 auto function = cast<Function>(value); in IsInlinable() 335 auto globalVariable = cast<GlobalVariable>(value); in IsInlinable() 366 auto user = cast<User>(value); in IsInlinable() 375 for (auto &instruction : *cast<BasicBlock>(value)) { in IsInlinable()
|
/arkcompiler/ets_frontend/ets2panda/public/ |
H A D | es2panda_lib.rb | 150 !found_change_type_link.cast.respond_to?('reverse_cast') 212 found_change_type.cast['var_name'] = 'std::move(' + found_change_type.cast['var_name'] + ')' 231 @lib_cast = found_change_type&.cast 381 @cast = nil 389 @cast = tmp_arg.lib_cast 404 if @cast 405 @cast['call_cast'] 412 if @cast 413 @cast['constructor_cas 419 def cast global() method in Es2pandaLibApi.Type [all...] |
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
H A D | peepholes.cpp | 686 // "inst"(shr) and "cast"(cast) one by one, so we may check SaveStateOSR only between "inst"(shr) in VisitAShr() 691 auto cast = CreateAndInsertInst(Opcode::Cast, inst, op1->GetInput(0).GetInst()); in VisitAShr() local 692 cast->SetType((offset == offsetInT8) ? DataType::INT8 in VisitAShr() 695 cast->CastToCast()->SetOperandsType(op1->GetInput(0).GetInst()->GetType()); in VisitAShr() 772 // case 5: IR for cast i64 to u16 is in VisitAnd() 773 // 2.i32 cast i64 to i32 in VisitAnd() 775 // replace it with cast i64tou16 in VisitAnd() 779 // "inst"(and) and "cast"(cast) on in VisitAnd() 784 auto cast = CreateAndInsertInst(Opcode::Cast, inst, input0->GetInput(0).GetInst()); VisitAnd() local 1210 auto cast = inst->CastToCast(); VisitCastCase2() local 1396 auto cast = CreateAndInsertInst(Opcode::Cast, cav, valueInst); VisitCastAnyTypeValue() local 2759 auto cast = cmpInst->GetBasicBlock()->GetGraph()->CreateInstCast(); CreateCompareInsteadOfXorAdd() local [all...] |
H A D | escape.cpp | 1801 auto cast = graph_->CreateInstCast(inst->GetType(), inst->GetPc(), replacement, replacement->GetType()); 1802 inst->InsertBefore(cast); 1803 replacement = cast; 1959 /* replace the wider-than-phi-type input with the cast */ 1960 auto cast = graph_->CreateInstCast(phi->GetType(), input->GetPc(), input, input->GetType()); 1961 phi->ReplaceInput(input, cast); 1962 input->InsertAfter(cast);
|
H A D | lse.cpp | 952 // Have to cast a value to the type of eliminated inst. Actually required only for loads. in DeleteInstruction() 955 // We will do nothing in bytecode optimizer mode when the types are not legal for cast. in DeleteInstruction() 957 COMPILER_LOG(DEBUG, LSE_OPT) << LogInst(inst) << " was not eliminated: requires an inappropriate cast"; in DeleteInstruction() 960 auto cast = GetGraph()->CreateInstCast(inst->GetType(), inst->GetPc(), value, value->GetType()); in DeleteInstruction() local 961 inst->InsertAfter(cast); in DeleteInstruction() 962 value = cast; in DeleteInstruction()
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/ |
H A D | analysis.h | 43 bool ApplyForCastJoin(Inst *cast, Inst *input, Inst *origInst, Arch arch);
|
H A D | analysis.cpp | 318 bool ApplyForCastJoin(Inst *cast, Inst *input, Inst *origInst, Arch arch) in ApplyForCastJoin() argument 320 auto inputTypeMismatch = IsInputTypeMismatch(cast, 0, arch); in ApplyForCastJoin() 330 auto currType = cast->GetType(); in ApplyForCastJoin()
|
/arkcompiler/runtime_core/static_core/libllvmbackend/ |
H A D | llvm_ark_interface.cpp | 216 auto arraySize = llvm::cast<llvm::ConstantInt>(sizeArg)->getZExtValue(); in MustLowerMemSet() 240 auto arraySize = llvm::cast<llvm::ConstantInt>(sizeArg)->getZExtValue(); in MustLowerMemCpy() 264 auto arraySize = llvm::cast<llvm::ConstantInt>(sizeArg)->getZExtValue(); in MustLowerMemMove() 356 return GetIntrinsicIdSwitch(llvm::cast<llvm::IntrinsicInst>(inst)); in GetIntrinsicId() 444 auto etype = !type->isVectorTy() ? type : llvm::cast<llvm::VectorType>(type)->getElementType(); in GetIntrinsicIdMath()
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir_builder/ |
H A D | inst_builder.h | 228 auto cast = GetGraph()->CreateInstCast(type, pc, input, operandsType); in CreateCast() local 232 return cast; in CreateCast()
|
/arkcompiler/ets_frontend/ets2panda/compiler/core/ |
H A D | ETSCompiler.cpp | 197 TargetTypeContext ttctx(etsg, nullptr); // without this ints will be cast to JSValue in LoadDynamicName() 717 auto *cast = checker->Allocator()->New<ir::TSAsExpression>(arg, nullptr, false); in ConvertArgumentsForFunctionalCall() local 718 arguments[i]->SetParent(cast); in ConvertArgumentsForFunctionalCall() 719 cast->SetParent(const_cast<ir::CallExpression *>(expr)); in ConvertArgumentsForFunctionalCall() 720 cast->SetTsType(paramType); in ConvertArgumentsForFunctionalCall() 723 cast->AddBoxingUnboxingFlags(checker->GetBoxingFlag(paramType)); in ConvertArgumentsForFunctionalCall() 726 arguments[i] = cast; in ConvertArgumentsForFunctionalCall() 964 // In case when smart cast type of identifier differs from initial variable type perform cast if required in Compile()
|
/arkcompiler/runtime_core/compiler/tests/ |
H A D | liveness_analyzer_test.cpp | 523 auto cast = la->GetInstLifeIntervals(&INS(5)); in TEST_F() local 525 EXPECT_EQ(second_interval.GetEnd(), cast->GetBegin()); in TEST_F()
|
/arkcompiler/ets_frontend/ets2panda/ir/expressions/ |
H A D | memberExpression.cpp | 369 const checker::CastingContext cast( in CheckTupleAccessMethod()
|