diff options
| author | Nicolai Haehnle <nhaehnle@gmail.com> | 2018-03-19 14:13:37 +0000 |
|---|---|---|
| committer | Nicolai Haehnle <nhaehnle@gmail.com> | 2018-03-19 14:13:37 +0000 |
| commit | c47fe129cb3f4e775b903370f3e001ae656520aa (patch) | |
| tree | 913a2ad98a74d7c8b8531a6211ead4c4b0fc64e7 /llvm/docs/TableGen | |
| parent | fed0a450363f7c0d8f21b209233f496bfc46512d (diff) | |
| download | bcm5719-llvm-c47fe129cb3f4e775b903370f3e001ae656520aa.tar.gz bcm5719-llvm-c47fe129cb3f4e775b903370f3e001ae656520aa.zip | |
TableGen: Remove the cast-from-string-to-variable-reference feature
Summary:
Cast-from-string for records isn't going away, but cast-from-string for
variables is a pretty dodgy feature to have, especially when referencing
template arguments. It's doubtful that this ever worked in a reliable
way, and nobody seems to be using it, so let's get rid of it and get
some related cleanups.
Change-Id: I395ac8a43fef4cf98e611f2f552300d21e99b66a
Reviewers: arsenm, craig.topper, tra, MartinO
Subscribers: wdng, llvm-commits
Differential Revision: https://reviews.llvm.org/D44195
llvm-svn: 327844
Diffstat (limited to 'llvm/docs/TableGen')
| -rw-r--r-- | llvm/docs/TableGen/LangIntro.rst | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/docs/TableGen/LangIntro.rst b/llvm/docs/TableGen/LangIntro.rst index c66c9daa0f0..b77dad07bf0 100644 --- a/llvm/docs/TableGen/LangIntro.rst +++ b/llvm/docs/TableGen/LangIntro.rst @@ -216,10 +216,6 @@ supported include: If the type of 'a' does not match *type*, TableGen aborts with an error. - For historical reasons, 'a' can also be the name of a variable or a - template argument in some cases, but this use is unreliable and is - discouraged. - Otherwise, perform a normal type cast e.g. between an int and a bit, or between record types. This allows casting a record to a subclass, though if the types do not match, constant folding will be inhibited. !cast<string> |

