diff options
author | Mark Seaborn <mseaborn@chromium.org> | 2013-07-01 10:28:53 -0700 |
---|---|---|
committer | Mark Seaborn <mseaborn@chromium.org> | 2013-07-01 10:28:53 -0700 |
commit | ec8e5bad316e85ea87716793b499dd6f204d78c0 (patch) | |
tree | 13dd719731e000aee8e143be96378b32fd3f7311 /lib/Support/IsInf.cpp | |
parent | 5ea800923b912c6c34cbb8e2db8a47101fe74700 (diff) |
PNaCl ABI checker: Check for exact names and types of whitelisted intrinsics
This makes the checker stricter, so that it will reject names such as
"@llvm.memcpy.foo".
Reuse Intrinsic::getName() and Intrinsic::getType() for checking the
exact function name and type that we should expect for whitelisted
intrinsics. This is simpler than writing code to check each argument
type separately.
intrinsics.ll test: Add some tests. Simplify existing tests by
replacing multiple CHECK-NOTs with a single "CHECK-NOT: disallowed",
which is stricter because it is less specific.
BUG=https://code.google.com/p/nativeclient/issues/detail?id=3530
TEST=*.ll tests + PNaCl toolchain trybots
Review URL: https://codereview.chromium.org/18302002
Diffstat (limited to 'lib/Support/IsInf.cpp')
0 files changed, 0 insertions, 0 deletions