Graph builder implementation.
authorMitch Phillips <mitchphillips@outlook.com>
Mon, 23 Oct 2017 20:25:19 +0000 (20:25 +0000)
committerMitch Phillips <mitchphillips@outlook.com>
Mon, 23 Oct 2017 20:25:19 +0000 (20:25 +0000)
commit99fa140501d3bde8212303c66a5ef43123fe51c6
tree29bf7def6e646a505e40359a424aee5045be2d5e
parent52bbd587ac575acc80876479dc25c3981add4ff1
Graph builder implementation.

Implement a localised graph builder for indirect control flow
instructions. Main interface is through GraphBuilder::buildFlowGraph,
which will build a flow graph around an indirect CF instruction. Various
modifications to FileVerifier are also made to const-expose some members
needed for machine code analysis done by the graph builder.

Reviewers: vlad.tsyrklevich

Reviewed By: vlad.tsyrklevich

Subscribers: llvm-commits, kcc, pcc

Differential Revision: https://reviews.llvm.org/D38427

llvm-svn: 316372
llvm/tools/llvm-cfi-verify/CMakeLists.txt
llvm/tools/llvm-cfi-verify/lib/CMakeLists.txt
llvm/tools/llvm-cfi-verify/lib/FileAnalysis.h
llvm/tools/llvm-cfi-verify/lib/GraphBuilder.cpp [new file with mode: 0644]
llvm/tools/llvm-cfi-verify/lib/GraphBuilder.h [new file with mode: 0644]
llvm/unittests/tools/llvm-cfi-verify/CMakeLists.txt
llvm/unittests/tools/llvm-cfi-verify/GraphBuilder.cpp [new file with mode: 0644]