diff options
author | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2017-01-17 03:10:06 +0000 |
---|---|---|
committer | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2017-01-17 03:10:06 +0000 |
commit | c018efd6804b7144367ca12697bc560d436b4dc5 (patch) | |
tree | 44d3b92e4eb0829e446afe033a0f282b5a731869 /llvm/utils/git-svn/git-svnrevert | |
parent | 6b9be1dbe1addd95f070fd59606023a045ff1248 (diff) | |
download | bcm5719-llvm-c018efd6804b7144367ca12697bc560d436b4dc5.tar.gz bcm5719-llvm-c018efd6804b7144367ca12697bc560d436b4dc5.zip |
[TLI] Robustize SDAG proto checking by merging it into TLI.
SelectionDAGBuilder recognizes libfuncs using some homegrown
parameter type-checking.
Use TLI instead, removing another heap of redundant code.
This isn't strictly NFC, as the SDAG code was too lax.
Concretely, this means changes are required to two tests:
- calling a non-variadic function via a variadic prototype isn't OK;
it just happens to work on x86_64 (but not on, e.g., aarch64).
- mempcpy has a size_t parameter; the SDAG code accepts any integer
type, which meant using i32 on x86_64 worked.
I don't think it's worth supporting either of these (IMO) broken
testcases. Instead, fix them to be more correct.
llvm-svn: 292189
Diffstat (limited to 'llvm/utils/git-svn/git-svnrevert')
0 files changed, 0 insertions, 0 deletions