summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-cfi-verify/lib/FileAnalysis.cpp
diff options
context:
space:
mode:
authorDaniel Sanders <daniel_l_sanders@apple.com>2017-10-31 23:03:18 +0000
committerDaniel Sanders <daniel_l_sanders@apple.com>2017-10-31 23:03:18 +0000
commit7438b2631720c9e7cbd23d9ce789cafd02400cd5 (patch)
treedec3b2872f57f6b8c72176770d8f6ffa3a05210a /llvm/tools/llvm-cfi-verify/lib/FileAnalysis.cpp
parent357cd3289e0d0c6e6cd59bc9faea3fd5fdf4b190 (diff)
downloadbcm5719-llvm-7438b2631720c9e7cbd23d9ce789cafd02400cd5.tar.gz
bcm5719-llvm-7438b2631720c9e7cbd23d9ce789cafd02400cd5.zip
Re-commit: [globalisel][tablegen] Keep track of the insertion point while adding BuildMIAction's. NFC
Multi-instruction emission needs to ensure the the instructions are generated a depth-first fashion. For example: (ADDWrr (SUBWrr a, b), c) needs to emit the SUBWrr before the ADDWrr. However, our walk over TreePatternNode's is highly context sensitive which makes it difficult to append BuildMIActions in the order we want. To fix this, we now keep track of the insertion point as we add actions. This will allow multi-insn emission to insert BuildMI's in the correct place. The previous commit failed on the Ubuntu bots using GCC 4.8. These bots lack the const_iterator forms of insert() and emplace() that were added in C++11. As a result I've switched the const_iterators to iterators. llvm-svn: 317049
Diffstat (limited to 'llvm/tools/llvm-cfi-verify/lib/FileAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud