Adding ostream operators for IR structures
authorAlan Baker <alanbaker@google.com>
Wed, 10 Jan 2018 19:23:47 +0000 (14:23 -0500)
committerAlan Baker <alanbaker@google.com>
Fri, 12 Jan 2018 16:19:58 +0000 (11:19 -0500)
commit672494da13d54cf72d41edc67ecc6b53c561afc6
treea9cf3a8aa39bd7d5c7de180c55d20fa45a17f29b
parenteb0c73dad6102fc0d4f03c62fe910348bae43a11
Adding ostream operators for IR structures

* Added for Instruction, BasicBlock, Function and Module
* Uses new disassembly functionality that can disassemble individual
instructions
 * For debug use only (no caching is done)
 * Each output converts module to binary, parses and outputs an
 individual instruction
* Added a test for whole module output
* Disabling Microsoft checked iterator warnings
* Updated check_copyright.py to accept 2018
15 files changed:
CMakeLists.txt
source/CMakeLists.txt
source/disassemble.cpp
source/disassemble.h [new file with mode: 0644]
source/opt/basic_block.cpp
source/opt/basic_block.h
source/opt/function.cpp
source/opt/function.h
source/opt/instruction.cpp
source/opt/instruction.h
source/opt/ir_context.h
source/opt/module.cpp
source/opt/module.h
test/opt/module_test.cpp
utils/check_copyright.py