Home
last modified time | relevance | path

Searched refs:builder_ (Results 1 - 25 of 80) sorted by relevance

1234

/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dtyped_native_inline_lowering.cpp378 if (builder_.GetCompilationConfig()->IsAArch64()) { in LowerMathCeilFloor()
388 Environment env(gate, circuit_, &builder_); in LowerMathCeilFloorWithIntrinsic()
389 DEFVALUE(result, (&builder_), VariableType::FLOAT64(), builder_.NanValue()); in LowerMathCeilFloorWithIntrinsic()
393 result = builder_.DoubleCeil(arg); in LowerMathCeilFloorWithIntrinsic()
395 result = builder_.DoubleFloor(arg); in LowerMathCeilFloorWithIntrinsic()
397 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), *result); in LowerMathCeilFloorWithIntrinsic()
403 Environment env(gate, circuit_, &builder_); in LowerMathCeilFloorWithRuntimeCall()
404 DEFVALUE(result, (&builder_), VariableTyp in LowerMathCeilFloorWithRuntimeCall()
[all...]
H A Dmcr_lowering.cpp144 Environment env(gate, circuit_, &builder_); in LowerConvertHoleAsUndefined()
146 Label returnUndefined(&builder_); in LowerConvertHoleAsUndefined()
147 Label exit(&builder_); in LowerConvertHoleAsUndefined()
149 DEFVALUE(result, (&builder_), VariableType::JS_ANY(), receiver); in LowerConvertHoleAsUndefined()
151 builder_.Branch(builder_.TaggedIsHole(*result), &returnUndefined, &exit, 1, BranchWeight::DEOPT_WEIGHT, in LowerConvertHoleAsUndefined()
153 builder_.Bind(&returnUndefined); in LowerConvertHoleAsUndefined()
155 result = builder_.UndefineConstant(); in LowerConvertHoleAsUndefined()
156 builder_.Jump(&exit); in LowerConvertHoleAsUndefined()
158 builder_ in LowerConvertHoleAsUndefined()
[all...]
H A Dtyped_hcr_lowering.cpp273 Environment env(gate, circuit_, &builder_); in LowerPrimitiveTypeCheck()
294 GateRef typeCheck = builder_.TaggedIsInt(value); in LowerIntCheck()
295 builder_.DeoptCheck(typeCheck, frameState, DeoptType::NOTINT6); in LowerIntCheck()
297 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), Circuit::NullGate()); in LowerIntCheck()
305 GateRef typeCheck = builder_.TaggedIsDouble(value); in LowerDoubleCheck()
306 builder_.DeoptCheck(typeCheck, frameState, DeoptType::NOTDOUBLE3); in LowerDoubleCheck()
308 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), Circuit::NullGate()); in LowerDoubleCheck()
316 GateRef typeCheck = builder_ in LowerNumberCheck()
[all...]
H A Dntype_hcr_lowering.cpp52 Environment env(gate, circuit_, &builder_); in LowerCreateArray()
62 GateRef length = builder_.Int32(0); in LowerCreateEmptyArray()
66 elements = builder_.GetGlobalConstantValue(ConstantIndex::EMPTY_ARRAY_OBJECT_INDEX); in LowerCreateEmptyArray()
68 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), array); in LowerCreateEmptyArray()
74 GateRef length = builder_.IntPtr(elementsLength); in LowerCreateArrayWithOwn()
78 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), array); in LowerCreateArrayWithOwn()
83 Environment env(gate, circuit_, &builder_); in LowerCreateArrayWithBuffer()
92 GateRef module = builder_ in LowerCreateArrayWithBuffer()
[all...]
H A Dnative_inline_lowering.cpp412 std::vector<GateRef> args{callerFunc, builder_.Int32(id)}; in AddTraceLogs()
414 builder_.CallRuntime(glue_, index, Gate::InvalidGateRef, args, gate); in AddTraceLogs()
426 Environment env(gate, circuit_, &builder_); in TryInlineStringFromCharCode()
428 builder_.CallTargetCheck(gate, tacc.GetFunc(), in TryInlineStringFromCharCode()
429 builder_.IntPtr(static_cast<int64_t>(BuiltinsStubCSigns::ID::StringFromCharCode)), in TryInlineStringFromCharCode()
437 GateRef ret = builder_.StringFromSingleCharCode(tacc.GetArg0()); in TryInlineStringFromCharCode()
438 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), ret); in TryInlineStringFromCharCode()
449 GateRef posTag = (argc == 0) ? (builder_.Int32(0)) : (acc_.GetValueIn(gate, 1)); in TryInlineStringCharCodeAt()
451 Environment env(gate, circuit_, &builder_); in TryInlineStringCharCodeAt()
[all...]
H A Dbuiltins_lowering.cpp22 Environment env(gate, circuit_, &builder_); in LowerTypedCallBuitin()
67 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), ret); in LowerTypedFloor()
72 auto env = builder_.GetCurrentEnvironment(); in TypedLocaleCompare()
73 Label entry(&builder_); in TypedLocaleCompare()
76 Label slowPath(&builder_); in TypedLocaleCompare()
77 Label fastPath(&builder_); in TypedLocaleCompare()
78 Label localeCompareGC(&builder_); in TypedLocaleCompare()
79 Label exit(&builder_); in TypedLocaleCompare()
80 DEFVALUE(result, (&builder_), VariableTyp in TypedLocaleCompare()
[all...]
H A Dslowpath_lowering.cpp35 builder_.Bind(&SuccessLabel); \
37 successControl.SetState(builder_.GetState()); \
38 successControl.SetDepend(builder_.GetDepend()); \
40 builder_.Bind(&FailLabel); \
42 failControl.SetState(builder_.GetState()); \
43 failControl.SetDepend(builder_.GetDepend()); \
60 Environment env(gate, circuit_, &builder_); in CallRuntimeLowering()
122 GateRef envOffset = builder_.IntPtr(JSFunction::LEXICAL_ENV_OFFSET); in LowerGetEnv()
123 GateRef env = builder_.Load(VariableType::JS_ANY(), jsFunc, envOffset, acc_.GetDep(gate)); in LowerGetEnv()
144 Label exit(&builder_); in LowerToJSCall()
[all...]
H A Dtyped_bytecode_lowering.cpp120 Environment env(gate, circuit_, &builder_); in Lower()
392 GateRef result = builder_.TypedBinaryOp<Op>(left, right, tacc.GetParamType()); in LowerTypedEqOrNotEq()
393 acc_.ReplaceHirAndDeleteIfException(gate, builder_.GetStateDepend(), result); in LowerTypedEqOrNotEq()
408 builder_.EcmaStringCheck(left); in SpeculateStrings()
413 builder_.EcmaStringCheck(right); in SpeculateStrings()
416 GateRef result = builder_.TypedBinaryOp<Op>(left, right, tacc.GetParamType()); in SpeculateStrings()
417 acc_.ReplaceHirAndDeleteIfException(tacc.GetGate(), builder_.GetStateDepend(), result); in SpeculateStrings()
428 GateRef result = builder_.TypedBinaryOp<Op>(left, right, tacc.GetParamType()); in SpeculateNumbers()
429 acc_.ReplaceHirAndDeleteIfException(tacc.GetGate(), builder_.GetStateDepend(), result); in SpeculateNumbers()
437 GateRef result = builder_ in SpeculateNumber()
[all...]
H A Dntype_bytecode_lowering.cpp57 Environment env(gate, circuit_, &builder_); in Lower()
124 builder_.LexVarIsHoleCheck(value); in LowerThrowUndefinedIfHoleWithName()
125 acc_.ReplaceHirAndDeleteIfException(gate, builder_.GetStateDepend(), Circuit::NullGate()); in LowerThrowUndefinedIfHoleWithName()
135 builder_.IsUndefinedOrHoleCheck(value); in LowerThrowIfSuperNotCorrectCall()
137 builder_.IsNotUndefinedOrHoleCheck(value); in LowerThrowIfSuperNotCorrectCall()
141 acc_.ReplaceHirAndDeleteIfException(gate, builder_.GetStateDepend(), builder_.TaggedTrue()); in LowerThrowIfSuperNotCorrectCall()
148 builder_.EcmaObjectCheck(value); in LowerThrowIfNotObject()
149 acc_.ReplaceHirAndDeleteIfException(gate, builder_.GetStateDepend(), Circuit::NullGate()); in LowerThrowIfNotObject()
164 result = builder_ in LowerLdLexVar()
[all...]
H A Dnumber_speculative_lowering.cpp120 Environment env(gate, circuit_, &builder_); in VisitTypedBinaryOp()
251 Environment env(gate, circuit_, &builder_); in VisitTypedUnaryOp()
285 Environment env(gate, circuit_, &builder_); in VisitTypedConditionJump()
312 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), result); in VisitNumberCalculate()
331 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), result); in VisitNumberCompare()
343 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), result); in VisitNumberShift()
355 acc_.ReplaceGate(gate, builder_ in VisitNumberLogical()
[all...]
H A Dinstruction_combine.cpp178 return builder_.True(); in VisitREV()
180 return builder_.False(); in VisitREV()
204 result = flag ? builder_.False() : Circuit::NullGate(); in VisitICMP()
221 result = flag ? builder_.False() : Circuit::NullGate(); in VisitICMP()
419 return index == 0 ? builder_.Int32(val) : builder_.Boolean(ovf); in VisitExtractValue()
422 return (index == 0 ? m.Left().Gate() : builder_.Boolean(false)); in VisitExtractValue()
431 return index == 0 ? builder_.Int32(val) : builder_.Boolean(ovf); in VisitExtractValue()
434 return (index == 0 ? m.Left().Gate() : builder_ in VisitExtractValue()
[all...]
H A Dpost_schedule.cpp182 bb[0] = builder_.Nop(); in ReplaceBBState()
202 Environment env(gate, circuit_, &builder_); in LoweringHeapAllocAndPrepareScheduleGate()
203 Label exit(&builder_); in LoweringHeapAllocAndPrepareScheduleGate()
208 DEFVALUE(result, (&builder_), VariableType::JS_ANY(), hole); in LoweringHeapAllocAndPrepareScheduleGate()
209 Label success(&builder_); in LoweringHeapAllocAndPrepareScheduleGate()
210 Label callRuntime(&builder_); in LoweringHeapAllocAndPrepareScheduleGate()
226 GateRef topAddrAddr = builder_.PtrAdd(glue, topAddrOffset); in LoweringHeapAllocAndPrepareScheduleGate()
227 GateRef endAddrAddr = builder_.PtrAdd(glue, endAddrOffset); in LoweringHeapAllocAndPrepareScheduleGate()
228 GateRef topAddress = builder_.Load(VariableType::NATIVE_POINTER(), topAddrAddr); in LoweringHeapAllocAndPrepareScheduleGate()
229 GateRef endAddress = builder_ in LoweringHeapAllocAndPrepareScheduleGate()
[all...]
H A Dnumber_speculative_retype.cpp494 Environment env(gate, circuit_, &builder_); in VisitStringCompare()
503 GateRef rep = builder_.ConvertCharToEcmaString(left); in VisitStringCompare()
507 GateRef rep = builder_.ConvertCharToEcmaString(right); in VisitStringCompare()
519 Environment env(gate, circuit_, &builder_); in VisitStringAdd()
525 input = builder_.ConvertCharToEcmaString(input); in VisitStringAdd()
586 Environment env(state, depend, {}, circuit_, &builder_); in VisitPhi()
588 acc_.ReplaceStateIn(merge, builder_.GetState(), i); in VisitPhi()
589 acc_.ReplaceDependIn(dependSelector, builder_.GetDepend(), i); in VisitPhi()
656 Environment env(gate, circuit_, &builder_); in VisitTypedUnaryOp()
678 Environment env(gate, circuit_, &builder_); in VisitTypedConditionJump()
[all...]
H A Dcircuit_builder-inl.h172 : env_(env), builder_(env_->GetBuilder()) in LogicAndBuilder()
175 builder_->SubCfgEntry(subentry_); in LogicAndBuilder()
176 result_ = new Variable(env_, VariableType::BOOL(), builder_->NextVariableId(), builder_->False()); in LogicAndBuilder()
202 builder_->Branch(check, checkTrue, exit_); in And()
203 builder_->Bind(checkTrue); in And()
209 *result_ = builder_->True(); in Done()
210 builder_->Jump(exit_); in Done()
211 builder_->Bind(exit_); in Done()
213 builder_ in Done()
[all...]
H A Dts_hcr_opt_pass.cpp37 Environment env(gate, circuit_, &builder_); in AddProfiling()
39 auto opcodeGate = builder_.Int32(static_cast<uint32_t>(opcode)); in AddProfiling()
40 GateRef constOpcode = builder_.Int32ToTaggedInt(opcodeGate); in AddProfiling()
41 GateRef traceGate = builder_.CallRuntime(acc_.GetGlueFromArgList(), RTSTUB_ID(ProfileTypedOp), in AddProfiling()
44 builder_.SetDepend(acc_.GetDep(gate)); in AddProfiling()
71 Environment env(gate, circuit_, &builder_); in VisitStringEqual()
87 return builder_.Boolean(false); in VisitStringEqual()
107 return builder_.Boolean(true); in ConvertStringEqualToConst()
109 return builder_.Boolean(false); in ConvertStringEqualToConst()
150 return builder_ in ConvertConstSingleCharToInt32()
[all...]
H A Dasync_function_lowering.cpp42 GateRef isEqual = builder_.Equal(newTarget, builder_.Undefined()); in ProcessJumpTable()
44 GateRef ifBranchCondition = builder_.Branch(stateEntry_, isEqual, 1, 1, "checkNewTarget"); in ProcessJumpTable()
45 GateRef ifTrueCondition = builder_.IfTrue(ifBranchCondition); in ProcessJumpTable()
46 GateRef ifFalseCondition = builder_.IfFalse(ifBranchCondition); in ProcessJumpTable()
52 GateRef contextOffset = builder_.IntPtr(JSGeneratorObject::GENERATOR_CONTEXT_OFFSET); in ProcessJumpTable()
53 GateRef val = builder_.PtrAdd(newTarget, contextOffset); in ProcessJumpTable()
54 GateRef dependStart = builder_.DependRelay(ifFalseCondition, dependEntry_); in ProcessJumpTable()
58 GateRef bcOffset = builder_.IntPtr(GeneratorContext::GENERATOR_BC_OFFSET_OFFSET); in ProcessJumpTable()
59 val = builder_ in ProcessJumpTable()
[all...]
H A Dpass_manager.cpp128 builder_ = new BytecodeCircuitBuilder(jsPandaFile, methodLiteral, methodPCInfo, in Compile() member
131 builder_->SetOsrOffset(osrOffset); in Compile()
134 builder_->SetJitCompile(); in Compile()
135 builder_->BytecodeToCircuit(); in Compile()
136 if (builder_->HasIrreducibleLoop()) { in Compile()
143 data_ = new PassData(builder_, circuit_, ctx_, log_, fullName, &methodInfo, recordName, in Compile()
150 if (builder_->EnableLoopOptimization()) { in Compile()
219 if (builder_ != nullptr) {
220 delete builder_;
221 builder_
[all...]
H A Dasync_function_lowering.h28 : bcBuilder_(bcBuilder), circuit_(circuit), builder_(circuit, cmpCfg), enableLog_(enableLog), in AsyncFunctionLowering()
71 CircuitBuilder builder_; member in panda::ecmascript::kungfu::AsyncFunctionLowering
H A Dinduction_variable_analysis.h29 builder_(circuit, ctx->GetCompilerConfig()), acc_(circuit), in InductionVariableAnalysis()
60 CircuitBuilder builder_; member in panda::ecmascript::kungfu::InductionVariableAnalysis
H A Dstub.cpp22 builder_(circuit), in Stub()
24 env_(callSignature->GetParametersCount(), &builder_) in Stub()
/arkcompiler/runtime_core/static_core/libllvmbackend/lowering/
H A Dllvm_ir_constructor.cpp374 auto f32Ty = builder_.getFloatTy(); in TryEmitIntrinsic()
375 auto f64Ty = builder_.getDoubleTy(); in TryEmitIntrinsic()
493 builder_.CreateCall(trap, {}); in EmitUnreachable()
494 builder_.CreateUnreachable(); in EmitUnreachable()
548 auto threadRegPtr = builder_.CreateIntToPtr(GetThreadRegValue(), builder_.getPtrTy()); in EmitSlowPathEntry()
549 auto frameRegPtr = builder_.CreateIntToPtr(GetRealFrameRegValue(), builder_.getPtrTy()); in EmitSlowPathEntry()
565 argTypes.push_back(builder_.getPtrTy()); in EmitSlowPathEntry()
566 argTypes.push_back(builder_ in EmitSlowPathEntry()
[all...]
H A Ddebug_data_builder.cpp31 DebugDataBuilder::DebugDataBuilder(llvm::Module *module, const std::string &filename) : builder_(new DIBuilder(*module)) in DebugDataBuilder()
33 auto file = builder_->createFile(filename, "/"); in DebugDataBuilder()
34 builder_->createCompileUnit(llvm::dwarf::DW_LANG_C_plus_plus_14, file, "ark-llvm-backend", true, "", 0, "", in DebugDataBuilder()
41 ASSERT(builder_ != nullptr); in BeginSubprogram()
42 auto file = builder_->createFile(filename, "/"); in BeginSubprogram()
44 auto type = builder_->createSubroutineType(builder_->getOrCreateTypeArray(llvm::None)); in BeginSubprogram()
45 auto sp = builder_->createFunction(file, function->getName(), function->getName(), file, line, type, line, in BeginSubprogram()
52 ASSERT(builder_ != nullptr); in EndSubprogram()
53 builder_ in EndSubprogram()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/type_inference/
H A Dpgo_type_infer.cpp70 if (!builder_->ShouldPGOTypeInfer(gate)) { in InferLdObjByName()
79 if (!builder_->ShouldPGOTypeInfer(gate)) { in InferStOwnByIndex()
89 if (!builder_->ShouldPGOTypeInfer(gate)) { in InferCreateArray()
92 auto length = builder_->GetArrayElementsLength(gate); in InferCreateArray()
94 auto regionSpaceFlag = builder_->GetRegionSpaceFlag(gate); in InferCreateArray()
96 ElementsKind kind = builder_->GetElementsKindForCreater(gate); in InferCreateArray()
106 if (!builder_->ShouldPGOTypeInfer(gate)) { in InferAccessObjByValue()
136 auto kinds = builder_->GetElementsKindsForUser(gate); in TrySetElementsKind()
148 auto kinds = builder_->GetTransitionElementsKindsForUser(gate); in TrySetTransitionElementsKind()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/llvm/
H A Dllvm_ir_builder.cpp73 builder_ = LLVMCreateBuilderInContext(context_); in LLVMIRBuilder()
106 if (builder_ != nullptr) { in ~LLVMIRBuilder()
107 LLVMDisposeBuilder(builder_); in ~LLVMIRBuilder()
108 builder_ = nullptr; in ~LLVMIRBuilder()
310 LLVMPositionBuilderAtEnd(builder_, impl->lBB_); in SetToCfg()
382 SaveFrameTypeOnFrame(frameType, builder_); in AssistGenPrologue()
400 SaveFrameTypeOnFrame(frameType, builder_); in GenPrologue()
405 SaveFrameTypeOnFrame(frameType, builder_); in GenPrologue()
424 SaveFrameTypeOnFrame(frameType, builder_); in GenPrologue()
440 LLVMValueRef func = LLVMBuildPtrToInt(builder_, valu in SaveByteCodePcOnOptJSFuncFrame()
[all...]
/arkcompiler/runtime_core/compiler/tests/
H A Dunit_test.cpp68 builder_ = new IrConstructor(); in PandaRuntimeTest()
75 delete builder_; in ~PandaRuntimeTest()
149 delete builder_; in ~CommonTest()

Completed in 36 milliseconds

1234