TableGen: Explicitly check whether a record has been resolved
authorNicolai Haehnle <nhaehnle@gmail.com>
Tue, 6 Mar 2018 13:48:47 +0000 (13:48 +0000)
committerNicolai Haehnle <nhaehnle@gmail.com>
Tue, 6 Mar 2018 13:48:47 +0000 (13:48 +0000)
commit0f529885fad55a42a81625cb8894e7646bc2761f
treee58cf00087981ccec537b7d28304f1cee4a79bc1
parentdfda9dcc1dfc4c50b7b3f538b9a629163dc44ee7
TableGen: Explicitly check whether a record has been resolved

Summary:
There are various places where resolving and constant folds can
get stuck, especially around casts. We don't always signal an
error for those, because in many cases they can legitimately
occur without being an error in the "untaken branch" of an !if.

Change-Id: I3befc0e4234c8e6cc61190504702918c9f29ce5c

Reviewers: arsenm, craig.topper, tra, MartinO

Subscribers: wdng, llvm-commits

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

llvm-svn: 326786
llvm/include/llvm/TableGen/Record.h
llvm/lib/TableGen/Record.cpp
llvm/lib/TableGen/TGParser.cpp
llvm/test/TableGen/BitOffsetDecoder.td
llvm/test/TableGen/BitsInitOverflow.td