Home
last modified time | relevance | path

Searched full:compiler (Results 1 – 25 of 1101) sorted by relevance

12345678910>>...45

/arkcompiler/runtime_core/irtoc/backend/
Dcompilation_unit.cpp17 #include "compiler/codegen_boundary.h"
18 #include "compiler/codegen_fastpath.h"
19 #include "compiler/codegen_interpreter.h"
20 #include "compiler/optimizer_run.h"
21 #include "compiler/optimizer/code_generator/target_info.h"
22 #include "compiler/optimizer/optimizations/balance_expressions.h"
23 #include "compiler/optimizer/optimizations/branch_elimination.h"
24 #include "compiler/optimizer/optimizations/checks_elimination.h"
25 #include "compiler/optimizer/optimizations/code_sink.h"
26 #include "compiler/optimizer/optimizations/cse.h"
[all …]
/arkcompiler/ets_frontend/es2panda/test/
Dtest_tsc_ignore_list.txt1 es2panda/test/TypeScript/tests/cases/compiler/ambientClassOverloadForFunction.ts
2 es2panda/test/TypeScript/tests/cases/compiler/arrowFunctionWithObjectLiteralBody5.ts
3 es2panda/test/TypeScript/tests/cases/compiler/arrowFunctionWithObjectLiteralBody6.ts
4 es2panda/test/TypeScript/tests/cases/compiler/assertionFunctionsCanNarrowByDiscriminant.ts
5 es2panda/test/TypeScript/tests/cases/compiler/bom-utf16be.ts
6 es2panda/test/TypeScript/tests/cases/compiler/castTest.ts
7 es2panda/test/TypeScript/tests/cases/compiler/classFunctionMerging.ts
8 es2panda/test/TypeScript/tests/cases/compiler/collisionArgumentsInType.ts
9 es2panda/test/TypeScript/tests/cases/compiler/collisionArgumentsInterfaceMembers.ts
10 es2panda/test/TypeScript/tests/cases/compiler/computedPropertiesTransformedInOtherwiseNonTSClasses.…
[all …]
/arkcompiler/runtime_core/compiler/optimizer/templates/
Dir-dyn-base-types.h.erb19 #include "compiler/optimizer/ir/datatype.h"
36 namespace panda::compiler {
37 inline AnyBaseType NumericDataTypeToAnyType([[maybe_unused]] panda::compiler::DataType::Type type,
38 panda::compiler::SourceLanguage language) {
39 …ASSERT(type == panda::compiler::DataType::Type::UINT8 || type == panda::compiler::DataType::Type::…
40 …type == panda::compiler::DataType::Type::UINT16 || type == panda::compiler::DataType::Type::INT16 …
41 …type == panda::compiler::DataType::Type::UINT32 || type == panda::compiler::DataType::Type::INT32 …
42 …type == panda::compiler::DataType::Type::UINT64 || type == panda::compiler::DataType::Type::INT64 …
43 …type == panda::compiler::DataType::Type::FLOAT32 || type == panda::compiler::DataType::Type::FLOAT…
45 case panda::compiler::DataType::Type::INT8:
[all …]
/arkcompiler/runtime_core/compiler/
Dcompiler.yaml15 name: compiler
16 namespace: panda::compiler
19 - name: compiler-non-optimizing
25 - name: compiler-regex
31 - name: compiler-visualizer-dump
37 - name: compiler-dump
66 - name: compiler-disasm-dump
91 - name: compiler-emit-asm
97 - name: compiler-enable-tracing
103 - name: compiler-enable-tlab-events
[all …]
DCompilerIntrinsicsPostPlugins.cmake14 set(INTRINSICS_STUB_INL ${PANDA_BINARY_ROOT}/compiler/generated/intrinsics_stub.inl)
17 TEMPLATE ${PANDA_ROOT}/compiler/optimizer/templates/intrinsics/intrinsics_stub.inl.erb
23 set(INTRINSICS_STUB_INL_H ${PANDA_BINARY_ROOT}/compiler/generated/intrinsics_stub.inl.h)
26 TEMPLATE ${PANDA_ROOT}/compiler/optimizer/templates/intrinsics/intrinsics_stub.inl.h.erb
32 set(INTRINSICS_CODEGEN_EXT_INL_H ${PANDA_BINARY_ROOT}/compiler/generated/intrinsics_codegen_ext.inl…
35 TEMPLATE ${PANDA_ROOT}/compiler/optimizer/templates/intrinsics/intrinsics_codegen_ext.inl.h.erb
41 set(INTRINSICS_IR_BUILD_STATIC_CALL_INL ${PANDA_BINARY_ROOT}/compiler/generated/intrinsics_ir_build…
44 …TEMPLATE ${PANDA_ROOT}/compiler/optimizer/templates/intrinsics/intrinsics_ir_build_static_call.inl…
50 set(INTRINSICS_IR_BUILD_VIRTUAL_CALL_INL ${PANDA_BINARY_ROOT}/compiler/generated/intrinsics_ir_buil…
53 …TEMPLATE ${PANDA_ROOT}/compiler/optimizer/templates/intrinsics/intrinsics_ir_build_virtual_call.in…
[all …]
/arkcompiler/runtime_core/bytecode_optimizer/
Dreg_encoder.h19 #include "compiler/optimizer/ir/graph.h"
20 #include "compiler/optimizer/pass.h"
21 #include "compiler/optimizer/ir/inst.h"
22 #include "compiler/optimizer/ir/graph_visitor.h"
27 * After compiler's register allocation layout of the virtual frame looks like:
73 compiler::Register reg;
74 compiler::DataType::Type type;
76 RegContent() : reg(compiler::INVALID_REG), type(compiler::DataType::NO_TYPE) {} in RegContent()
77 RegContent(compiler::Register r, compiler::DataType::Type t) : reg(r), type(t) {} in RegContent()
89 using RegContentMap = ArenaUnorderedMap<compiler::Register, RegContent>;
[all …]
Dreg_encoder.cpp18 #include "compiler/optimizer/ir/basicblock.h"
24 if (inst->GetOpcode() != compiler::Opcode::Intrinsic) { in IsIntrinsicRange()
29 case compiler::RuntimeInterface::IntrinsicId::CALLRANGE_IMM8_IMM8_V8: in IsIntrinsicRange()
30 case compiler::RuntimeInterface::IntrinsicId::WIDE_CALLRANGE_PREF_IMM16_V8: in IsIntrinsicRange()
31 case compiler::RuntimeInterface::IntrinsicId::CALLTHISRANGE_IMM8_IMM8_V8: in IsIntrinsicRange()
32 case compiler::RuntimeInterface::IntrinsicId::WIDE_CALLTHISRANGE_PREF_IMM16_V8: in IsIntrinsicRange()
33 case compiler::RuntimeInterface::IntrinsicId::NEWOBJRANGE_IMM8_IMM8_V8: in IsIntrinsicRange()
34 case compiler::RuntimeInterface::IntrinsicId::NEWOBJRANGE_IMM16_IMM8_V8: in IsIntrinsicRange()
35 case compiler::RuntimeInterface::IntrinsicId::WIDE_NEWOBJRANGE_PREF_IMM16_V8: in IsIntrinsicRange()
36 case compiler::RuntimeInterface::IntrinsicId::SUPERCALLTHISRANGE_IMM8_IMM8_V8: in IsIntrinsicRange()
[all …]
Dreg_acc_alloc.cpp18 #include "compiler/optimizer/ir/basicblock.h"
19 #include "compiler/optimizer/ir/inst.h"
26 bool IsAccWriteBetween(compiler::Inst *src_inst, compiler::Inst *dst_inst) in IsAccWriteBetween()
30 compiler::BasicBlock *block = src_inst->GetBasicBlock(); in IsAccWriteBetween()
31 compiler::Inst *inst = src_inst->GetNext(); in IsAccWriteBetween()
60 compiler::Inst *input = inst->GetInput(AccReadIndex(inst)).GetInst(); in IsAccWriteBetween()
62 if (input->GetDstReg() != compiler::ACC_REG_ID) { in IsAccWriteBetween()
77 inline bool RegAccAlloc::IsPhiOptimizable(compiler::Inst *phi) const in IsPhiOptimizable()
79 ASSERT(phi->GetOpcode() == compiler::Opcode::Phi); in IsPhiOptimizable()
86 bool RegAccAlloc::IsAccRead(compiler::Inst *inst) const in IsAccRead()
[all …]
Dcodegen.h24 #include "compiler/optimizer/pass.h"
25 #include "compiler/optimizer/ir/basicblock.h"
26 #include "compiler/optimizer/ir/graph.h"
27 #include "compiler/optimizer/ir/graph_visitor.h"
32 using compiler::BasicBlock;
33 using compiler::Inst;
34 using compiler::Opcode;
36 void DoLda(compiler::Register reg, std::vector<pandasm::Ins> &result);
37 void DoSta(compiler::Register reg, std::vector<pandasm::Ins> &result);
39 class BytecodeGen : public compiler::Optimization, public compiler::GraphVisitor {
[all …]
Dreg_acc_alloc.h25 class RegAccAlloc : public compiler::Optimization {
29 …explicit RegAccAlloc(compiler::Graph *graph) : compiler::Optimization(graph), acc_marker_(graph->N… in RegAccAlloc()
35 return compiler::options.IsCompilerRegAccAlloc(); in IsEnable()
46 bool IsPhiOptimizable(compiler::Inst *phi) const;
47 bool IsAccRead(compiler::Inst *inst) const;
48 bool IsAccWrite(compiler::Inst *inst) const;
50 bool CanUserReadAcc(compiler::Inst *inst, compiler::Inst *user) const;
51 bool IsPhiAccReady(compiler::Inst *phi) const;
52 void SetNeedLda(compiler::Inst *inst, bool need);
54 compiler::Marker acc_marker_ {0};
Dcommon.h19 #include "compiler/optimizer/ir/constants.h"
20 #include "compiler/optimizer/ir/inst.h"
22 namespace panda::compiler {
24 } // namespace panda::compiler
27 static constexpr compiler::Register MIN_REGISTER_NUMBER = 0;
28 static constexpr compiler::Register MAX_NUM_SHORT_CALL_ARGS = 2;
29 static constexpr compiler::Register MAX_NUM_NON_RANGE_ARGS = 4;
30 static constexpr compiler::Register MAX_NUM_INPUTS = MAX_NUM_NON_RANGE_ARGS;
31 static constexpr panda::compiler::Register NUM_COMPACTLY_ENCODED_REGS = 16;
34 uint8_t AccReadIndex(const compiler::Inst *inst);
[all …]
/arkcompiler/ets_frontend/ts2panda/src/statement/
DloopStatement.ts30 import { Compiler } from "../compiler";
35 export function compileDoStatement(stmt: ts.DoStatement, compiler: Compiler) {
36 compiler.pushScope(stmt);
37 let pandaGen = compiler.getPandaGen();
39 let loopScope = <LoopScope>compiler.getRecorder().getScopeOfNode(stmt);
55 compiler.compileStatement(stmt.statement);
57 compiler.compileCondition(stmt.expression, loopEndLabel);
68 compiler.popEnv();
72 compiler.popScope();
75 export function compileWhileStatement(stmt: ts.WhileStatement, compiler: Compiler) {
[all …]
DclassStatement.ts34 import { Compiler } from "../compiler";
59 export function compileClassDeclaration(compiler: Compiler, stmt: ts.ClassLikeDeclaration) {
60 compiler.pushScope(stmt);
62 let pandaGen = compiler.getPandaGen();
70 let baseVreg = compileHeritageClause(compiler, stmt);
83 compiler.compileExpression(<ts.Expression>prop.getValue());
98 … Literal(LiteralTag.METHOD, compiler.getCompilerDriver().getFuncInternalName(<ts.MethodDeclaration…
105 compiler.compileExpression(<ts.Expression | ts.Identifier>prop.getValue());
122 createClassLiteralBuf(compiler, classBuffer, stmt, [baseVreg, classReg]);
124 compileUnCompiledProperty(compiler, properties, classReg);
[all …]
DreturnStatement.ts18 import { Compiler, ControlFlowChange } from "../compiler";
25 export function compileReturnStatement(stmt: ts.ReturnStatement, compiler: Compiler) {
26 let pandaGen = compiler.getPandaGen();
30 compileReturnInDerivedCtor(stmt, returnValue, compiler);
32 compileNormalReturn(stmt, returnValue, compiler);
37 function compileReturnInDerivedCtor(stmt: ts.ReturnStatement, returnValue: VReg, compiler: Compiler
38 let pandaGen = compiler.getPandaGen();
47 compileNormalReturn(stmt, returnValue, compiler);
55 compiler.compileExpression(expr);
68 compiler.getThis(stmt, thisReg);
[all …]
DswitchStatement.ts22 import { Compiler } from "../compiler";
30 private compiler: Compiler; property in SwitchBase
34 …constructor(stmt: ts.SwitchStatement, compiler: Compiler, caseNums: number, switchEndLabel: Label)…
36 this.compiler = compiler;
37 this.pandaGen = compiler.getPandaGen();
55 this.compiler.compileExpression(this.stmt.expression);
61 this.compiler.compileStatement(statement);
70 this.compiler.compileExpression(caseTarget.expression);
94 export function compileSwitchStatement(stmt: ts.SwitchStatement, compiler: Compiler) {
95 let pandaGen = compiler.getPandaGen();
[all …]
/arkcompiler/toolchain/build/third_party_gn/protobuf/
DBUILD.gn145 "$protobuf_src_root/google/protobuf/compiler/importer.cc",
146 "$protobuf_src_root/google/protobuf/compiler/parser.cc",
219 "$protobuf_src_root/google/protobuf/compiler/importer.cc",
220 "$protobuf_src_root/google/protobuf/compiler/parser.cc",
288 "$protobuf_src_root/google/protobuf/compiler/code_generator.cc",
289 "$protobuf_src_root/google/protobuf/compiler/command_line_interface.cc",
290 "$protobuf_src_root/google/protobuf/compiler/cpp/cpp_enum.cc",
291 "$protobuf_src_root/google/protobuf/compiler/cpp/cpp_enum_field.cc",
292 "$protobuf_src_root/google/protobuf/compiler/cpp/cpp_extension.cc",
293 "$protobuf_src_root/google/protobuf/compiler/cpp/cpp_field.cc",
[all …]
/arkcompiler/ets_frontend/ts2panda/src/expression/
DyieldExpression.ts21 import { Compiler } from "../compiler";
23 export function compileYieldExpression(compiler: Compiler, expr: ts.YieldExpression) {
24 …if (!(compiler.getFuncBuilder() instanceof GeneratorFunctionBuilder || compiler.getFuncBuilder() i…
28 expr.asteriskToken ? genYieldStarExpr(compiler, expr) : genYieldExpr(compiler, expr);
31 function genYieldExpr(compiler: Compiler, expr: ts.YieldExpression) {
32 let pandaGen = compiler.getPandaGen();
33 …let funcBuilder = <GeneratorFunctionBuilder | AsyncGeneratorFunctionBuilder> compiler.getFuncBuild…
35 compiler.compileExpression(expr.expression);
43 function genYieldStarExpr(compiler: Compiler, expr: ts.YieldExpression) {
44 let funcBuilder = <GeneratorFunctionBuilder>compiler.getFuncBuilder();
[all …]
DobjectLiteralExpression.ts17 import { Compiler } from "src/compiler";
28 export function compileObjectLiteralExpression(compiler: Compiler, expr: ts.ObjectLiteralExpression…
29 let pandaGen = compiler.getPandaGen();
47 hasMethod = compileProperties(compiler, properties, literalBuffer);
49 createObject(expr, pandaGen, objReg, literalBuffer, hasMethod, compiler);
52 setUncompiledProperties(compiler, pandaGen, properties, objReg);
58 function compileProperties(compiler: Compiler, properties: Property[], literalBuffer: LiteralBuffer…
80 let compilerDriver = compiler.getCompilerDriver();
86 …teral(LiteralTag.GENERATOR, compilerDriver.getFuncInternalName(valueNode, compiler.getRecorder()));
88 … Literal(LiteralTag.METHOD, compilerDriver.getFuncInternalName(valueNode, compiler.getRecorder()));
[all …]
DcallExpression.ts19 import { Compiler } from "../compiler";
27 export function compileCallExpression(expr: ts.CallExpression, compiler: Compiler, inTailPos?: bool…
28 let pandaGen = compiler.getPandaGen();
33 compiler.compileExpression(expr.arguments[0]);
39 …let processed = compiler.compileFunctionReturnThis(<ts.NewExpression | ts.CallExpression>innerExpr…
47 let hasSpread = emitCallArguments(compiler, expr, args);
48 compileSuperCall(compiler, expr, args, hasSpread);
53 let { arguments: args, passThis: passThis } = getHiddenParameters(innerExpression, compiler);
56 emitCall(expr, args, passThis, compiler);
60 export function getHiddenParameters(expr: ts.Expression, compiler: Compiler) {
[all …]
/arkcompiler/runtime_core/compiler/optimizer/code_generator/
DBUILD.gn18 include_dirs = [ "$ark_root/compiler/optimizer/code_generator" ]
38 include_dirs = [ "$ark_root/compiler/optimizer/code_generator/target/x86" ]
53 [ "$ark_root/compiler/optimizer/code_generator/target/aarch64" ]
83 [ "$ark_root/compiler/optimizer/code_generator/target/aarch32" ]
95 [ "$ark_root/compiler/optimizer/code_generator/target/aarch64" ]
101 "$ark_root/compiler:arkcompiler_public_config",
106 "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_can_encode_builtin_inl",
107 "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_generate_operations_intrinsic_graph_inl",
108 "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_generate_operations_intrinsic_inst_inl",
109 "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_get_intrinsics_inl",
[all …]
/arkcompiler/ets_frontend/ts2panda/src/base/
Dlreference.ts18 import { Compiler } from "../compiler";
32 private compiler: Compiler; property in LReference
43 compiler: Compiler,
48 this.compiler = compiler;
57 this.obj = compiler.getPandaGen().getTemp();
58 this.prop = compiler.getPandaGen().getTemp();
63 let pandaGen = this.compiler.getPandaGen();
75 this.compiler.loadTarget(this.node, this.variable!);
85 let pandaGen = this.compiler.getPandaGen();
96 this.compiler.getThis(this.node, thisReg);
[all …]
/arkcompiler/runtime_core/compiler/aot/
DBUILD.gn18 "$ark_root/compiler",
19 "$ark_root/compiler/aot",
44 "$ark_root/compiler:intrinsics_stub_inl_h",
45 "$ark_root/compiler:ir_dyn_base_types_h",
46 "$ark_root/compiler:libarkcompiler",
47 "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_generate_operations_intrinsic_graph_inl",
48 "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_generate_operations_intrinsic_inst_inl",
49 "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_get_intrinsics_inl",
50 "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_get_intrinsics_names_inl",
51 "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_intrinsic_codegen_test_inl",
[all …]
/arkcompiler/runtime_core/bytecode_optimizer/templates/
Dcheck_width.cpp.erb22 case compiler::CC_EQ:
23 case compiler::CC_NE:
24 case compiler::CC_LT:
25 case compiler::CC_LE:
26 case compiler::CC_GT:
27 case compiler::CC_GE: {
32 …LOG(DEBUG, BYTECODE_OPTIMIZER) << "CheckWidth for " << compiler::GetOpcodeString(inst->GetOpcode()…
40 case compiler::CC_EQ:
41 case compiler::CC_NE:
42 case compiler::CC_LT:
[all …]
/arkcompiler/runtime_core/plugins/ecmascript/tests/
DCMakeLists.txt89 RUNTIME_OPTIONS "${CUR_RUNTIME_OPTIONS}" "--compiler-enable-jit=false --gc-type=stw"
105 RUNTIME_OPTIONS "${CUR_RUNTIME_OPTIONS}" "--compiler-enable-jit=false --gc-type=gen-gc"
122 RUNTIME_OPTIONS "${CUR_RUNTIME_OPTIONS}" "--compiler-enable-jit=false --gc-type=g1-gc"
133 … if (PANDA_COMPILER_ENABLE AND NOT CUR_RUNTIME_OPTIONS MATCHES "^.*--compiler-enable-jit=false.*$")
136 TARGET ${target}-enforce-jit-compiler
137 SUBDIR ${suite}-enforce-jit-compiler
140 …RUNTIME_OPTIONS "${CUR_RUNTIME_OPTIONS}" "--compiler-enable-jit=true --compiler-hotness-threshold=…
147 add_dependencies(${suite} ${target}-enforce-jit-compiler)
148 add_dependencies(cts-jit-tests ${target}-enforce-jit-compiler)
156 …UNTIME_OPTIONS "${CUR_RUNTIME_OPTIONS}" "--compiler-enable-jit=true --compiler-hotness-threshold=2…
[all …]
/arkcompiler/runtime_core/bytecode_optimizer/tests/benchmark/
DREADME.md13 [--input-type {class,pa}] [--compiler-options LIST]
14 [--compiler-options-file FILE] [--json FILE] [--verbose]
23 --compiler-options LIST
24 Comma separated list of compiler options for C2P (see 'build/bin/c2p
26 --compiler-options-file FILE
27 Input file containing compiler options for C2P (see 'build/bin/c2p
36 …ts/benchmark/run_benchmark.py --testdir=../benchmark-input --compiler-options-file=compiler.config…
39 where `compiler.config` contains a list of compiler options one per line, e.g.:
42 --compiler-lowering=true
43 --compiler-inlining=true
[all …]

12345678910>>...45