LLVM 22.0.0git
gen-regalloc-eviction-test-model Namespace Reference

Functions

 get_input_signature ()
 get_output_spec_path (path)
 build_mock_model (path)
 main (argv)

Variables

str POLICY_DECISION_LABEL = "index_to_evict"
str POLICY_OUTPUT_SPEC
list PER_REGISTER_FEATURE_LIST = ["mask"]
int NUM_REGISTERS = 33

Function Documentation

◆ build_mock_model()

gen-regalloc-eviction-test-model.build_mock_model ( path)
Build and save the mock model with the given signature.

Definition at line 43 of file gen-regalloc-eviction-test-model.py.

References get_input_signature(), get_output_spec_path(), and print().

Referenced by main().

◆ get_input_signature()

gen-regalloc-eviction-test-model.get_input_signature ( )
Returns (time_step_spec, action_spec) for LLVM register allocation.

Definition at line 30 of file gen-regalloc-eviction-test-model.py.

Referenced by build_mock_model().

◆ get_output_spec_path()

gen-regalloc-eviction-test-model.get_output_spec_path ( path)

Definition at line 39 of file gen-regalloc-eviction-test-model.py.

Referenced by build_mock_model().

◆ main()

gen-regalloc-eviction-test-model.main ( argv)

Definition at line 65 of file gen-regalloc-eviction-test-model.py.

References build_mock_model(), and main().

Referenced by main().

Variable Documentation

◆ NUM_REGISTERS

int gen-regalloc-eviction-test-model.NUM_REGISTERS = 33

Definition at line 27 of file gen-regalloc-eviction-test-model.py.

◆ PER_REGISTER_FEATURE_LIST

list gen-regalloc-eviction-test-model.PER_REGISTER_FEATURE_LIST = ["mask"]

Definition at line 26 of file gen-regalloc-eviction-test-model.py.

◆ POLICY_DECISION_LABEL

str gen-regalloc-eviction-test-model.POLICY_DECISION_LABEL = "index_to_evict"

Definition at line 10 of file gen-regalloc-eviction-test-model.py.

◆ POLICY_OUTPUT_SPEC

str gen-regalloc-eviction-test-model.POLICY_OUTPUT_SPEC
Initial value:
1= """
2[
3 {
4 "logging_name": "index_to_evict",
5 "tensor_spec": {
6 "name": "StatefulPartitionedCall",
7 "port": 0,
8 "type": "int64_t",
9 "shape": [
10 1
11 ]
12 }
13 }
14]
15"""

Definition at line 11 of file gen-regalloc-eviction-test-model.py.