111308Santhony.gutierrez@amd.com# -*- mode:python -*- 211308Santhony.gutierrez@amd.com 311308Santhony.gutierrez@amd.com# Copyright (c) 2015 Advanced Micro Devices, Inc. 411308Santhony.gutierrez@amd.com# All rights reserved. 511308Santhony.gutierrez@amd.com# 611308Santhony.gutierrez@amd.com# For use for simulation and test purposes only 711308Santhony.gutierrez@amd.com# 811308Santhony.gutierrez@amd.com# Redistribution and use in source and binary forms, with or without 911308Santhony.gutierrez@amd.com# modification, are permitted provided that the following conditions are met: 1011308Santhony.gutierrez@amd.com# 1111308Santhony.gutierrez@amd.com# 1. Redistributions of source code must retain the above copyright notice, 1211308Santhony.gutierrez@amd.com# this list of conditions and the following disclaimer. 1311308Santhony.gutierrez@amd.com# 1411308Santhony.gutierrez@amd.com# 2. Redistributions in binary form must reproduce the above copyright notice, 1511308Santhony.gutierrez@amd.com# this list of conditions and the following disclaimer in the documentation 1611308Santhony.gutierrez@amd.com# and/or other materials provided with the distribution. 1711308Santhony.gutierrez@amd.com# 1811308Santhony.gutierrez@amd.com# 3. Neither the name of the copyright holder nor the names of its contributors 1911308Santhony.gutierrez@amd.com# may be used to endorse or promote products derived from this software 2011308Santhony.gutierrez@amd.com# without specific prior written permission. 2111308Santhony.gutierrez@amd.com# 2211308Santhony.gutierrez@amd.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 2311308Santhony.gutierrez@amd.com# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2411308Santhony.gutierrez@amd.com# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2511308Santhony.gutierrez@amd.com# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 2611308Santhony.gutierrez@amd.com# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2711308Santhony.gutierrez@amd.com# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2811308Santhony.gutierrez@amd.com# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2911308Santhony.gutierrez@amd.com# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 3011308Santhony.gutierrez@amd.com# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 3111308Santhony.gutierrez@amd.com# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 3211308Santhony.gutierrez@amd.com# POSSIBILITY OF SUCH DAMAGE. 3311308Santhony.gutierrez@amd.com# 3411308Santhony.gutierrez@amd.com# Author: Anthony Gutierrez 3511308Santhony.gutierrez@amd.com# 3611308Santhony.gutierrez@amd.com 3711308Santhony.gutierrez@amd.comImport('*') 3811308Santhony.gutierrez@amd.com 3911308Santhony.gutierrez@amd.comif not env['BUILD_GPU']: 4011308Santhony.gutierrez@amd.com Return() 4111308Santhony.gutierrez@amd.com 4211308Santhony.gutierrez@amd.comif env['TARGET_GPU_ISA'] == 'hsail': 4311308Santhony.gutierrez@amd.com env.Command(['insts/gen_decl.hh', 'gpu_decoder.cc', 'insts/gen_exec.cc'], 4411308Santhony.gutierrez@amd.com 'gen.py', '$SOURCE $TARGETS') 4511308Santhony.gutierrez@amd.com 4611308Santhony.gutierrez@amd.com Source('gpu_decoder.cc') 4711308Santhony.gutierrez@amd.com Source('insts/branch.cc') 4811308Santhony.gutierrez@amd.com Source('insts/gen_exec.cc') 4911308Santhony.gutierrez@amd.com Source('insts/gpu_static_inst.cc') 5011308Santhony.gutierrez@amd.com Source('insts/main.cc') 5111308Santhony.gutierrez@amd.com Source('insts/pseudo_inst.cc') 5211308Santhony.gutierrez@amd.com Source('insts/mem.cc') 5311308Santhony.gutierrez@amd.com Source('operand.cc') 54