Home
last modified time | relevance | path

Searched full:irtoc (Results 1 – 25 of 113) sorted by relevance

12345

/arkcompiler/runtime_core/static_core/irtoc/
Dintrinsics.yaml14 intrinsics_namespace: irtoc
16 # WARNING: 'class_name' field should be `Irtoc` for all Irtoc intrinsics. If it needs to be changed…
21 class_name: Irtoc
32 description: Invoke slow path of the entrypoint from the irtoc'ed entrypoint
36 class_name: Irtoc
50 class_name: Irtoc
64 class_name: Irtoc
79 class_name: Irtoc
94 class_name: Irtoc
108 class_name: Irtoc
[all …]
DCMakeLists.txt14 project(irtoc) project
17 …message(FATAL_ERROR "IRtoC core and front-end must be configured before defining target arkcompile…
20 # These variables will be used in the IRtoC frontend and backend.
22 # we need to use these variables to determine irtoc folders.
25 # IRtoC sources:
32 # IRtoC build directory:
39 # IRtoC target:
50 message(FATAL_ERROR "Unsupported IRtoC target")
56 # IRtoC front-end:
66 ${IRTOC_SOURCE_DIR}/lang/irtoc.rb
[all …]
DBUILD.gn17 import("irtoc.gni")
24 "$ark_root/irtoc",
55 script = "$ark_root/irtoc/lang/irtoc.rb"
99 ohos_executable("irtoc") {
107 "backend/irtoc.cpp",
127 "$ark_root/irtoc:irtoc_compile",
152 get_label_info("$ark_root/irtoc:irtoc(${host_toolchain})",
155 irtoc_cmd = irtoc_root_out_dir + "/bin/irtoc"
158 irtoc_root_out_dir + "/$ark_subsystem_name/$ark_part_name/irtoc"
165 "--irtoc-output",
[all …]
/arkcompiler/runtime_core/static_core/irtoc/backend/
DCMakeLists.txt17 # irtoc: library
32 panda_add_library(irtoc SHARED ${SOURCES})
35 panda_target_link_libraries(irtoc llvmbackend)
36 panda_target_include_directories(irtoc PUBLIC ${CMAKE_SOURCE_DIR}/libllvmbackend)
39 panda_target_link_libraries(irtoc arkcompiler elfio arkbase)
41 add_dependencies(irtoc asm_defines_generator cross_values)
45 panda_target_include_directories(irtoc
51 panda_target_include_directories(irtoc
55 # Compile one or more irtoc script files into elf object file.
58 # INPUT_FILES - input Irtoc scripts, usually it is files from `irtoc/scripts` folder.
[all …]
Doptions.yaml15 name: irtoc
16 namespace: ark::irtoc
19 - name: irtoc-output
21 default: "irtoc.o"
23 - name: irtoc-output-llvm
27 - name: irtoc-llvm-stats
Dirtoc.cpp20 namespace ark::irtoc { namespace
26 ark::irtoc::g_options.AddOptions(&paParser); in Run()
45 Logger::EnableComponent(Logger::Component::IRTOC); in Run()
56 } // namespace ark::irtoc
60 return ark::irtoc::Run(argc, argv); in main()
Dcompilation.cpp29 namespace ark::irtoc { namespace
152 LOG(INFO, IRTOC) << "LLVM Irtoc compilation: used registers " << usedRegisters_.gpr; in CheckUsedRegisters()
156 …LOG(FATAL, IRTOC) << "LLVM Irtoc compilation callee saved register usage is different from optimiz… in CheckUsedRegisters()
163 LOG(INFO, IRTOC) << "LLVM Irtoc compilation: used fp registers " << usedRegisters_.fp; in CheckUsedRegisters()
167 …LOG(FATAL, IRTOC) << "LLVM Irtoc compilation callee saved fp register usage is different from opti… in CheckUsedRegisters()
190 … LOG(FATAL, IRTOC) << "FATAL: unknown arch: " << compiler::g_options.GetCompilerCrossArch(); in Run()
197 LOG(INFO, IRTOC) << "Start Irtoc compilation for " << GetArchString(arch_) << "..."; in Run()
202 LOG(INFO, IRTOC) << "Irtoc compilation success"; in Run()
204 LOG(FATAL, IRTOC) << "Irtoc compilation failed: " << result.Error(); in Run()
236 LOG(INFO, IRTOC) << "Compile " << unit->GetName(); in Compile()
[all …]
Dfunction.h30 namespace ark::irtoc {
39 // 4. Irtoc Unit tests are compiled
248 … * --interpreter-type option in Ark supports interpreters produced by stock irtoc and llvm irtoc.
249 * To support interpreter compiled by stock irtoc and llvm irtoc we:
281 } // namespace ark::irtoc
Dirtoc_runtime.h29 namespace ark::irtoc {
50 return std::string("Irtoc::") + MethodCast(method)->GetName(); in GetMethodFullName()
55 return "Irtoc"; in GetClassName()
60 return "Irtoc"; in GetClassNameFromMethod()
144 } // namespace ark::irtoc
Dirtoc_options.h21 namespace ark::irtoc {
23 } // namespace ark::irtoc
Dirtoc_options.cpp18 namespace ark::irtoc { namespace
21 } // namespace ark::irtoc
/arkcompiler/runtime_core/static_core/runtime/entrypoints/
Dentrypoints.yaml19 # - irtoc: entrypoint is generated by irtoc tool
89 properties: [irtoc]
517 properties: [irtoc]
534 properties: [irtoc]
543 properties: [irtoc]
552 properties: [irtoc]
561 properties: [irtoc]
588 properties: [irtoc]
596 properties: [irtoc]
604 properties: [irtoc]
[all …]
/arkcompiler/runtime_core/tests/
DCMakeLists.txt20 add_custom_target(irtoc-interpreter-tests COMMENT "Running irtoc interpreter tests")
21 add_custom_target(irtoc-opcode-suite COMMENT "Running irtoc interpreter opcode test suite")
23 add_dependencies(tests irtoc-interpreter-tests)
24 add_dependencies(irtoc-interpreter-tests irtoc-opcode-suite)
335 # Skip run with irtoc implemented interpreter
407 …f (NOT ARG_SKIP_INTERPRETER_IRTOC AND NOT PANDA_TARGET_ARM32) # Arm32 is not supported in the Irtoc
410 TARGET ${target}-g1-gc-irtoc
414 …ONS "${CUR_RUNTIME_OPTIONS}" "--compiler-enable-jit=false --gc-type=g1-gc --interpreter-type=irtoc"
421 add_dependencies(${suite} ${target}-g1-gc-irtoc)
893 add_test_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/irtoc-interpreter-tests/sum.pa")
[all …]
/arkcompiler/runtime_core/static_core/tests/
DCMakeLists.txt19 add_custom_target(irtoc-interpreter-tests COMMENT "Running irtoc interpreter tests")
20 add_custom_target(irtoc-opcode-suite COMMENT "Running irtoc interpreter opcode test suite")
28 add_dependencies(core_tests irtoc-interpreter-tests)
29 add_dependencies(irtoc-interpreter-tests irtoc-opcode-suite)
39 add_subdirectory(irtoc-interpreter-tests/irtoc-tag)
459 if (NOT PANDA_TARGET_ARM32) # Arm32 is not supported in the Irtoc
461 set(interp_types "cpp" "irtoc" "llvm")
463 set(interp_types "cpp" "irtoc")
550 TARGET ${target}-irtoc-osr-jit
551 SUBDIR ${suite}-irtoc-osr-jit
[all …]
/arkcompiler/runtime_core/static_core/tests/irtoc-interpreter-tests/irtoc-tag/
DCMakeLists.txt16 project(irtoc-interpreter-tag-tests)
24 set(ISA_FILE "${CMAKE_SOURCE_DIR}/irtoc/lang/isa.rb")
38 add_custom_target(irtoc-interpreter-tests-tag-generator
51 add_custom_target(irtoc-interpreter-tests-tag
56 -o "--interpreter-type=irtoc --gc-type=g1-gc"
60 add_dependencies(irtoc-interpreter-tests-tag irtoc-interpreter-tests-tag-generator)
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/
Dets_entrypoints.yaml19 # - irtoc: entrypoint is generated by irtoc tool
144 properties: [irtoc]
172 properties: [irtoc]
182 properties: [irtoc]
210 properties: [irtoc]
255 properties: [irtoc]
280 properties: [irtoc]
344 properties: [irtoc]
352 properties: [irtoc]
362 properties: [irtoc]
[all …]
/arkcompiler/runtime_core/static_core/irtoc/lang/
Dirtoc.rb34 #include "irtoc/backend/compilation.h"
47 namespace ark::irtoc \{
54 \} // namespace ark::irtoc
59 class Irtoc class
200 irtoc = Irtoc.new
201 irtoc.run(input_file)
202 functions += irtoc.functions
203 cpp_functions += irtoc.cpp_functions if irtoc.cpp_functions
207 irtoc = Irtoc.new
208 irtoc.compile_for_llvm = true
[all …]
/arkcompiler/runtime_core/static_core/docs/
Dirtoc.md1 # Irtoc tool
3 **Irtoc**(Ir-To-Code) tool is aimed to compile a manually created IR (intermediate representation) …
9 ## Irtoc language
13 Irtoc DSL is a wrapper above the `IrConstructor`. It reads compiler's `instructions.yaml` file to g…
15 Each opcode in the IR instructions has corresponding token in the irtoc lang. For example, IR instr…
29 available in Irtoc lang. They can be set in the similar way as in the IrConstructor:
35 for Irtoc. For example, for creating a control flow: Label, Else, While.
54 Irtoc uses instruction `If` and pseudo instruction `Else` to express conditional execution.
/arkcompiler/runtime_core/docs/
Dirtoc.md1 # Irtoc tool
3 **Irtoc**(Ir-To-Code) tool is aimed to compile a manually created IR (intermediate representation) …
9 ## Irtoc language
13 Irtoc DSL is a wrapper above the `IrConstructor`. It reads compiler's `instructions.yaml` file to g…
15 Each opcode in the IR instructions has corresponding token in the irtoc lang. For example, IR instr…
29 available in Irtoc lang. They can be set in the similar way as in the IrConstructor:
35 for Irtoc. For example, for creating a control flow: Label, Else, While.
54 Irtoc uses instruction `If` and pseudo instruction `Else` to express conditional execution.
/arkcompiler/runtime_core/static_core/runtime/tests/
Dirtoc_test.cpp34 TEST(Irtoc, AddValues) in TEST() argument
40 TEST(Irtoc, IncMaxValue) in TEST() argument
47 TEST(Irtoc, IncMaxValueLabels) in TEST() argument
88 TEST(Irtoc, Loop) in TEST() argument
97 TEST(Irtoc, SeqLabels) in TEST() argument
119 TEST(Irtoc, Relocations) in TEST() argument
140 TEST(Irtoc, RelocationsParams) in TEST() argument
148 TEST(Irtoc, Labels) in TEST() argument
159 TEST(Irtoc, ReturnBeforeLabel) in TEST() argument
/arkcompiler/runtime_core/static_core/runtime/interpreter/
Dinterpreter_impl.cpp35 enum InterpreterType { CPP = 0, IRTOC, LLVM }; enumerator
42 LOG(DEBUG, RUNTIME) << "Setting up LLVM Irtoc dispatch table"; in ExecuteImplType()
52 } else if (interpreterType == InterpreterType::IRTOC) { in ExecuteImplType()
54 LOG(DEBUG, RUNTIME) << "Setting up Irtoc dispatch table"; in ExecuteImplType()
62 LOG(FATAL, RUNTIME) << "--interpreter-type=irtoc is not supported in this configuration"; in ExecuteImplType()
82 #if !defined(PANDA_TARGET_ARM32) // Arm32 sticks to cpp - irtoc is not available there in ExecuteImpl()
89 } else if (interpreterTypeStr == "irtoc") { in ExecuteImpl()
90 interpreterType = InterpreterType::IRTOC; in ExecuteImpl()
97 interpreterType = InterpreterType::IRTOC; in ExecuteImpl()
101 if (interpreterType == InterpreterType::IRTOC) { in ExecuteImpl()
/arkcompiler/runtime_core/static_core/plugins/ets/
DHostTools.cmake3 "${host_tools_build_dir}/irtoc/irtoc_ets/irtoc_ets_fastpath/irtoc_ets_fastpath.o"
4 "${host_tools_build_dir}/irtoc/irtoc_ets/irtoc_ets_fastpath/irtoc_ets_fastpath_llvm.o"
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
Dinstructions.yaml137 modes: [jit_aot, irtoc]
144 modes: [jit_aot, irtoc]
350 modes: [jit_aot, irtoc]
357 modes: [irtoc]
364 modes: [jit_aot, irtoc]
371 modes: [irtoc]
812 modes: [irtoc]
827 modes: [jit_aot, irtoc]
923 modes: [jit_aot, irtoc]
930 modes: [jit_aot, irtoc]
[all …]
/arkcompiler/runtime_core/static_core/irtoc/templates/
DIrtocPostPlugins.cmake15 set(GENERATED_DIRECTORY ${PANDA_BINARY_ROOT}/irtoc/generated)
20 TEMPLATE ${PANDA_ROOT}/irtoc/templates/plugins.txt.erb
/arkcompiler/runtime_core/static_core/tests/benchmarks/
DCMakeLists.txt80 add_custom_target(benchmarks-panda-assembly-irtoc
81 COMMENT "Running benchmarks in Panda Assembly in Irtoc interpreter")
91 benchmarks-panda-assembly-irtoc
142 panda_add_asm_file(TARGET "${name}-irtoc"
151 …type=g1-gc" "--compiler-enable-jit=false" "--limit-standard-alloc=true" "--interpreter-type=irtoc")
152 add_dependencies(${common_target_basename}-irtoc "${name}-irtoc")
164 add_dependencies(${common_target_basename}-irtoc "${name}-llvmirtoc")

12345