summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp
diff options
context:
space:
mode:
authorRoman Tereshin <rtereshin@apple.com>2018-05-30 18:45:32 +0000
committerRoman Tereshin <rtereshin@apple.com>2018-05-30 18:45:32 +0000
commit5404136d06f42551391185415cd237708a0da813 (patch)
treee489e8a168ca8872fd873b26261c6871ae95799d /lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp
parent857613bc6ded429c9a4bb9e4a01839fc62a3e36a (diff)
downloadbcm5719-llvm-5404136d06f42551391185415cd237708a0da813.tar.gz
bcm5719-llvm-5404136d06f42551391185415cd237708a0da813.zip
[GlobalISel][Legalizer] LegalizerInfo verifier: check rules cover type indices
This commit adds a simple verifier that tracks type indices being touched by legalization rules' builders. Every target will now have an opportunity to call LegalizerInfo::verify(...) at the end of its derived LegalizerInfo's constructor and check there are no obvious mistakes like checking only first type for an opcode that has more than one type index and therefore implicitly declaring any type for the second (and higher) type index legal. The check is only ran in assert builds and should have very minor performance impact in assert builds and none in release builds. This commit does not add LegalizerInfo::verify(...) calls to target-specific legalizers, look for separate commits for that. This commit also doesn't make the verification errors fatal, only produces an error message, look for a later commit that does. Reviewers: aemerson, qcolombet Reviewed By: aemerson Differential Revision: https://reviews.llvm.org/D46338 llvm-svn: 333576
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud