diff options
| author | Andrew M. B. Boktor <[email protected]> | 2012-05-14 21:07:13 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:47:30 -0700 |
| commit | 7649bb08dcf8c27bbb9d37134d645bdb177f1f4b (patch) | |
| tree | f32c8b965366852c109268190f7400a2ec4a80e7 /cuobjdump_to_ptxplus | |
| parent | 91ae693cbb5072dc9a4813c99c02757c537a0671 (diff) | |
Adding copyright notices and updating CHANGES
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 12552]
Diffstat (limited to 'cuobjdump_to_ptxplus')
| -rw-r--r-- | cuobjdump_to_ptxplus/Makefile | 136 | ||||
| -rw-r--r-- | cuobjdump_to_ptxplus/cuobjdumpInst.cc | 27 | ||||
| -rw-r--r-- | cuobjdump_to_ptxplus/cuobjdumpInst.h | 27 | ||||
| -rw-r--r-- | cuobjdump_to_ptxplus/cuobjdumpInstList.cc | 27 | ||||
| -rw-r--r-- | cuobjdump_to_ptxplus/cuobjdumpInstList.h | 27 | ||||
| -rw-r--r-- | cuobjdump_to_ptxplus/cuobjdump_to_ptxplus.cc | 27 | ||||
| -rw-r--r-- | cuobjdump_to_ptxplus/elf.l | 28 | ||||
| -rw-r--r-- | cuobjdump_to_ptxplus/elf.y | 27 | ||||
| -rw-r--r-- | cuobjdump_to_ptxplus/ptx_parser.h | 31 | ||||
| -rw-r--r-- | cuobjdump_to_ptxplus/sass.l | 28 | ||||
| -rw-r--r-- | cuobjdump_to_ptxplus/sass.y | 27 |
11 files changed, 293 insertions, 119 deletions
diff --git a/cuobjdump_to_ptxplus/Makefile b/cuobjdump_to_ptxplus/Makefile index e2f9da5..03e63c0 100644 --- a/cuobjdump_to_ptxplus/Makefile +++ b/cuobjdump_to_ptxplus/Makefile @@ -71,7 +71,7 @@ depend: clean: rm -f opcodes.def opcodes.h rm -f lex.ptx_.c ptx.tab.c ptx.tab.h lex.ptx_.o ptx.tab.o ptx.output - rm -f elf_lexer.cc elf_parser.cc elf_parser.hh + rm -f elf_lexer.cc elf_parser.cc elf_parser.hh elf_parser.output rm -f sass_lexer.cc sass_parser.cc sass_parser.hh sass_parser.output rm -f header_lexer.cc header_parser.cc header_parser.hh header_parser.output rm -f *.o @@ -87,9 +87,10 @@ cuobjdumpInst.o: /usr/include/bits/typesizes.h /usr/include/libio.h cuobjdumpInst.o: /usr/include/_G_config.h /usr/include/wchar.h cuobjdumpInst.o: /usr/include/bits/stdio_lim.h cuobjdumpInst.o: /usr/include/bits/sys_errlist.h /usr/include/stdlib.h -cuobjdumpInst.o: /usr/include/sys/types.h /usr/include/time.h +cuobjdumpInst.o: /usr/include/bits/waitflags.h /usr/include/bits/waitstatus.h cuobjdumpInst.o: /usr/include/endian.h /usr/include/bits/endian.h -cuobjdumpInst.o: /usr/include/bits/byteswap.h /usr/include/sys/select.h +cuobjdumpInst.o: /usr/include/bits/byteswap.h /usr/include/sys/types.h +cuobjdumpInst.o: /usr/include/time.h /usr/include/sys/select.h cuobjdumpInst.o: /usr/include/bits/select.h /usr/include/bits/sigset.h cuobjdumpInst.o: /usr/include/bits/time.h /usr/include/sys/sysmacros.h cuobjdumpInst.o: /usr/include/bits/pthreadtypes.h /usr/include/alloca.h @@ -103,11 +104,13 @@ cuobjdumpInstList.o: /usr/include/bits/types.h /usr/include/bits/typesizes.h cuobjdumpInstList.o: /usr/include/libio.h /usr/include/_G_config.h cuobjdumpInstList.o: /usr/include/wchar.h /usr/include/bits/stdio_lim.h cuobjdumpInstList.o: /usr/include/bits/sys_errlist.h /usr/include/stdlib.h +cuobjdumpInstList.o: /usr/include/bits/waitflags.h +cuobjdumpInstList.o: /usr/include/bits/waitstatus.h /usr/include/endian.h +cuobjdumpInstList.o: /usr/include/bits/endian.h /usr/include/bits/byteswap.h cuobjdumpInstList.o: /usr/include/sys/types.h /usr/include/time.h -cuobjdumpInstList.o: /usr/include/endian.h /usr/include/bits/endian.h -cuobjdumpInstList.o: /usr/include/bits/byteswap.h /usr/include/sys/select.h -cuobjdumpInstList.o: /usr/include/bits/select.h /usr/include/bits/sigset.h -cuobjdumpInstList.o: /usr/include/bits/time.h /usr/include/sys/sysmacros.h +cuobjdumpInstList.o: /usr/include/sys/select.h /usr/include/bits/select.h +cuobjdumpInstList.o: /usr/include/bits/sigset.h /usr/include/bits/time.h +cuobjdumpInstList.o: /usr/include/sys/sysmacros.h cuobjdumpInstList.o: /usr/include/bits/pthreadtypes.h /usr/include/alloca.h cuobjdumpInstList.o: stringList.h cuobjdump_to_ptxplus.o: /usr/include/stdio.h /usr/include/features.h @@ -120,120 +123,15 @@ cuobjdump_to_ptxplus.o: /usr/include/bits/stdio_lim.h cuobjdump_to_ptxplus.o: /usr/include/bits/sys_errlist.h cuobjdumpInstList.h cuobjdump_to_ptxplus.o: cuobjdumpInst.h /usr/include/string.h cuobjdump_to_ptxplus.o: /usr/include/xlocale.h /usr/include/stdlib.h -cuobjdump_to_ptxplus.o: /usr/include/sys/types.h /usr/include/time.h -cuobjdump_to_ptxplus.o: /usr/include/endian.h /usr/include/bits/endian.h -cuobjdump_to_ptxplus.o: /usr/include/bits/byteswap.h -cuobjdump_to_ptxplus.o: /usr/include/sys/select.h /usr/include/bits/select.h -cuobjdump_to_ptxplus.o: /usr/include/bits/sigset.h /usr/include/bits/time.h -cuobjdump_to_ptxplus.o: /usr/include/sys/sysmacros.h +cuobjdump_to_ptxplus.o: /usr/include/bits/waitflags.h +cuobjdump_to_ptxplus.o: /usr/include/bits/waitstatus.h /usr/include/endian.h +cuobjdump_to_ptxplus.o: /usr/include/bits/endian.h +cuobjdump_to_ptxplus.o: /usr/include/bits/byteswap.h /usr/include/sys/types.h +cuobjdump_to_ptxplus.o: /usr/include/time.h /usr/include/sys/select.h +cuobjdump_to_ptxplus.o: /usr/include/bits/select.h /usr/include/bits/sigset.h +cuobjdump_to_ptxplus.o: /usr/include/bits/time.h /usr/include/sys/sysmacros.h cuobjdump_to_ptxplus.o: /usr/include/bits/pthreadtypes.h cuobjdump_to_ptxplus.o: /usr/include/alloca.h stringList.h -elf_lexer.o: /usr/include/stdio.h /usr/include/features.h -elf_lexer.o: /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h -elf_lexer.o: /usr/include/gnu/stubs.h /usr/include/gnu/stubs-64.h -elf_lexer.o: /usr/include/bits/types.h /usr/include/bits/typesizes.h -elf_lexer.o: /usr/include/libio.h /usr/include/_G_config.h -elf_lexer.o: /usr/include/wchar.h /usr/include/bits/stdio_lim.h -elf_lexer.o: /usr/include/bits/sys_errlist.h /usr/include/string.h -elf_lexer.o: /usr/include/xlocale.h /usr/include/errno.h -elf_lexer.o: /usr/include/bits/errno.h /usr/include/linux/errno.h -elf_lexer.o: /usr/include/asm/errno.h /usr/include/asm-generic/errno.h -elf_lexer.o: /usr/include/asm-generic/errno-base.h /usr/include/stdlib.h -elf_lexer.o: /usr/include/sys/types.h /usr/include/time.h -elf_lexer.o: /usr/include/endian.h /usr/include/bits/endian.h -elf_lexer.o: /usr/include/bits/byteswap.h /usr/include/sys/select.h -elf_lexer.o: /usr/include/bits/select.h /usr/include/bits/sigset.h -elf_lexer.o: /usr/include/bits/time.h /usr/include/sys/sysmacros.h -elf_lexer.o: /usr/include/bits/pthreadtypes.h /usr/include/alloca.h -elf_lexer.o: elf_parser.hh /usr/include/unistd.h -elf_lexer.o: /usr/include/bits/posix_opt.h /usr/include/bits/confname.h -elf_lexer.o: /usr/include/getopt.h -elf_parser.o: /usr/include/stdio.h /usr/include/features.h -elf_parser.o: /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h -elf_parser.o: /usr/include/gnu/stubs.h /usr/include/gnu/stubs-64.h -elf_parser.o: /usr/include/bits/types.h /usr/include/bits/typesizes.h -elf_parser.o: /usr/include/libio.h /usr/include/_G_config.h -elf_parser.o: /usr/include/wchar.h /usr/include/bits/stdio_lim.h -elf_parser.o: /usr/include/bits/sys_errlist.h cuobjdumpInstList.h -elf_parser.o: cuobjdumpInst.h /usr/include/string.h /usr/include/xlocale.h -elf_parser.o: /usr/include/stdlib.h /usr/include/sys/types.h -elf_parser.o: /usr/include/time.h /usr/include/endian.h -elf_parser.o: /usr/include/bits/endian.h /usr/include/bits/byteswap.h -elf_parser.o: /usr/include/sys/select.h /usr/include/bits/select.h -elf_parser.o: /usr/include/bits/sigset.h /usr/include/bits/time.h -elf_parser.o: /usr/include/sys/sysmacros.h /usr/include/bits/pthreadtypes.h -elf_parser.o: /usr/include/alloca.h stringList.h -header_lexer.o: /usr/include/stdio.h /usr/include/features.h -header_lexer.o: /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h -header_lexer.o: /usr/include/gnu/stubs.h /usr/include/gnu/stubs-64.h -header_lexer.o: /usr/include/bits/types.h /usr/include/bits/typesizes.h -header_lexer.o: /usr/include/libio.h /usr/include/_G_config.h -header_lexer.o: /usr/include/wchar.h /usr/include/bits/stdio_lim.h -header_lexer.o: /usr/include/bits/sys_errlist.h /usr/include/string.h -header_lexer.o: /usr/include/xlocale.h /usr/include/errno.h -header_lexer.o: /usr/include/bits/errno.h /usr/include/linux/errno.h -header_lexer.o: /usr/include/asm/errno.h /usr/include/asm-generic/errno.h -header_lexer.o: /usr/include/asm-generic/errno-base.h /usr/include/stdlib.h -header_lexer.o: /usr/include/sys/types.h /usr/include/time.h -header_lexer.o: /usr/include/endian.h /usr/include/bits/endian.h -header_lexer.o: /usr/include/bits/byteswap.h /usr/include/sys/select.h -header_lexer.o: /usr/include/bits/select.h /usr/include/bits/sigset.h -header_lexer.o: /usr/include/bits/time.h /usr/include/sys/sysmacros.h -header_lexer.o: /usr/include/bits/pthreadtypes.h /usr/include/alloca.h -header_lexer.o: header_parser.hh /usr/include/unistd.h -header_lexer.o: /usr/include/bits/posix_opt.h /usr/include/bits/confname.h -header_lexer.o: /usr/include/getopt.h -header_parser.o: cuobjdumpInstList.h cuobjdumpInst.h /usr/include/string.h -header_parser.o: /usr/include/features.h /usr/include/sys/cdefs.h -header_parser.o: /usr/include/bits/wordsize.h /usr/include/gnu/stubs.h -header_parser.o: /usr/include/gnu/stubs-64.h /usr/include/xlocale.h -header_parser.o: /usr/include/stdio.h /usr/include/bits/types.h -header_parser.o: /usr/include/bits/typesizes.h /usr/include/libio.h -header_parser.o: /usr/include/_G_config.h /usr/include/wchar.h -header_parser.o: /usr/include/bits/stdio_lim.h -header_parser.o: /usr/include/bits/sys_errlist.h /usr/include/stdlib.h -header_parser.o: /usr/include/sys/types.h /usr/include/time.h -header_parser.o: /usr/include/endian.h /usr/include/bits/endian.h -header_parser.o: /usr/include/bits/byteswap.h /usr/include/sys/select.h -header_parser.o: /usr/include/bits/select.h /usr/include/bits/sigset.h -header_parser.o: /usr/include/bits/time.h /usr/include/sys/sysmacros.h -header_parser.o: /usr/include/bits/pthreadtypes.h /usr/include/alloca.h -header_parser.o: stringList.h -sass_lexer.o: /usr/include/stdio.h /usr/include/features.h -sass_lexer.o: /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h -sass_lexer.o: /usr/include/gnu/stubs.h /usr/include/gnu/stubs-64.h -sass_lexer.o: /usr/include/bits/types.h /usr/include/bits/typesizes.h -sass_lexer.o: /usr/include/libio.h /usr/include/_G_config.h -sass_lexer.o: /usr/include/wchar.h /usr/include/bits/stdio_lim.h -sass_lexer.o: /usr/include/bits/sys_errlist.h /usr/include/string.h -sass_lexer.o: /usr/include/xlocale.h /usr/include/errno.h -sass_lexer.o: /usr/include/bits/errno.h /usr/include/linux/errno.h -sass_lexer.o: /usr/include/asm/errno.h /usr/include/asm-generic/errno.h -sass_lexer.o: /usr/include/asm-generic/errno-base.h /usr/include/stdlib.h -sass_lexer.o: /usr/include/sys/types.h /usr/include/time.h -sass_lexer.o: /usr/include/endian.h /usr/include/bits/endian.h -sass_lexer.o: /usr/include/bits/byteswap.h /usr/include/sys/select.h -sass_lexer.o: /usr/include/bits/select.h /usr/include/bits/sigset.h -sass_lexer.o: /usr/include/bits/time.h /usr/include/sys/sysmacros.h -sass_lexer.o: /usr/include/bits/pthreadtypes.h /usr/include/alloca.h -sass_lexer.o: sass_parser.hh /usr/include/unistd.h -sass_lexer.o: /usr/include/bits/posix_opt.h /usr/include/bits/confname.h -sass_lexer.o: /usr/include/getopt.h -sass_parser.o: /usr/include/stdio.h /usr/include/features.h -sass_parser.o: /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h -sass_parser.o: /usr/include/gnu/stubs.h /usr/include/gnu/stubs-64.h -sass_parser.o: /usr/include/bits/types.h /usr/include/bits/typesizes.h -sass_parser.o: /usr/include/libio.h /usr/include/_G_config.h -sass_parser.o: /usr/include/wchar.h /usr/include/bits/stdio_lim.h -sass_parser.o: /usr/include/bits/sys_errlist.h cuobjdumpInstList.h -sass_parser.o: cuobjdumpInst.h /usr/include/string.h /usr/include/xlocale.h -sass_parser.o: /usr/include/stdlib.h /usr/include/sys/types.h -sass_parser.o: /usr/include/time.h /usr/include/endian.h -sass_parser.o: /usr/include/bits/endian.h /usr/include/bits/byteswap.h -sass_parser.o: /usr/include/sys/select.h /usr/include/bits/select.h -sass_parser.o: /usr/include/bits/sigset.h /usr/include/bits/time.h -sass_parser.o: /usr/include/sys/sysmacros.h /usr/include/bits/pthreadtypes.h -sass_parser.o: /usr/include/alloca.h stringList.h stringList.o: stringList.h /usr/include/stdio.h /usr/include/features.h stringList.o: /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h stringList.o: /usr/include/gnu/stubs.h /usr/include/gnu/stubs-64.h diff --git a/cuobjdump_to_ptxplus/cuobjdumpInst.cc b/cuobjdump_to_ptxplus/cuobjdumpInst.cc index e0d5557..c3641fe 100644 --- a/cuobjdump_to_ptxplus/cuobjdumpInst.cc +++ b/cuobjdump_to_ptxplus/cuobjdumpInst.cc @@ -1,3 +1,30 @@ +// Copyright (c) 2009-2012, Jimmy Kwa, Andrew Boktor +// The University of British Columbia +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: +// +// Redistributions of source code must retain the above copyright notice, this +// list of conditions and the following disclaimer. +// Redistributions in binary form must reproduce the above copyright notice, this +// list of conditions and the following disclaimer in the documentation and/or +// other materials provided with the distribution. +// Neither the name of The University of British Columbia nor the names of its +// contributors may be used to endorse or promote products derived from this +// software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + // External includes #include <sstream> #include <iostream> diff --git a/cuobjdump_to_ptxplus/cuobjdumpInst.h b/cuobjdump_to_ptxplus/cuobjdumpInst.h index 8cf0ebe..75053f2 100644 --- a/cuobjdump_to_ptxplus/cuobjdumpInst.h +++ b/cuobjdump_to_ptxplus/cuobjdumpInst.h @@ -1,3 +1,30 @@ +// Copyright (c) 2009-2012, Jimmy Kwa, Andrew Boktor +// The University of British Columbia +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: +// +// Redistributions of source code must retain the above copyright notice, this +// list of conditions and the following disclaimer. +// Redistributions in binary form must reproduce the above copyright notice, this +// list of conditions and the following disclaimer in the documentation and/or +// other materials provided with the distribution. +// Neither the name of The University of British Columbia nor the names of its +// contributors may be used to endorse or promote products derived from this +// software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + #ifndef _CUOBJDUMPINST_H_ #define _CUOBJDUMPINST_H_ diff --git a/cuobjdump_to_ptxplus/cuobjdumpInstList.cc b/cuobjdump_to_ptxplus/cuobjdumpInstList.cc index 45c8f9d..e9b5365 100644 --- a/cuobjdump_to_ptxplus/cuobjdumpInstList.cc +++ b/cuobjdump_to_ptxplus/cuobjdumpInstList.cc @@ -1,3 +1,30 @@ +// Copyright (c) 2009-2012, Jimmy Kwa, Andrew Boktor +// The University of British Columbia +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: +// +// Redistributions of source code must retain the above copyright notice, this +// list of conditions and the following disclaimer. +// Redistributions in binary form must reproduce the above copyright notice, this +// list of conditions and the following disclaimer in the documentation and/or +// other materials provided with the distribution. +// Neither the name of The University of British Columbia nor the names of its +// contributors may be used to endorse or promote products derived from this +// software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + #include <sstream> #include <iostream> #include <cassert> diff --git a/cuobjdump_to_ptxplus/cuobjdumpInstList.h b/cuobjdump_to_ptxplus/cuobjdumpInstList.h index 7cb3a32..d07e72d 100644 --- a/cuobjdump_to_ptxplus/cuobjdumpInstList.h +++ b/cuobjdump_to_ptxplus/cuobjdumpInstList.h @@ -1,3 +1,30 @@ +// Copyright (c) 2009-2012, Jimmy Kwa, Andrew Boktor +// The University of British Columbia +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: +// +// Redistributions of source code must retain the above copyright notice, this +// list of conditions and the following disclaimer. +// Redistributions in binary form must reproduce the above copyright notice, this +// list of conditions and the following disclaimer in the documentation and/or +// other materials provided with the distribution. +// Neither the name of The University of British Columbia nor the names of its +// contributors may be used to endorse or promote products derived from this +// software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + #ifndef _CUOBJDUMPINSTLIST_H_ #define _CUOBJDUMPINSTLIST_H_ diff --git a/cuobjdump_to_ptxplus/cuobjdump_to_ptxplus.cc b/cuobjdump_to_ptxplus/cuobjdump_to_ptxplus.cc index fa322e1..1d1d6b3 100644 --- a/cuobjdump_to_ptxplus/cuobjdump_to_ptxplus.cc +++ b/cuobjdump_to_ptxplus/cuobjdump_to_ptxplus.cc @@ -1,3 +1,30 @@ +// Copyright (c) 2009-2012, Jimmy Kwa, Andrew Boktor +// The University of British Columbia +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: +// +// Redistributions of source code must retain the above copyright notice, this +// list of conditions and the following disclaimer. +// Redistributions in binary form must reproduce the above copyright notice, this +// list of conditions and the following disclaimer in the documentation and/or +// other materials provided with the distribution. +// Neither the name of The University of British Columbia nor the names of its +// contributors may be used to endorse or promote products derived from this +// software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + #include <iostream> #include <stdio.h> #include <fstream> diff --git a/cuobjdump_to_ptxplus/elf.l b/cuobjdump_to_ptxplus/elf.l index f594a00..267bb6b 100644 --- a/cuobjdump_to_ptxplus/elf.l +++ b/cuobjdump_to_ptxplus/elf.l @@ -1,3 +1,31 @@ +/* +// Copyright (c) 2011-2012, Andrew Boktor +// The University of British Columbia +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: +// +// Redistributions of source code must retain the above copyright notice, this +// list of conditions and the following disclaimer. +// Redistributions in binary form must reproduce the above copyright notice, this +// list of conditions and the following disclaimer in the documentation and/or +// other materials provided with the distribution. +// Neither the name of The University of British Columbia nor the names of its +// contributors may be used to endorse or promote products derived from this +// software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ /*Lex file for elf files output by cuobjdump*/ %{ #include <stdio.h> diff --git a/cuobjdump_to_ptxplus/elf.y b/cuobjdump_to_ptxplus/elf.y index 8f5163e..710ecfd 100644 --- a/cuobjdump_to_ptxplus/elf.y +++ b/cuobjdump_to_ptxplus/elf.y @@ -1,3 +1,30 @@ +// Copyright (c) 2011-2012, Andrew Boktor +// The University of British Columbia +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: +// +// Redistributions of source code must retain the above copyright notice, this +// list of conditions and the following disclaimer. +// Redistributions in binary form must reproduce the above copyright notice, this +// list of conditions and the following disclaimer in the documentation and/or +// other materials provided with the distribution. +// Neither the name of The University of British Columbia nor the names of its +// contributors may be used to endorse or promote products derived from this +// software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + /*Yacc file for elf files output by cuobjdump*/ %{ #include <stdio.h> diff --git a/cuobjdump_to_ptxplus/ptx_parser.h b/cuobjdump_to_ptxplus/ptx_parser.h index e32f6d8..590b4b2 100644 --- a/cuobjdump_to_ptxplus/ptx_parser.h +++ b/cuobjdump_to_ptxplus/ptx_parser.h @@ -1,3 +1,33 @@ +// Copyright (c) 2009-2011, Jimmy Kwa, +// The University of British Columbia +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: +// +// Redistributions of source code must retain the above copyright notice, this +// list of conditions and the following disclaimer. +// Redistributions in binary form must reproduce the above copyright notice, this +// list of conditions and the following disclaimer in the documentation and/or +// other materials provided with the distribution. +// Neither the name of The University of British Columbia nor the names of its +// contributors may be used to endorse or promote products derived from this +// software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +#ifndef _PTX_PARSER_H_ +#define _PTX_PARSER_H_ + #include <cstdlib> #include <cstring> #include <string> @@ -333,3 +363,4 @@ void func_header_info_int(const char* s, int i) g_headerList->getListEnd().addOperand(buff); } } +#endif //_PTX_PARSER_H_ diff --git a/cuobjdump_to_ptxplus/sass.l b/cuobjdump_to_ptxplus/sass.l index 859b672..bcbb6b8 100644 --- a/cuobjdump_to_ptxplus/sass.l +++ b/cuobjdump_to_ptxplus/sass.l @@ -1,3 +1,31 @@ +/* +// Copyright (c) 2009-2012, Jimmy Kwa, Andrew Boktor +// The University of British Columbia +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: +// +// Redistributions of source code must retain the above copyright notice, this +// list of conditions and the following disclaimer. +// Redistributions in binary form must reproduce the above copyright notice, this +// list of conditions and the following disclaimer in the documentation and/or +// other materials provided with the distribution. +// Neither the name of The University of British Columbia nor the names of its +// contributors may be used to endorse or promote products derived from this +// software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ %{ #include <stdio.h> #include "sass_parser.hh" diff --git a/cuobjdump_to_ptxplus/sass.y b/cuobjdump_to_ptxplus/sass.y index 7d23765..96c86ff 100644 --- a/cuobjdump_to_ptxplus/sass.y +++ b/cuobjdump_to_ptxplus/sass.y @@ -1,3 +1,30 @@ +// Copyright (c) 2009-2012, Jimmy Kwa, Andrew Boktor +// The University of British Columbia +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: +// +// Redistributions of source code must retain the above copyright notice, this +// list of conditions and the following disclaimer. +// Redistributions in binary form must reproduce the above copyright notice, this +// list of conditions and the following disclaimer in the documentation and/or +// other materials provided with the distribution. +// Neither the name of The University of British Columbia nor the names of its +// contributors may be used to endorse or promote products derived from this +// software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + %{ #include <stdio.h> #include "cuobjdumpInstList.h" |
