gpu-compute: remove inst enums and use bit flag for attributes
authorTony Gutierrez <anthony.gutierrez@amd.com>
Thu, 27 Oct 2016 02:47:11 +0000 (22:47 -0400)
committerTony Gutierrez <anthony.gutierrez@amd.com>
Thu, 27 Oct 2016 02:47:11 +0000 (22:47 -0400)
commit7ac38849abaf6aeccf39137bc8acb9e44d192e82
tree7658e9d741604b310f871756cf051558b30e115e
parente1ad8035a379cea98ecef92e78d2894f60b2eedd
gpu-compute: remove inst enums and use bit flag for attributes

this patch removes the GPUStaticInst enums that were defined in GPU.py.
instead, a simple set of attribute flags that can be set in the base
instruction class are used. this will help unify the attributes of HSAIL
and machine ISA instructions within the model itself.

because the static instrution now carries the attributes, a GPUDynInst
must carry a pointer to a valid GPUStaticInst so a new static kernel launch
instruction is added, which carries the attributes needed to perform a
the kernel launch.
28 files changed:
src/arch/hsail/SConscript
src/arch/hsail/generic_types.cc [deleted file]
src/arch/hsail/generic_types.hh [deleted file]
src/arch/hsail/insts/branch.hh
src/arch/hsail/insts/decl.hh
src/arch/hsail/insts/main.cc
src/arch/hsail/insts/mem.cc
src/arch/hsail/insts/mem.hh
src/arch/hsail/insts/mem_impl.hh
src/arch/hsail/insts/pseudo_inst.cc
src/gpu-compute/GPU.py
src/gpu-compute/GPUStaticInstFlags.py [new file with mode: 0644]
src/gpu-compute/SConscript
src/gpu-compute/code_enums.hh [deleted file]
src/gpu-compute/compute_unit.cc
src/gpu-compute/compute_unit.hh
src/gpu-compute/global_memory_pipeline.cc
src/gpu-compute/gpu_dyn_inst.cc
src/gpu-compute/gpu_dyn_inst.hh
src/gpu-compute/gpu_static_inst.cc
src/gpu-compute/gpu_static_inst.hh
src/gpu-compute/kernel_cfg.cc
src/gpu-compute/lds_state.cc
src/gpu-compute/lds_state.hh
src/gpu-compute/local_memory_pipeline.cc
src/gpu-compute/shader.hh
src/gpu-compute/vector_register_file.cc
src/gpu-compute/wavefront.cc