1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00
llvm-mirror/tools/llvm-diff
Chandler Carruth cdfd07538f [TI removal] Make getTerminator() return a generic Instruction.
This removes the primary remaining API producing `TerminatorInst` which
will reduce the rate at which code is introduced trying to use it and
generally make it much easier to remove the remaining APIs across the
codebase.

Also clean up some of the stragglers that the previous mechanical update
of variables missed.

Users of LLVM and out-of-tree code generally will need to update any
explicit variable types to handle this. Replacing `TerminatorInst` with
`Instruction` (or `auto`) almost always works. Most of these edits were
made in prior commits using the perl one-liner:
```
perl -i -ple 's/TerminatorInst(\b.* = .*getTerminator\(\))/Instruction\1/g'
```

This also my break some rare use cases where people overload for both
`Instruction` and `TerminatorInst`, but these should be easily fixed by
removing the `TerminatorInst` overload.

llvm-svn: 344504
2018-10-15 10:42:50 +00:00
..
CMakeLists.txt [CMake] llvm-diff depends on intrinsics_gen 2016-11-19 02:28:18 +00:00
DiffConsumer.cpp Remove redundant includes from tools. 2017-12-13 21:31:10 +00:00
DiffConsumer.h [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
DifferenceEngine.cpp [TI removal] Make getTerminator() return a generic Instruction. 2018-10-15 10:42:50 +00:00
DifferenceEngine.h [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
DiffLog.cpp Remove redundant includes from tools. 2017-12-13 21:31:10 +00:00
DiffLog.h
llvm-diff.cpp [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
LLVMBuild.txt