Home
last modified time | relevance | path

Searched refs:Clone (Results 1 - 25 of 260) sorted by relevance

1234567891011

/arkcompiler/runtime_core/compiler/optimizer/ir/
H A Dinst.cpp263 Inst *Inst::Clone(const Graph *targetGraph) const in Clone() function in Inst
285 Inst *SpillFillInst::Clone(const Graph *targetGraph) const in Clone() function in SpillFillInst
287 auto clone = FixedInputsInst::Clone(targetGraph)->CastToSpillFill(); in Clone()
294 Inst *CompareInst::Clone(const Graph *targetGraph) const in Clone() function in CompareInst
296 auto clone = FixedInputsInst::Clone(targetGraph); in Clone()
302 Inst *CmpInst::Clone(const Graph *targetGraph) const in Clone() function in CmpInst
304 auto clone = FixedInputsInst::Clone(targetGraph); in Clone()
309 Inst *IfInst::Clone(const Graph *targetGraph) const in Clone() function in IfInst
311 auto clone = FixedInputsInst::Clone(targetGraph); in Clone()
318 Inst *IntrinsicInst::Clone(cons function in IntrinsicInst
332 Inst *ConstantInst::Clone(const Graph *targetGraph) const Clone() function in ConstantInst
362 Inst *ParameterInst::Clone(const Graph *targetGraph) const Clone() function in ParameterInst
370 Inst *SaveStateInst::Clone(const Graph *targetGraph) const Clone() function in SaveStateInst
438 Inst *TryInst::Clone(const Graph *targetGraph) const Clone() function in TryInst
[all...]
/arkcompiler/ets_frontend/ets2panda/ir/base/
H A DscriptFunctionSignature.cpp61 FunctionSignature FunctionSignature::Clone(ArenaAllocator *allocator) in Clone() function in ark::es2panda::ir::FunctionSignature
66 clonedParams.emplace_back(param->Clone(allocator, param->Parent())->AsExpression()); in Clone()
70 typeParams_ != nullptr ? typeParams_->Clone(allocator, nullptr)->AsTSTypeParameterDeclaration() : nullptr; in Clone()
72 returnTypeAnnotation_ != nullptr ? returnTypeAnnotation_->Clone(allocator, nullptr) : nullptr; in Clone()
H A DclassProperty.cpp153 ClassProperty *ClassProperty::Clone(ArenaAllocator *const allocator, AstNode *const parent) in Clone() function in ark::es2panda::ir::ClassProperty
155 auto *const key = key_->Clone(allocator, nullptr)->AsExpression(); in Clone()
156 auto *const value = value_ != nullptr ? value_->Clone(allocator, nullptr)->AsExpression() : nullptr; in Clone()
157 auto *const typeAnnotation = typeAnnotation_ != nullptr ? typeAnnotation_->Clone(allocator, nullptr) : nullptr; in Clone()
174 clone->AddDecorator(decorator->Clone(allocator, clone)); in Clone()
H A DtsIndexSignature.cpp82 TSIndexSignature *TSIndexSignature::Clone(ArenaAllocator *const allocator, AstNode *const parent) in Clone() function in ark::es2panda::ir::TSIndexSignature
84 auto *const param = param_ != nullptr ? param_->Clone(allocator, nullptr)->AsExpression() : nullptr; in Clone()
85 auto *const typeAnnotation = typeAnnotation_->Clone(allocator, nullptr); in Clone()
H A DtsPropertySignature.cpp83 TSPropertySignature *TSPropertySignature::Clone(ArenaAllocator *const allocator, AstNode *const parent) in Clone() function in ark::es2panda::ir::TSPropertySignature
85 auto *const key = key_ != nullptr ? key_->Clone(allocator, nullptr)->AsExpression() : nullptr; in Clone()
86 auto *const typeAnnotation = TypeAnnotation()->Clone(allocator, nullptr); in Clone()
H A DmethodDefinition.cpp243 MethodDefinition *MethodDefinition::Clone(ArenaAllocator *const allocator, AstNode *const parent) in Clone() function in ark::es2panda::ir::MethodDefinition
245 auto *const key = key_ != nullptr ? key_->Clone(allocator, nullptr)->AsExpression() : nullptr; in Clone()
246 auto *const value = value_ != nullptr ? value_->Clone(allocator, nullptr)->AsExpression() : nullptr; in Clone()
263 clone->AddDecorator(decorator->Clone(allocator, clone)); in Clone()
267 clone->AddOverload(overloads->Clone(allocator, clone)); in Clone()
H A DscriptFunction.cpp69 ScriptFunction *ScriptFunction::Clone(ArenaAllocator *allocator, AstNode *parent) in Clone() function in ark::es2panda::ir::ScriptFunction
73 params.push_back(param->Clone(allocator, nullptr)->AsExpression()); in Clone()
78 body_ != nullptr ? body_->Clone(allocator, nullptr) : nullptr, in Clone()
80 TypeParams() != nullptr ? TypeParams()->Clone(allocator, nullptr)->AsTSTypeParameterDeclaration() in Clone()
83 ReturnTypeAnnotation() != nullptr ? ReturnTypeAnnotation()->Clone(allocator, nullptr)->AsTypeNode() in Clone()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/
H A Dcfi.h140 Operand *Clone(MemPool &memPool) const override
142 Operand *opnd = memPool.Clone<RegOperand>(*this);
171 Operand *Clone(MemPool &memPool) const override
173 Operand *opnd = memPool.Clone<ImmOperand>(*this);
207 Operand *Clone(MemPool &memPool) const override
209 Operand *opnd = memPool.Clone<SymbolOperand>(*this);
240 Operand *Clone(MemPool &memPool) const override
242 Operand *opnd = memPool.Clone<StrOperand>(*this);
278 Operand *Clone(MemPool &memPool) const override
280 Operand *opnd = memPool.Clone<LabelOperan
[all...]
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
H A Dinst.cpp539 Inst *Inst::Clone(const Graph *targetGraph) const in Clone() function in Inst
558 Inst *FixedInputsInst<N>::Clone(const Graph *targetGraph) const in Clone() function in FixedInputsInst
560 auto clone = static_cast<FixedInputsInst *>(Inst::Clone(targetGraph)); in Clone()
577 Inst *CallInst::Clone(const Graph *targetGraph) const in Clone() function in CallInst
580 auto instClone = Inst::Clone(targetGraph); in Clone()
589 Inst *CallIndirectInst::Clone(const Graph *targetGraph) const in Clone() function in CallIndirectInst
591 auto clone = Inst::Clone(targetGraph)->CastToCallIndirect(); in Clone()
596 Inst *IntrinsicInst::Clone(const Graph *targetGraph) const in Clone() function in IntrinsicInst
599 auto intrinsicClone = (GetOpcode() == Opcode::Intrinsic ? Inst::Clone(targetGraph)->CastToIntrinsic() in Clone()
600 : Inst::Clone(targetGrap in Clone()
612 Inst *ConstantInst::Clone(const Graph *targetGraph) const Clone() function in ConstantInst
642 Inst *ParameterInst::Clone(const Graph *targetGraph) const Clone() function in ParameterInst
650 Inst *SaveStateInst::Clone(const Graph *targetGraph) const Clone() function in SaveStateInst
663 Inst *BinaryShiftedRegisterOperation::Clone(const Graph *targetGraph) const Clone() function in BinaryShiftedRegisterOperation
671 Inst *UnaryShiftedRegisterOperation::Clone(const Graph *targetGraph) const Clone() function in UnaryShiftedRegisterOperation
732 Inst *TryInst::Clone(const Graph *targetGraph) const Clone() function in TryInst
[all...]
H A Dinst.h1202 virtual Inst *Clone(const Graph *targetGraph) const;
2424 Inst *Clone(const Graph *targetGraph) const override;
2618 Inst *Clone(const Graph *targetGraph) const override
2620 auto clone = FixedInputsInst::Clone(targetGraph);
2645 Inst *Clone(const Graph *targetGraph) const override;
2667 Inst *Clone(const Graph *targetGraph) const override;
2837 Inst *Clone(const Graph *targetGraph) const override
2840 auto instClone = FixedInputsInst1::Clone(targetGraph);
2876 Inst *Clone(const Graph *targetGraph) const override
2879 auto instClone = FixedInputsInst2::Clone(targetGrap
[all...]
/arkcompiler/ets_frontend/ets2panda/ir/expressions/
H A DcallExpression.cpp133 callee_ = other.callee_->Clone(allocator, this)->AsExpression(); in CallExpression()
134 typeParams_ = other.typeParams_ != nullptr ? other.typeParams_->Clone(allocator, this) : nullptr; in CallExpression()
137 arguments_.emplace_back(argument->Clone(allocator, this)->AsExpression()); in CallExpression()
141 other.trailingBlock_ != nullptr ? other.trailingBlock_->Clone(allocator, this)->AsBlockStatement() : nullptr; in CallExpression()
144 CallExpression *CallExpression::Clone(ArenaAllocator *const allocator, AstNode *const parent) in Clone() function in ark::es2panda::ir::CallExpression
H A DtaggedTemplateExpression.cpp93 TaggedTemplateExpression *TaggedTemplateExpression::Clone(ArenaAllocator *const allocator, AstNode *const parent) in Clone() function in ark::es2panda::ir::TaggedTemplateExpression
95 auto *const tag = tag_ != nullptr ? tag_->Clone(allocator, nullptr)->AsExpression() : nullptr; in Clone()
96 auto *const quasi = quasi_ != nullptr ? quasi_->Clone(allocator, nullptr) : nullptr; in Clone()
97 auto *const typeParams = typeParams_ != nullptr ? typeParams_->Clone(allocator, nullptr) : nullptr; in Clone()
H A DconditionalExpression.cpp96 ConditionalExpression *ConditionalExpression::Clone(ArenaAllocator *const allocator, AstNode *const parent) in Clone() function in ark::es2panda::ir::ConditionalExpression
98 auto *const test = test_->Clone(allocator, nullptr)->AsExpression(); in Clone()
99 auto *const consequent = consequent_->Clone(allocator, nullptr)->AsExpression(); in Clone()
100 auto *const alternate = alternate_->Clone(allocator, nullptr)->AsExpression(); in Clone()
H A DnewExpression.cpp31 callee_ = other.callee_->Clone(allocator, this)->AsExpression(); in NewExpression()
35 arguments_.emplace_back(argument->Clone(allocator, this)->AsExpression()); in NewExpression()
39 NewExpression *NewExpression::Clone(ArenaAllocator *const allocator, AstNode *const parent) in Clone() function in ark::es2panda::ir::NewExpression
/arkcompiler/ets_frontend/ets2panda/ir/ets/
H A DetsNewClassInstanceExpression.cpp109 other.typeReference_ != nullptr ? other.typeReference_->Clone(allocator, this)->AsExpression() : nullptr; in ETSNewClassInstanceExpression()
110 classDef_ = other.classDef_ != nullptr ? other.classDef_->Clone(allocator, this)->AsClassDefinition() : nullptr; in ETSNewClassInstanceExpression()
113 arguments_.emplace_back(argument->Clone(allocator, this)->AsExpression()); in ETSNewClassInstanceExpression()
117 ETSNewClassInstanceExpression *ETSNewClassInstanceExpression::Clone(ArenaAllocator *const allocator, in Clone() function in ark::es2panda::ir::ETSNewClassInstanceExpression
H A DetsFunctionType.cpp100 ETSFunctionType *ETSFunctionType::Clone(ArenaAllocator *const allocator, AstNode *const parent) in Clone() function in ark::es2panda::ir::ETSFunctionType
105 paramsClone.emplace_back(param->Clone(allocator, nullptr)->AsExpression()); in Clone()
110 ? signature_.TypeParams()->Clone(allocator, nullptr)->AsTSTypeParameterDeclaration() in Clone()
113 signature_.ReturnType() != nullptr ? signature_.ReturnType()->Clone(allocator, nullptr)->AsTypeNode() : nullptr; in Clone()
H A DetsStructDeclaration.cpp83 ETSStructDeclaration *ETSStructDeclaration::Clone(ArenaAllocator *const allocator, AstNode *const parent) in Clone() function in ark::es2panda::ir::ETSStructDeclaration
85 auto *const def = def_ != nullptr ? def_->Clone(allocator, nullptr)->AsClassDefinition() : nullptr; in Clone()
89 clone->AddDecorator(decorator->Clone(allocator, clone)); in Clone()
H A DetsTypeReferencePart.cpp156 ETSTypeReferencePart *ETSTypeReferencePart::Clone(ArenaAllocator *const allocator, AstNode *const parent) in Clone() function in ark::es2panda::ir::ETSTypeReferencePart
158 auto *const nameClone = name_ != nullptr ? name_->Clone(allocator, nullptr)->AsExpression() : nullptr; in Clone()
160 typeParams_ != nullptr ? typeParams_->Clone(allocator, nullptr)->AsTSTypeParameterInstantiation() : nullptr; in Clone()
161 auto *const prevClone = prev_ != nullptr ? prev_->Clone(allocator, nullptr)->AsETSTypeReferencePart() : nullptr; in Clone()
H A DetsParameterExpression.cpp200 ETSParameterExpression *ETSParameterExpression::Clone(ArenaAllocator *const allocator, AstNode *const parent) in Clone() function in ark::es2panda::ir::ETSParameterExpression
202 auto *const identOrSpread = spread_ != nullptr ? spread_->Clone(allocator, nullptr)->AsAnnotatedExpression() in Clone()
203 : ident_->Clone(allocator, nullptr)->AsAnnotatedExpression(); in Clone()
205 initializer_ != nullptr ? initializer_->Clone(allocator, nullptr)->AsExpression() : nullptr; in Clone()
H A DetsNewArrayInstanceExpression.cpp83 ETSNewArrayInstanceExpression *ETSNewArrayInstanceExpression::Clone(ArenaAllocator *const allocator, in Clone() function in ark::es2panda::ir::ETSNewArrayInstanceExpression
86 auto *const typeRef = typeReference_ != nullptr ? typeReference_->Clone(allocator, nullptr) : nullptr; in Clone()
87 auto *const dimension = dimension_ != nullptr ? dimension_->Clone(allocator, nullptr)->AsExpression() : nullptr; in Clone()
/arkcompiler/ets_frontend/ets2panda/ir/statements/
H A DifStatement.cpp113 IfStatement *IfStatement::Clone(ArenaAllocator *const allocator, AstNode *const parent) in Clone() function in ark::es2panda::ir::IfStatement
115 auto *const test = test_->Clone(allocator, nullptr)->AsExpression(); in Clone()
116 auto *const consequent = consequent_->Clone(allocator, nullptr)->AsStatement(); in Clone()
117 auto *const alternate = alternate_ != nullptr ? consequent_->Clone(allocator, nullptr)->AsStatement() : nullptr; in Clone()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/
H A Dmir_const.h87 virtual MIRConst *Clone(MemPool &memPool) const = 0;
199 MIRIntConst *Clone([[maybe_unused]] MemPool &memPool) const override
249 MIRAddrofConst *Clone(MemPool &memPool) const override
275 MIRAddroffuncConst *Clone(MemPool &memPool) const override
294 MIRLblConst *Clone(MemPool &memPool) const override
326 MIRStrConst *Clone(MemPool &memPool) const override
362 MIRStr16Const *Clone(MemPool &memPool) const override
444 MIRFloatConst *Clone(MemPool &memPool) const override
526 MIRDoubleConst *Clone(MemPool &memPool) const override
623 MIRAggConst *Clone(MemPoo
[all...]
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
H A DobjectIterator.cpp125 whileStatement, iterIdent, forOfStatement->Right(), nextIdent, iterIdent->Clone(allocator, nullptr), in ProcessObjectIterator()
126 nextIdent->Clone(allocator, nullptr), nextIdent->Clone(allocator, nullptr), in ProcessObjectIterator()
127 nextIdent->Clone(allocator, nullptr), iterIdent->Clone(allocator, nullptr)); in ProcessObjectIterator()
H A DdefaultParameterLowering.cpp79 ir::Identifier *ident = par->Name()->Clone(checker->Allocator(), nullptr)->AsIdentifier(); in CreateParameterDeclaraion()
81 ? par->Constraint()->Clone(checker->Allocator(), nullptr)->AsTypeNode() in CreateParameterDeclaraion()
84 ? par->DefaultType()->Clone(checker->Allocator(), nullptr)->AsTypeNode() in CreateParameterDeclaraion()
101 ? method->Function()->ReturnTypeAnnotation()->Clone(checker->Allocator(), nullptr)->AsTypeNode() in CreateFunctionSignature()
212 id = method->Id()->Clone(checker->Allocator(), nullptr)->AsIdentifier(); in CreateFunctionExpression()
225 auto *ident = funcExpression->Function()->Id()->Clone(checker->Allocator(), nullptr); in CreateOverloadFunction()
300 clone = par->Initializer()->Clone(checker->Allocator(), nullptr)->AsExpression(); in ProcessGlobalFunctionDefinition()
317 expr->AsETSParameterExpression()->Ident()->Clone(checker->Allocator(), nullptr)->AsIdentifier(); in ProcessGlobalFunctionDefinition()
323 expr->AsETSParameterExpression()->Ident()->Clone(checker->Allocator(), nullptr)->AsIdentifier(); in ProcessGlobalFunctionDefinition()
H A DtupleLowering.cpp72 // Clone argument of update expression (conversion flag might be added to it, so we need to duplicate it to not in GenerateExpressions()
89 auto *identClone = gensym->Clone(checker_->Allocator(), nullptr); in GenerateExpressions()
98 identClone = gensym->Clone(checker_->Allocator(), nullptr); in GenerateExpressions()
101 identClone, tupleTypeAtIdxNode_->Clone(checker_->Allocator(), nullptr), false); in GenerateExpressions()
108 identClone = gensym2->Clone(checker_->Allocator(), nullptr); in GenerateExpressions()
111 identClone, tupleTypeAtIdxNode_->Clone(checker_->Allocator(), nullptr), false); in GenerateExpressions()
141 auto *const argumentClone = memberExpr->Clone(checker_->Allocator(), memberExpr->Parent()); in CloneArgument()

Completed in 26 milliseconds

1234567891011