Home
last modified time | relevance | path

Searched refs:builder (Results 1 – 25 of 39) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/compiler/tests/
Dlowering_relate_gate_test.cpp50 CircuitBuilder builder(&circuit); in HWTEST_F_L0() local
52 Environment env(1, &builder); in HWTEST_F_L0()
53 builder.SetEnvironment(&env); in HWTEST_F_L0()
56 auto arg0 = builder.Arguments(0); in HWTEST_F_L0()
59 …circuit.FrameArgs(), {builder.Arguments(3), builder.Arguments(4), builder.Arguments(5), builder.Ar… in HWTEST_F_L0()
62 builder.SetDepend(stateSplit); in HWTEST_F_L0()
63 auto check = builder.TryPrimitiveTypeCheck(GateType::NumberType(), arg0); in HWTEST_F_L0()
64 builder.ReturnVoid(check, depend); in HWTEST_F_L0()
77 CircuitBuilder builder(&circuit); in HWTEST_F_L0() local
81 auto arg0 = builder.Arguments(0); in HWTEST_F_L0()
[all …]
/arkcompiler/runtime_core/compiler/tests/
Dcode_info_test.cpp47 auto EmitCode(CodeInfoBuilder &builder) in EmitCode() argument
53 builder.Encode(&data, data.size() * BITS_PER_BYTE); in EmitCode()
103 CodeInfoBuilder builder(RUNTIME_ARCH, GetAllocator()); in TEST_F() local
104 builder.BeginMethod(1, 3); in TEST_F()
110 builder.BeginStackMap(10, 20, &stack_roots, reg_roots.to_ullong(), true, false); in TEST_F()
111 builder.AddVReg(vregs[0]); in TEST_F()
112 builder.AddVReg(vregs[1]); in TEST_F()
113 builder.AddVReg(vregs[2]); in TEST_F()
114 builder.EndStackMap(); in TEST_F()
115 builder.EndMethod(); in TEST_F()
[all …]
/arkcompiler/runtime_core/libpandabase/tests/
Dbit_table_test.cpp64 BitTableBuilder<BitTableDefault<1>> builder(GetAllocator()); in TEST_F() local
65 using Builder = decltype(builder); in TEST_F()
67 builder.Encode(out); in TEST_F()
82 BitTableBuilder<BitTableDefault<1>> builder(GetAllocator()); in TEST_F() local
83 using Builder = decltype(builder); in TEST_F()
84 builder.Emplace(Builder::Entry({Builder::NO_VALUE})); in TEST_F()
86 builder.Encode(out); in TEST_F()
104 BitTableBuilder<BitTableDefault<1>> builder(GetAllocator()); in TEST_F() local
105 using Builder = decltype(builder); in TEST_F()
106 builder.Emplace(Builder::Entry({9})); in TEST_F()
[all …]
Djson_builder_test.cpp112 JsonArrayBuilder builder; in TEST() local
114 builder.Add(1); in TEST()
115 builder.Add("foo"); in TEST()
116 builder.Add([](JsonArrayBuilder &x) { x.Add([](JsonArrayBuilder &) {}); }); in TEST()
118 EXPECT_EQ(std::move(builder).Build(), "[1,\"foo\",[[]]]"); in TEST()
131 JsonObjectBuilder builder; in TEST() local
133 builder.AddProperty("x", 1); in TEST()
134 builder.AddProperty("y", "foo"); in TEST()
135builder.AddProperty("z", [](JsonObjectBuilder &z) { z.AddProperty("_", [](JsonObjectBuilder &) {})… in TEST()
137 EXPECT_EQ(std::move(builder).Build(), R"({"x":1,"y":"foo","z":{"_":{}}})"); in TEST()
/arkcompiler/ets_runtime/ecmascript/compiler/
Daccess_object_stub_builder.cpp35 ICStubBuilder builder(this); in LoadObjByName() local
36 builder.SetParameters(glue, receiver, profileTypeInfo, value, slotId); in LoadObjByName()
37 builder.LoadICByName(&result, &tryFastPath, &slowPath, &exit, callback); in LoadObjByName()
105 ICStubBuilder builder(this); in StoreObjByName() local
106 builder.SetParameters(glue, receiver, profileTypeInfo, value, slotId, callback); in StoreObjByName()
107 builder.StoreICByName(&result, &tryFastPath, &slowPath, &exit); in StoreObjByName()
139 InterpreterToolsStubBuilder builder(GetCallSignature(), GetEnvironment()); in ResolvePropKey() local
140 GateRef stringId = builder.GetStringId(info); in ResolvePropKey()
156 ICStubBuilder builder(this); in LoadObjByValue() local
157 builder.SetParameters(glue, receiver, profileTypeInfo, value, slotId, key); in LoadObjByValue()
[all …]
Dinterpreter_stub.cpp493 OperationsStubBuilder builder(this); in DECLARE_ASM_HANDLER() local
494 GateRef result = builder.Mul(glue, left, acc, callback); in DECLARE_ASM_HANDLER()
501 OperationsStubBuilder builder(this); in DECLARE_ASM_HANDLER() local
502 GateRef result = builder.Div(glue, left, acc, callback); in DECLARE_ASM_HANDLER()
509 OperationsStubBuilder builder(this); in DECLARE_ASM_HANDLER() local
510 GateRef result = builder.Mod(glue, left, acc, callback); in DECLARE_ASM_HANDLER()
517 OperationsStubBuilder builder(this); in DECLARE_ASM_HANDLER() local
518 GateRef result = builder.Equal(glue, left, acc, callback); in DECLARE_ASM_HANDLER()
535 OperationsStubBuilder builder(this); in DECLARE_ASM_HANDLER() local
536 GateRef result = builder.NotEqual(glue, left, acc, callback); in DECLARE_ASM_HANDLER()
[all …]
Dcommon_stubs.cpp338 AccessObjectStubBuilder builder(this, jsFunc); in GenerateCircuit() local
341 …Return(builder.LoadObjByName(glue, receiver, id, info, profileTypeInfo, slotId, ProfileOperation()… in GenerateCircuit()
349 AccessObjectStubBuilder builder(this); in GenerateCircuit() local
350 Return(builder.DeprecatedLoadObjByName(glue, receiver, key)); in GenerateCircuit()
361 AccessObjectStubBuilder builder(this, jsFunc); in GenerateCircuit() local
364 …Return(builder.StoreObjByName(glue, receiver, id, info, value, profileTypeInfo, slotId, ProfileOpe… in GenerateCircuit()
392 AccessObjectStubBuilder builder(this); in GenerateCircuit() local
394 Return(builder.LoadObjByValue(glue, receiver, key, profileTypeInfo, slotId)); in GenerateCircuit()
413 AccessObjectStubBuilder builder(this); in GenerateCircuit() local
415 Return(builder.StoreObjByValue(glue, receiver, key, value, profileTypeInfo, slotId)); in GenerateCircuit()
[all …]
Dpass_manager.cpp104 … BytecodeCircuitBuilder builder(jsPandaFile, methodLiteral, methodPCInfo, tsManager, &circuit, in Compile() local
110 builder.BytecodeToCircuit(); in Compile()
113 PassData data(&builder, &circuit, &ctx, log_, fullName, &methodInfo, hasTypes, recordName, in Compile()
117 if (builder.EnableLoopOptimization()) { in Compile()
Dbytecodes.cpp449 void BytecodeInfo::InitBytecodeInfo(BytecodeCircuitBuilder *builder, in InitBytecodeInfo() argument
752 info.inputs.emplace_back(VirtualRegister(builder->GetEnvVregIdx())); in InitBytecodeInfo()
760 info.inputs.emplace_back(VirtualRegister(builder->GetEnvVregIdx())); in InitBytecodeInfo()
768 info.inputs.emplace_back(VirtualRegister(builder->GetEnvVregIdx())); in InitBytecodeInfo()
776 info.inputs.emplace_back(VirtualRegister(builder->GetEnvVregIdx())); in InitBytecodeInfo()
808 info.inputs.emplace_back(VirtualRegister(builder->GetEnvVregIdx())); in InitBytecodeInfo()
816 info.inputs.emplace_back(VirtualRegister(builder->GetEnvVregIdx())); in InitBytecodeInfo()
824 info.inputs.emplace_back(VirtualRegister(builder->GetEnvVregIdx())); in InitBytecodeInfo()
832 info.inputs.emplace_back(VirtualRegister(builder->GetEnvVregIdx())); in InitBytecodeInfo()
840 info.inputs.emplace_back(VirtualRegister(builder->GetEnvVregIdx())); in InitBytecodeInfo()
[all …]
Dbytecodes.h698 static void InitBytecodeInfo(BytecodeCircuitBuilder *builder,
709 BytecodeIterator(BytecodeCircuitBuilder *builder, in BytecodeIterator() argument
711 : builder_(builder), start_(start), end_(end) {} in BytecodeIterator()
712 void Reset(BytecodeCircuitBuilder *builder, in Reset() argument
715 builder_ = builder; in Reset()
Dfile_generators.cpp40 ArkStackMapBuilder builder; in CollectStackMapDes() local
41 std::tie(ptr, size) = builder.Run(std::move(stackmapPtr), textAddr, llvmModule_->GetTriple()); in CollectStackMapDes()
62 ArkStackMapBuilder builder; in CollectAnStackMapDes() local
63 builder.Collect(std::move(stackmapPtr), textAddr, textOffset, pc2CallsiteInfoVec, pc2DeoptVec); in CollectAnStackMapDes()
396 ArkStackMapBuilder builder; in GenerateMergedStackmapSection() local
399 …std::tie(ptr, size) = builder.GenerateArkStackMap(pc2CallSiteInfoVec_, pc2DeoptVec_, cfg_.GetTripl… in GenerateMergedStackmapSection()
Dllvm_ir_builder.cpp88 LLVMDIBuilderRef builder = GetDIBuilder(); in GetFunctionTypeMD() local
89 …LLVMMetadataRef Int64Ty = LLVMDIBuilderCreateBasicType(builder, "Int64", 5, 64, 0, LLVMDIFlags::LL… in GetFunctionTypeMD()
91 …LLVMMetadataRef funcTy = LLVMDIBuilderCreateSubroutineType(builder, dFile, paramT, 2, LLVMDIFlags:… in GetFunctionTypeMD()
383 void LLVMIRBuilder::SaveFrameTypeOnFrame(FrameType frameType, LLVMBuilderRef builder) in SaveFrameTypeOnFrame() argument
385 LLVMValueRef llvmFpAddr = CallingFp(module_, builder, false); in SaveFrameTypeOnFrame()
387 LLVMValueRef frameAddr = LLVMBuildPtrToInt(builder, llvmFpAddr, slotType_, "cast_int_t"); in SaveFrameTypeOnFrame()
388 …LLVMValueRef frameTypeSlotAddr = LLVMBuildSub(builder, frameAddr, LLVMConstInt(slotType_, slotSize… in SaveFrameTypeOnFrame()
389 …LLVMValueRef addr = LLVMBuildIntToPtr(builder, frameTypeSlotAddr, LLVMPointerType(slotType_, 0), "… in SaveFrameTypeOnFrame()
391 LLVMBuildStore(builder, llvmFrameType, addr); in SaveFrameTypeOnFrame()
394 LLVMValueRef LLVMIRBuilder::CallingFp(LLVMModuleRef &module, LLVMBuilderRef &builder, bool isCaller) in CallingFp() argument
[all …]
Dts_inline_lowering.cpp192 BytecodeCircuitBuilder builder(jsPandaFile, method, methodPCInfo, in InlineCall() local
199 BuildFrameStateChain(info, builder); in InlineCall()
202 builder.BytecodeToCircuit(); in InlineCall()
205 PassData data(&builder, circuit_, ctx_, log, fullName, in InlineCall()
209 if (builder.EnableLoopOptimization()) { in InlineCall()
527 void TSInlineLowering::BuildFrameStateChain(CallGateInfo &info, BytecodeCircuitBuilder &builder) in BuildFrameStateChain() argument
531 builder.SetPreFrameState(preFrameState); in BuildFrameStateChain()
Dstate_split_linearizer.cpp290 StateDependBuilder builder(this, graphLinearizer_.chunk_); in LinearizeStateSplit() local
291 builder.Run(graphLinearizer_.regionList_); in LinearizeStateSplit()
Dllvm_codegen.cpp222 …LLVMIRBuilder builder(&graph, circuit, module_, function, cfg, cs->GetCallConv(), enableLog_, fals… in GenerateCodeForStub() local
223 builder.Build(); in GenerateCodeForStub()
238 LLVMIRBuilder builder(&graph, circuit, module_, function, cfg, conv, in GenerateCode() local
240 builder.Build(); in GenerateCode()
/arkcompiler/ets_frontend/es2panda/ir/statements/
DswitchStatement.cpp46 compiler::SwitchBuilder builder(pg, this); in Compile() local
49 builder.CompileTagOfSwitch(tag); in Compile()
66 builder.JumpIfCase(tag, i); in Compile()
70 builder.JumpToDefault(defaultIndex); in Compile()
72 builder.Break(); in Compile()
76 builder.SetCaseTarget(i); in Compile()
77 builder.CompileCaseStatements(i); in Compile()
/arkcompiler/ets_runtime/ecmascript/compiler/type_inference/
Dglobal_type_infer.cpp71 BytecodeCircuitBuilder *builder = in NewTypeInfer() local
75 builder->BytecodeToCircuit(); in NewTypeInfer()
76 builders_.emplace_back(builder); in NewTypeInfer()
78 …MethodTypeInfer *typeInfer = new MethodTypeInfer(builder, circuit, ctx_, methodInfo.GetMethodInfoI… in NewTypeInfer()
111 void GlobalTypeInfer::ProcessTypeInference(BytecodeCircuitBuilder *builder, Circuit *circuit) in ProcessTypeInference() argument
115 MethodTypeInfer typeInfer(builder, circuit, ctx_, methodInfo.GetMethodInfoIndex(), enableLog_, in ProcessTypeInference()
116 builder->GetMethodName(), recordName_, &methodInfo, in ProcessTypeInference()
Dpgo_type_infer.h27 PGOTypeInfer(Circuit *circuit, TSManager *tsManager, BytecodeCircuitBuilder *builder, in PGOTypeInfer() argument
30 … builder_(builder), methodName_(name), chunk_(chunk), enableLog_(enableLog), profiler_(chunk) {} in PGOTypeInfer()
Dglobal_type_infer.h28 void ProcessTypeInference(BytecodeCircuitBuilder *builder, Circuit *circuit);
/arkcompiler/runtime_core/libpandabase/utils/
Djson_builder.h151 JsonArrayBuilder builder; in Stringify() local
152 std::invoke(std::forward<T>(array), builder); in Stringify()
153 ss_ << std::move(builder).Build(); in Stringify()
160 JsonObjectBuilder builder; in Stringify() local
161 std::invoke(std::forward<T>(object), builder); in Stringify()
162 ss_ << std::move(builder).Build(); in Stringify()
/arkcompiler/ets_runtime/ecmascript/
Djs_locale.cpp106 icu::LocaleMatcher::Builder builder; in BuildLocaleMatcher() local
107 builder.setDefaultLocale(&defaultLocale); in BuildLocaleMatcher()
116 builder.addSupportedLocale(localeForLanguageTag); in BuildLocaleMatcher()
122 return builder.build(*status); in BuildLocaleMatcher()
783 bool BuildOptionsTags(const JSHandle<EcmaString> &tag, icu::LocaleBuilder *builder, JSHandle<JSTagg… in BuildOptionsTags() argument
789 builder->setLanguageTag({ tagStr.c_str(), len }); in BuildOptionsTags()
791 icu::Locale locale = builder->build(status); in BuildOptionsTags()
796 builder->setLocale(locale); in BuildOptionsTags()
800 builder->setLanguage(languageStr); in BuildOptionsTags()
801 builder->build(status); in BuildOptionsTags()
[all …]
Djs_displaynames.cpp95 icu::LocaleBuilder builder; in IsUnicodeScriptSubtag() local
96 builder.setScript(value).build(status); in IsUnicodeScriptSubtag()
103 icu::LocaleBuilder builder; in IsUnicodeRegionSubtag() local
104 builder.setRegion(value).build(status); in IsUnicodeRegionSubtag()
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/
Dan_file_info.cpp41 ElfBuilder builder(des_, GetDumpSectionNames()); in Save() local
43builder.PackELFHeader(header, base::FileHeaderBase::ToVersionNumber(AOTFileVersion::AN_VERSION), t… in Save()
45 builder.PackELFSections(file); in Save()
46 builder.PackELFSegment(file); in Save()
Dstub_file_info.cpp50 ElfBuilder builder(des_, GetDumpSectionNames()); in Save() local
52builder.PackELFHeader(header, base::FileHeaderBase::ToVersionNumber(AOTFileVersion::AN_VERSION), t… in Save()
54 builder.PackELFSections(file); in Save()
55 builder.PackELFSegment(file); in Save()
/arkcompiler/runtime_core/compiler/docs/
Dir_builder.md5 The IR builder pass constructs the Intermediate Representation (IR) from the Panda bytecode.
16 Due to specifics of the Panda bytecode, IR builder has responsibility to handle various situation t…
25 Resolving these things requires addition actions in the builder, that, in turn, can require additio…
146 [Panda IR builder source code](../optimizer/ir_builder/)

12