diff options
author | Dan Liew <daniel.liew@imperial.ac.uk> | 2015-12-19 11:21:15 +0000 |
---|---|---|
committer | Dan Liew <daniel.liew@imperial.ac.uk> | 2015-12-19 22:04:50 +0000 |
commit | d95825bef428b631099440d01a3955e7f6276b16 (patch) | |
tree | 8806a8b2628a9e111e84eeb0af7f351f519c81cb /NEWS | |
parent | d348aee430c8308a29d5edadd4c38e7fee1abadc (diff) | |
download | klee-d95825bef428b631099440d01a3955e7f6276b16.tar.gz |
Implement support for lowering the ``llvm.objectsize`` intrinsic
introduced in LLVM 2.7. Previously KLEE would emit the following error message when ``IntrinsicLowering::LowerIntrinsicCall()`` was called on the intrinsic ``` LLVM ERROR: Code generator does not support intrinsic function 'llvm.objectsize.i64.p0i8'! ``` The ``IntrinsicCleaner`` pass now lowers this intrinsic to a constant integer depending on the second argument to the intrinsic. This corresponds to the case where the size of the object pointed to by the first argument is unknown. An alternative design would be to handle this intrinsic in the Executor where is actually possible to know the size of objects during execution. However that would be much more complicated because if the pointer is symbolic we would have to fork for every object that could be pointed to. The implementation is similar to #260 but we handle the second argument to the intrinsic correctly and also have a simple test case. Unfortunately we have to have a different version of the test case for LLVM 2.9 because the expected suffix for the intrinsic is different in LLVM 2.9.
Diffstat (limited to 'NEWS')
0 files changed, 0 insertions, 0 deletions